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/
+7 -1
View File
@@ -73,7 +73,7 @@ autocmd BufWritePre * %s/\s\+$//e
" ctrlpvim/ctrlp.vim
let g:ctrlp_working_path_mode = 0
let g:ctrlp_regexp = 1
let g:ctrlp_regexp = 0
if executable('ag')
let g:ctrlp_user_command = 'ag %s -l --nocolor -g ""'
let g:ctrlp_use_caching = 0
@@ -102,9 +102,15 @@ map <F6> :set hlsearch!<CR>
map <F7> :cp<CR>
map <F8> :copen<CR>
map <F9> :cn<CR>
map <F10> :tselect<CR>
map <F11> :!ctags -R src test<CR>
" Local Overrides ######################################################################################################
if !empty(glob("$HOME/.vimrc.local"))
source $HOME/.vimrc.local
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..."
brew install ag
brew install ctags
brew install fswatch
brew install macvim
brew install node