Update vim and bower

This commit is contained in:
Rico Sta. Cruz 2014-11-06 16:36:56 +08:00
parent 4c849b6560
commit 57561c5e08
4 changed files with 78 additions and 6 deletions

28
bower-api.md Normal file
View File

@ -0,0 +1,28 @@
---
title: Bower API
layout: default
---
require('bower').config
{ cwd: '/Users/rsc',
directory: 'bower_components',
registry:
{ search: [ 'https://bower.herokuapp.com' ],
register: 'https://bower.herokuapp.com',
publish: 'https://bower.herokuapp.com' },
shorthandResolver: 'git://github.com/{{owner}}/{{package}}.git',
tmp: '/var/folders/5y/190gjd_j2c5bfkn563dk2xdr0000gn/T/rsc/bower',
timeout: 30000,
ca: { search: [] },
strictSsl: true,
userAgent: 'node/v0.10.33 darwin x64',
color: true,
storage:
{ packages: '/Users/rsc/.cache/bower/packages',
links: '/Users/rsc/.local/share/bower/links',
completion: '/Users/rsc/.local/share/bower/completion',
registry: '/Users/rsc/.cache/bower/registry',
empty: '/Users/rsc/.local/share/bower/empty' },
interactive: false,
argv: { remain: [], cooked: [], original: [] } }

View File

@ -26,7 +26,7 @@ Add to `package.json`:
```json
"scripts": {
"coverage": "env COVERAGE=1 mocha -R html-cov > coverage.html"
"coverage": "env COVERAGE=1 mocha -R html-cov > coverage.html && open coverage.html"
}
```
@ -36,7 +36,7 @@ Be sure to ignore it:
Then run:
$ npm run coverage && open coverage.html
$ npm run coverage
## Travis + coveralls.io support

22
unite.md Normal file
View File

@ -0,0 +1,22 @@
---
title: Unite
layout: default
---
### Usage
:Unite file
:Unite file_rec/async:!
:Unite tag
:Unite buffer
### Options
- `-start-insert`
- `-no-quit`
- `-winheight=10`
- `-quick-match` - select by pressing asdf keys
- `-winwidth=40` - use with vertical
- `-no-split` - open in current buffer
- `-auto-preview` - great for outline
- `-vertical` - open as sidebar

28
vim.md
View File

@ -9,8 +9,8 @@ Command line
<C-r><C-w> # insert current word into the command line
<C-r>" # paste from " register
Motions
-------
Text objects
------------
vip # Select paragraph
vipipipip # Select more
@ -65,7 +65,8 @@ Misc
. # repeat last command
]p # paste under the current indentation level
C-o # Go back to previous location (C-i forward)
C-o # Go back to previous location
C-i # Go forward
C-t # Go back to last tag
zz # Center this line
@ -142,3 +143,24 @@ Marks
contained
hi def link markdownH1 htmlH1
### Mapping
nnoremap
vmap
...
Components:
[nvixso](nore)map
^ ^
| don't recurse
|
normal, visual, insert, eX mode, select, operator-pending
Arguments:
- `<buffer>` - only in current buffer
- `<silent>` - no echo
- `<nowait>`