aboutsummaryrefslogtreecommitdiffstats
path: root/vimrc
diff options
context:
space:
mode:
authorTing-Wei Lan <lantw44@gmail.com>2014-08-15 01:41:00 +0800
committerTing-Wei Lan <lantw44@gmail.com>2014-08-15 01:51:00 +0800
commit6a29fae04996953629af3251bce1ad5c54febcd3 (patch)
tree29eb3657b2b8d28e324c9a02f75dff9dbc91dac3 /vimrc
parent26adbf0cbfe57c3ea9300ba7a619daa3864e78ce (diff)
downloadconfigfile-6a29fae04996953629af3251bce1ad5c54febcd3.tar
configfile-6a29fae04996953629af3251bce1ad5c54febcd3.tar.gz
configfile-6a29fae04996953629af3251bce1ad5c54febcd3.tar.bz2
configfile-6a29fae04996953629af3251bce1ad5c54febcd3.tar.lz
configfile-6a29fae04996953629af3251bce1ad5c54febcd3.tar.xz
configfile-6a29fae04996953629af3251bce1ad5c54febcd3.tar.zst
configfile-6a29fae04996953629af3251bce1ad5c54febcd3.zip
vimrc: 加入 GNU global、Slim、CoffeeScriptvimrc-20140815
Diffstat (limited to 'vimrc')
-rw-r--r--vimrc27
1 files changed, 16 insertions, 11 deletions
diff --git a/vimrc b/vimrc
index 1c5255c..77f9772 100644
--- a/vimrc
+++ b/vimrc
@@ -103,6 +103,8 @@ au FileType c set omnifunc=ccomplete#Complete
au BufRead *.vala,*.vapi set efm=%f:%l.%c-%[%^:]%#:\ %t%[%^:]%#:\ %m
au BufRead,BufNewFile *.vala,*.vapi setfiletype vala
au BufRead,BufNewFile *.json set ft=json
+au BufRead,BufNewFile *.slim setfiletype slim
+au BufRead,BufNewFile *.coffee setfiletype coffee
set tags+=~/.vim/tags
@@ -116,6 +118,9 @@ if g:use_plugins
Plugin 'tkztmk/vim-vala'
Plugin 'airblade/vim-gitgutter'
Plugin 'elzr/vim-json'
+ Plugin 'slim-template/vim-slim'
+ Plugin 'kchmck/vim-coffee-script'
+ Plugin 'gtags.vim'
Plugin 'rails.vim'
Plugin 'gtk-vim-syntax'
@@ -156,17 +161,17 @@ if g:use_plugins
endif
if has("cscope")
- set cst
- set csverb
- set cscopequickfix=s-,c-,d-,i-,t-,e-
- nmap <C-\>s :cs find s <C-R>=expand("<cword>")<CR><CR>
- nmap <C-\>g :cs find g <C-R>=expand("<cword>")<CR><CR>
- nmap <C-\>c :cs find c <C-R>=expand("<cword>")<CR><CR>
- nmap <C-\>t :cs find t <C-R>=expand("<cword>")<CR><CR>
- nmap <C-\>e :cs find e <C-R>=expand("<cword>")<CR><CR>
- nmap <C-\>f :cs find f <C-R>=expand("<cfile>")<CR><CR>
- nmap <C-\>i :cs find i <C-R>=expand("<cfile>")<CR>$<CR>
- nmap <C-\>d :cs find d <C-R>=expand("<cword>")<CR><CR>
+ set cst
+ set csverb
+ set cscopequickfix=s-,c-,d-,i-,t-,e-
+ nmap <C-\>s :cs find s <C-R>=expand("<cword>")<CR><CR>
+ nmap <C-\>g :cs find g <C-R>=expand("<cword>")<CR><CR>
+ nmap <C-\>c :cs find c <C-R>=expand("<cword>")<CR><CR>
+ nmap <C-\>t :cs find t <C-R>=expand("<cword>")<CR><CR>
+ nmap <C-\>e :cs find e <C-R>=expand("<cword>")<CR><CR>
+ nmap <C-\>f :cs find f <C-R>=expand("<cfile>")<CR><CR>
+ nmap <C-\>i :cs find i <C-R>=expand("<cfile>")<CR>$<CR>
+ nmap <C-\>d :cs find d <C-R>=expand("<cword>")<CR><CR>
endif
"set guifont=Droid\ Sans\ Mono\ for\ Powerline\ 11