nvim: init.vim: Update key bindings
This commit is contained in:
parent
4de4c74d5b
commit
fe96f3ae1a
1 changed files with 9 additions and 6 deletions
|
@ -201,10 +201,6 @@ nnoremap ; :
|
|||
" Use Q to execute default register.
|
||||
nnoremap Q <Nop>
|
||||
|
||||
" Plug shortcuts
|
||||
nnoremap <Leader>pg :PlugUpgrade<CR>
|
||||
nnoremap <Leader>pd :PlugUpdate<CR>
|
||||
nnoremap <Leader>pc :PlugClean<CR>
|
||||
" For Fuzzy
|
||||
nnoremap <Leader>vf :GFiles<CR>
|
||||
nnoremap <Leader>v? :GFiles?<CR>
|
||||
|
@ -221,8 +217,8 @@ nnoremap <Leader>vsh :History/<CR>
|
|||
nnoremap <Leader>vm :Commands<CR>
|
||||
nnoremap <Leader>vo :Locate<SPACE>
|
||||
nnoremap <Leader>vk :Maps<CR>
|
||||
nnoremap <Leader>d :exe ':Rg ' . expand('<cword>')<CR>
|
||||
nnoremap <Leader>/ :Rg<CR>
|
||||
nnoremap <Leader>v/ :Rg<CR>
|
||||
nnoremap <Leader>* :exe ':Rg ' . expand('<cword>')<CR>
|
||||
" Quick buffer switching
|
||||
nnoremap <Leader>b :ls<CR>:b<Space>
|
||||
" Undo tree
|
||||
|
@ -328,6 +324,13 @@ command! -bang -nargs=* GGrep
|
|||
\ fzf#vim#with_preview({'dir': systemlist('git rev-parse --show-toplevel')[0]}), <bang>0)
|
||||
|
||||
" --------------------------- Autocmd groups ---------------------------------
|
||||
augroup vimplug_maps
|
||||
au!
|
||||
au FileType vim nmap <Leader>pg :PlugUpgrade<CR>
|
||||
au FileType vim nmap <Leader>pd :PlugUpdate<CR>
|
||||
au FileType vim nmap <Leader>pc :PlugClean<CR>
|
||||
augroup END
|
||||
|
||||
augroup haskell_maps
|
||||
au!
|
||||
au FileType haskell nmap <Leader>ht :NeomakeSh stack exec -- fast-tags -R .<CR>
|
||||
|
|
Loading…
Reference in a new issue