Skip to main content


The best text editing experience you will ever get. It is worth learning it as you will start thinking about text editing differently.

I use some kind of vim bindings in any app I use and if there is a vim plugin for the app, I often use it. I use vim editor often when connecting to remote sessions and when I need a console editor.

I use Neovim instead of vim and my vimrc can be found here. And here are all the plugins I use with it.

I switch between Ayu Light and Ayu Mirage themes as I change between macOS appearances.

Ayu Light

Ayu Mirage

I also use a little trick where I change the cursor from thin block in insert mode to underline when in normal mode. This lets me quickly know which mode I am in.


  • I can profile vim startup time with startuptime.
  • I can run :CheckHealth to see if there is anything wrong with my installation (only Neovim).
  • Get plugins that meet your needs.
  • You're more likely to find useful plugins if you approach it the other way around: I want to do X, vim can't do it nicely by itself, which plugin can help me do it.
  • If something doesn't work in vimrc, put the binding in the bottom of vimrc (perhaps something overrides it).
  • I care about reducing friction, and Vim's editing language is very good at that.


" Insert text in the end of each line
" s/ - substitute.
" $ - the end of the line.
" / - change it to.
" , - a comma.
" Lowercase line
" Find char backwards
" Delete backwards until char
" Visually select until char
" Delete all lines in file
" Yank two inner words
" Yanks first and second words (with the trailing space) in the unnamed register
" Delete until start of line
" Yank entire file
" Select entire block
" Visually select until end of line
" Visually select paragraph or function
" See whats in a buffer
" See insides of q buffer
:echo @q
" See registers
" Delete until end of file
" Visually select block
" Start recording macro
" Record to register d
" Delete char under cursor
" Yank inside tag. Can yank an XML tag for example
" Make multi line search.
" Will carry over to new line
" Inclusive search
" Delete until searched string. Won't delete string itself.
" Search and replace
" Run command on startup
" Run ':Goyo' on startup. Put it in .vimrc
autocmd VimEnter * Goyo"
" Insert text at start of each line in file
" Insert // at start of each line in file
" Replay last macro
" Delete until character
" Centre current line
" Put results of command into a register
" In normal mode, will put results of d$ command into _ (black hole register)
" Run macro on whole file
:%normal @x " will run macro x