Add ctags support

This commit is contained in:
Andrew Miner
2017-08-03 15:12:42 -07:00
parent 0aec8b9374
commit 35c75c52cc
3 changed files with 23 additions and 10 deletions
+6
View File
@@ -0,0 +1,6 @@
--langdef=CoffeeScript
--langmap=CoffeeScript:.coffee
--regex-CoffeeScript=/(^|=[ \t])*class ([A-Za-z.]+)( extends [A-Za-z.]+)?$/\2/c,class/
--regex-CoffeeScript=/^[ \t]*@?([A-Za-z.]+):.*[-=]>.*$/\1/f,function/
--regex-CoffeeScript=/^[ \t]*([A-Za-z.]+)[ \t]+=.*[-=]>.*$/\1/f,function/
--regex-CoffeeScript=/^[ \t]*([A-Za-z.]+)[ \t]+=[^-=>\n]*$/\1/v,variable/
+16 -10
View File
@@ -73,7 +73,7 @@ autocmd BufWritePre * %s/\s\+$//e
" ctrlpvim/ctrlp.vim " ctrlpvim/ctrlp.vim
let g:ctrlp_working_path_mode = 0 let g:ctrlp_working_path_mode = 0
let g:ctrlp_regexp = 1 let g:ctrlp_regexp = 0
if executable('ag') if executable('ag')
let g:ctrlp_user_command = 'ag %s -l --nocolor -g ""' let g:ctrlp_user_command = 'ag %s -l --nocolor -g ""'
let g:ctrlp_use_caching = 0 let g:ctrlp_use_caching = 0
@@ -93,18 +93,24 @@ let g:indent_guides_enable_on_vim_startup = 0 " :IndentGuidesToggle
" Key Mappings ######################################################################################################### " Key Mappings #########################################################################################################
map <F1> :NERDTreeToggle<CR> map <F1> :NERDTreeToggle<CR>
map <F2> :NERDTreeFind<CR> map <F2> :NERDTreeFind<CR>
map <F3> :'a,.!sort<CR> map <F3> :'a,.!sort<CR>
map <F4> :IndentGuidesToggle<CR> map <F4> :IndentGuidesToggle<CR>
map <F5> :e<CR> map <F5> :e<CR>
map <F6> :set hlsearch!<CR> map <F6> :set hlsearch!<CR>
map <F7> :cp<CR> map <F7> :cp<CR>
map <F8> :copen<CR> map <F8> :copen<CR>
map <F9> :cn<CR> map <F9> :cn<CR>
map <F10> :tselect<CR>
map <F11> :!ctags -R src test<CR>
" Local Overrides ###################################################################################################### " Local Overrides ######################################################################################################
if !empty(glob("$HOME/.vimrc.local")) if !empty(glob("$HOME/.vimrc.local"))
source $HOME/.vimrc.local source $HOME/.vimrc.local
endif endif
" File-Type Specific Settings ##########################################################################################
autocmd BufRead COMMIT_EDITMSG set textwidth=70 colorcolumn=70
+1
View File
@@ -26,6 +26,7 @@ brew update
echo; echo; echo "Installing standard brew packages..." echo; echo; echo "Installing standard brew packages..."
brew install ag brew install ag
brew install ctags
brew install fswatch brew install fswatch
brew install macvim brew install macvim
brew install node brew install node