Favorite VIM Commands

posted in: VIM | 0

Show/Hide Line Numbers

:set number

:set number!

Find Word in File

?wordLookingfor

Example: ?ng-controller

Undo Changes

:u

Find Word in Directory (in terminal, not in vim)

grep -rnw ‘word or sentence to find’ ~/DirectoryToSearch

-r recursive

-n show line number

-w matches the whole wordtopcargo

Leave a Reply