Skip to content

Instantly share code, notes, and snippets.

@sethyuan
Last active December 16, 2015 23:50
Show Gist options
  • Save sethyuan/5516738 to your computer and use it in GitHub Desktop.
Save sethyuan/5516738 to your computer and use it in GitHub Desktop.
VIM tips and tricks
# Generate ctags for system libraries.
ctags -I __THROW --c-kinds=+p --file-scope=yes --langmap=c:+.h --languages=c,c++ --links=yes -R -f ~/.vim/systags /usr/include /usr/local/include
:set autowrite
:vimgrep /pattern/ **/*.js
qa
:s/pattern/replace/g
:cnext
q
10000@a
:set noautowrite
:sp [file]
:vs [file]
Ctrl+w r
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment