[ADD][VIM] Local leader mapping

I don't use the '!' command to filter text through an external program.
If I need that functionality I use visual mode and a ':!' command.
This commit is contained in:
Bruno BELANYI 2019-10-09 14:41:50 +02:00
parent 5e5b8271c2
commit 57a48b3c05

View file

@ -326,6 +326,8 @@ nnoremap Y y$
" Map leader to space (needs the noremap trick) " Map leader to space (needs the noremap trick)
nnoremap <Space> <Nop> nnoremap <Space> <Nop>
let mapleader=" " let mapleader=" "
" Map localleader to '!' (if I want to filter text, I use visual mode)
let maplocalleader="!"
" Mappings for working with this file. " Mappings for working with this file.
map <Leader>ev :edit $MYVIMRC<CR> map <Leader>ev :edit $MYVIMRC<CR>