Skip to content

Commit

Permalink
add slim support
Browse files Browse the repository at this point in the history
  • Loading branch information
wongyouth committed Apr 2, 2013
1 parent 3e5272e commit 64e29a1
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 10 deletions.
12 changes: 6 additions & 6 deletions README.md
Expand Up @@ -57,16 +57,16 @@ Make sure you have `exuberant-ctags` installed for using vim-ctags.


### File explorer ### File explorer


* `<F4>` - line number showing toggle * `<F3>` - use word under cursor as pattern to find all matching in the current file
* `<C-F3>` - use word under cursor as pattern to replace all matching in the current file
* `<F4>` - line number showing toggle (normal mode)
* `<F5>` - undo history toggle * `<F5>` - undo history toggle
* `<F6>` - open current file's folder in NERDtree * `<F6>` - open current file's folder in NERDtree
* `<F7>` - toggle NERDTree window * `<F7>` - toggle NERDTree window
* `<F8>` - toggle tagbar window * `<F8>` - toggle tagbar window
* `<F11>` - exeucte `:only` to make current window maximized * `<F11>` - exeucte `:only` to make current window maximized
* `<c-k>` - show buffer list * `<c-k>` - show buffer list
* `<c-p>` - features like Ctrl-p in textMate * `<c-p>` - features like Ctrl-p in textMate
* `<F3>` - use word under cursor as pattern to find all matching in the current file
* `<C-F3>` - use word under cursor as pattern to replace all matching in the current file
* `:Ggrep <pattern>` - for searching pattern in all files under git managed, `]q` open next matching, `[q` open previous matching, `[Q`, `]Q` for the first and last matching * `:Ggrep <pattern>` - for searching pattern in all files under git managed, `]q` open next matching, `[q` open previous matching, `[Q`, `]Q` for the first and last matching


### doc explorer ### doc explorer
Expand All @@ -84,12 +84,12 @@ Make sure you have `exuberant-ctags` installed for using vim-ctags.


### Formatting ### Formatting


* `<F4>` - toggle paste mode * `<F4>` - toggle paste mode (insert mode)
* `<F5>` - toggle Gundo window (history window) * `<F5>` - toggle Gundo window (history window)
* `<F12>` - toggle mouse * `<F12>` - toggle mouse (for terminal vim)


* `\cc` - comment out * `\cc` - comment out
* `\c<SPACE>` - revert comment out * `\c<SPACE>` - reverting comment out


* `\ff` - javascript formatting * `\ff` - javascript formatting


Expand Down
2 changes: 2 additions & 0 deletions after/plugin/handlebars.vim
@@ -0,0 +1,2 @@
autocmd BufNewFile,BufRead *.hbs set filetype=handlebars

2 changes: 2 additions & 0 deletions after/plugin/slim.vim
@@ -0,0 +1,2 @@
autocmd BufNewFile,BufRead *.slimbars set filetype=slim

2 changes: 1 addition & 1 deletion after/plugin/tabular.vim
Expand Up @@ -2,6 +2,6 @@ noremap <leader>a, :Tabularize /,<cr>
noremap <leader>a# :Tabularize /#<cr> noremap <leader>a# :Tabularize /#<cr>
noremap <leader>a= :Tabularize /=<cr> noremap <leader>a= :Tabularize /=<cr>
noremap <leader>a== :Tabularize /==<cr> noremap <leader>a== :Tabularize /==<cr>
noremap <leader>a: :Tabularize /:/r0c0l1<cr> noremap <leader>a: :Tabularize /:<cr>
noremap <leader>a\| :Tabularize /\|<cr> noremap <leader>a\| :Tabularize /\|<cr>
noremap <leader>a> :Tabularize /=><cr> noremap <leader>a> :Tabularize /=><cr>
4 changes: 4 additions & 0 deletions after/plugin/vim-css-hex.vim
@@ -0,0 +1,4 @@
au BufEnter *.css,*.scss,*.sass,*.less call HexHighlight()
au InsertLeave *.css,*.scss,*.sass,*.less call HexHighlight()
au CursorMoved *.css,*.scss,*.sass,*.less call HexHighlight()
au CursorMovedI *.css,*.scss,*.sass,*.less call HexHighlight()
2 changes: 1 addition & 1 deletion bundle/vundle
4 changes: 2 additions & 2 deletions gvimrc
@@ -1,10 +1,10 @@
"set guifont "set guifont
if has("gui_macvim") if has("gui_macvim")
"for mac "for mac
set guifont=Monaco:h13 set guifont=Monaco:h16
else else
"for ubuntu "for ubuntu
set guifont=Monospace\ 11 set guifont=Monospace\ 12
endif endif


"colorscheme: blackboard github solarized "colorscheme: blackboard github solarized
Expand Down

0 comments on commit 64e29a1

Please sign in to comment.