mlsamuelson.com

Topic “Vim”

Tag List Vim plugin - source code browsing

Toggle Tag List window

:TlistToggle

Search for a string in the Tag List just like you would in a regular Vim window

/string_you_want

Select an item in the Tag List by moving the cursor into that item and hitting <ENTER>.

Or, to view more info on the item in the tag list, hit <SPACE>. This works well for seeing function signatures.

Jump from file to file in the tags listing using [[ and ]].

Toggle sorting of tags by their name or the order they appear in the file using s.

Buffers in Vim

:buffers

See current buffers.

:buffer 3

Bring buffer 3 to front.

Vim search for word under cursor

Hit # while cursor is over a function name or variable to search backwards on that value. Use * to search forwards.

Then press n to step forward through all instances, and N to step backwards.

Subsequently, you can press [I (that's a capital i) to get a listing of all lines where that string appears.

Syndicate content

User login