VIM

From John Freier
Revision as of 15:29, 30 September 2021 by Jfreier (Talk | contribs)

Jump to: navigation, search

Syntax Highlighting

Inside VI type the command below.

:syntax on

Maybe

:syn on

Bottom Page

This goes to the bottom of the page.

G

Bookmarks

To bookmark a position press m and then a letter. Use capital letter for Global or multiple files.

 ma

To go to the bookmark press ` and then letter marking you want to go to.

 `a

To see all your bookmarks.

 :marks

To to last edit location.

 `.



Record

To record a set of keys press q and then a letter to record to.

 qa

To play back the recording press @ and then letter marking you want to play back.

 @a


Windows

Switch between windows. The arrow key or direction key you want to go to.

 ctrl+w {arrow key} or {h,j,k,l}

Show Whitespace

This will show all whitespace char

 set list

You can also show only select char.

 :set listchars=eol:$,tab:>-,trail:~