Last active
August 29, 2015 13:56
-
-
Save btashton/9179781 to your computer and use it in GitHub Desktop.
Various Notes for VIM
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
== 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