Skip to content

Instantly share code, notes, and snippets.

@natlownes
Created September 13, 2013 19:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save natlownes/6554889 to your computer and use it in GitHub Desktop.
Save natlownes/6554889 to your computer and use it in GitHub Desktop.
rebuild CtrlP cache and ctags
augroup RebuildCaches
autocmd!
autocmd BufWritePost * call RebuildTags()
autocmd FocusGained * CtrlPClearCache
autocmd BufWritePost * CtrlPClearCache
augroup END
function! RebuildTags()
let cmd = 'ctags -R'
let output=system(cmd)
return output
endfunction
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment