nvim: init.vim: Remove some more leader usage
Follow in the foot steps of commit 4ebc8f3
and remove some more usage of
leader key.
Signed-off-by: Sanchayan Maity <maitysanchayan@gmail.com>
This commit is contained in:
parent
037496f1e7
commit
fd9df06b50
1 changed files with 6 additions and 7 deletions
|
@ -229,12 +229,12 @@ nnoremap <Leader>b :ls<CR>:b<Space>
|
|||
" Undo tree
|
||||
nnoremap <Leader>u :UndotreeToggle<CR>
|
||||
" Save
|
||||
nnoremap <Leader>w <Esc>:w<CR>
|
||||
nnoremap w <Esc>:w<CR>
|
||||
" Search and Replace
|
||||
nnoremap <Leader>sr :%s//g<Left><Left>
|
||||
nnoremap sr :%s//g<Left><Left>
|
||||
" Manage window splitting
|
||||
nnoremap <Leader>sh <Esc>:sp<CR>
|
||||
nnoremap <Leader>sv <Esc>:vsp<CR>
|
||||
nnoremap sh <Esc>:sp<CR>
|
||||
nnoremap sv <Esc>:vsp<CR>
|
||||
" Quit
|
||||
nnoremap <Leader>x <Esc>:x<CR>
|
||||
nnoremap <Leader>q <Esc>:q<CR>
|
||||
|
@ -244,8 +244,6 @@ nnoremap <Leader>te :vsp<CR> :terminal<CR>
|
|||
nnoremap <Leader>tc :SlimeConfig<CR>
|
||||
xmap <Leader>ts <Plug>SlimeRegionSend
|
||||
nmap <Leader>ts <Plug>SlimeParagraphSend
|
||||
" Reload opened vim config file
|
||||
nnoremap <Leader>r :so %<CR>
|
||||
" For git
|
||||
nnoremap <Leader>gm :GitMessenger<CR>
|
||||
nnoremap <Leader>gl :0Glog<CR>
|
||||
|
@ -282,7 +280,7 @@ nnoremap nja :NeomakeCancelJobs<CR>
|
|||
nnoremap njc :NeomakeCancelJob<SPACE>
|
||||
nnoremap nf :Neoformat<CR>
|
||||
" For workspace
|
||||
nnoremap <Leader>sw :ToggleWorkspace<CR>
|
||||
nnoremap <Leader>ws :ToggleWorkspace<CR>
|
||||
" Quickfix & Location list mappings
|
||||
nnoremap qo :copen<CR>
|
||||
nnoremap qc :cclose<CR>
|
||||
|
@ -356,6 +354,7 @@ augroup vimplug_maps
|
|||
au FileType vim nmap pg :PlugUpgrade<CR>
|
||||
au FileType vim nmap pd :PlugUpdate<CR>
|
||||
au FileType vim nmap pc :PlugClean<CR>
|
||||
au FileType vim nmap r :so %<CR>
|
||||
augroup END
|
||||
|
||||
augroup haskell_maps
|
||||
|
|
Loading…
Reference in a new issue