DEV Community

Discussion on: Accelerated Vim-Provement

Collapse
 
rpalo profile image
Ryan Palo

Cool! What are some of your most frequently used leader commands?

Collapse
 
maestromac profile image
Mac Siri

My most used are saving, quiting, and save&quit in below. Reducing keystrokes are always a plus!

let mapleader = ","
noremap <leader>w :w<cr>
noremap <leader>q :q<cr>
noremap <leader><Tab> :wq<cr>
noremap <leader>f :tab split<CR>:Ack ""<Left>
noremap <leader>F :tab split<CR>:Ack <C-r><C-w><CR>
noremap <leader>3 :NERDTreeToggle<CR>
Thread Thread
 
rpalo profile image
Ryan Palo

Awesome. I'll definitely have to do more leader-ing. Thanks!