Skip to content

Instantly share code, notes, and snippets.

@btashton
Last active August 29, 2015 13:56
Show Gist options
  • Save btashton/9179781 to your computer and use it in GitHub Desktop.
Save btashton/9179781 to your computer and use it in GitHub Desktop.
Various Notes for VIM
== VIM Notes ==
=== ctags ===
Generate tags file in the top directory with: ctags -R .
Lets you navigate source files by functions.
<ctrl-]> enters function
<ctrl-t> move up tree
http://blog.stwrt.ca/2012/10/31/vim-ctags
=== taglist ===
View tags/symbols on a side window
:TlistToggle
=== Windows ===
<ctrl-ws> - Split windows
<ctrl-ww> - switch between windows
<ctrl-wq> - Quit a window
<ctrl-wv> - Split windows vertically
=== Buffers ===
List buffers such as those opened by nerdtree :buffers
b# to open a specific one
=== Defines and Macros ===
To display the definition of a variable, place the cursor on the variable and use the [i command.
To display a macro definition, place the cursor on the macro name and use the [d command.
To display all the lines containing the variable name under the cursor, use the [I command.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment