November 2018
Beginner
330 pages
7h 21m
English
Everyone's workflow is unique, and no two people use Vim in exactly the same way. It's useful to find ways to complement your style by enhancing and optimizing the way you do things in Vim.
Find yourself using a particular command a lot? Create a custom key binding!
For example, I use the CtrlP plugin quite a lot (both for navigating the file tree and the buffer list), and I have the following custom mappings:
nnoremap <leader>p :CtrlP <cr>nnoremap <leader>t :CtrlPTag <cr>
I also often find myself running the :Ack command (provided by the ack-vim plugin) on a word under cursor, so I have the following in my .vimrc:
nnoremap <leader>a :Ack! <c-r><c-w><cr>
The <c-r> and <c-w> inserts the word under cursor into the ...
Read now
Unlock full access