nvim: init.vim: Add shortcut for save and quit

Signed-off-by: Sanchayan Maity <maitysanchayan@gmail.com>
This commit is contained in:
Sanchayan Maity 2019-08-06 08:45:18 +05:30
parent 7f07f65458
commit e94f771db3

View file

@ -137,8 +137,12 @@ if maparg('<C-L>', 'n') ==# ''
nnoremap <silent> <C-L> :nohlsearch<CR><C-L>
endif
" Save
nnoremap <Leader>w <Esc>:w<CR>
" Search and Replace
nmap <Leader>s :%s//g<Left><Left>
" Quit
nnoremap <Leader>q <Esc>:q<CR>
"nnoremap ; : " Use ; for commands.
"nnoremap Q @q " Use Q to execute default register.
@ -157,7 +161,6 @@ nnoremap <Leader>gm :GitMessenger<CR>
" Manage splits
set splitbelow
set splitright
nnoremap <Leader>w <c-w>w
" Theme
syntax enable