data.haus blog

minimal tech for today

VIM

2018-06-27 - psic4t

GENERAL

OPEN FILES

REGISTER

INDENT

FIND/REPLACE

MACROS

Press q then a character of your choice and it will start recording a macro both in normal and insert mode so it's particularly useful for doing repetitive stuff. Stop recording when finished by pressing q again. I now cannot live without it. You call it with @. And works the way you would expect, for example : n@ will execute what you mapped to char n times

JUMPLIST

:g/

In its longer form:

:global/regular-expression/print

You can leave out the pattern/regex and Vim will re-use the previous search term.

Trivia: The grep tool was named after this command sequence.

PLUGINS

None. You don't need any.

COLORS

I'm using the great vim-railscasts theme

View more postsRSS