nvim: init.vim: Add shortcut for save and quit
Signed-off-by: Sanchayan Maity <maitysanchayan@gmail.com>
This commit is contained in:
parent
7f07f65458
commit
e94f771db3
1 changed files with 4 additions and 1 deletions
|
@ -137,8 +137,12 @@ if maparg('<C-L>', 'n') ==# ''
|
||||||
nnoremap <silent> <C-L> :nohlsearch<CR><C-L>
|
nnoremap <silent> <C-L> :nohlsearch<CR><C-L>
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
" Save
|
||||||
|
nnoremap <Leader>w <Esc>:w<CR>
|
||||||
" Search and Replace
|
" Search and Replace
|
||||||
nmap <Leader>s :%s//g<Left><Left>
|
nmap <Leader>s :%s//g<Left><Left>
|
||||||
|
" Quit
|
||||||
|
nnoremap <Leader>q <Esc>:q<CR>
|
||||||
|
|
||||||
"nnoremap ; : " Use ; for commands.
|
"nnoremap ; : " Use ; for commands.
|
||||||
"nnoremap Q @q " Use Q to execute default register.
|
"nnoremap Q @q " Use Q to execute default register.
|
||||||
|
@ -157,7 +161,6 @@ nnoremap <Leader>gm :GitMessenger<CR>
|
||||||
" Manage splits
|
" Manage splits
|
||||||
set splitbelow
|
set splitbelow
|
||||||
set splitright
|
set splitright
|
||||||
nnoremap <Leader>w <c-w>w
|
|
||||||
|
|
||||||
" Theme
|
" Theme
|
||||||
syntax enable
|
syntax enable
|
||||||
|
|
Loading…
Reference in a new issue