mirror of
https://git.decapod.one/brethil/dotfiles
synced 2024-11-01 02:11:30 +01:00
vim: add new leader mappings
This commit is contained in:
parent
425a0fd255
commit
dcedb55fbc
|
@ -18,6 +18,7 @@ let g:ale_fixers = {
|
||||||
\ 'bash': ['shfmt'],
|
\ 'bash': ['shfmt'],
|
||||||
\ 'json': ['prettier'],
|
\ 'json': ['prettier'],
|
||||||
\ 'css': ['prettier'],
|
\ 'css': ['prettier'],
|
||||||
|
\ 'html': ['prettier'],
|
||||||
\ 'markdown': ['prettier'],
|
\ 'markdown': ['prettier'],
|
||||||
\ 'yaml': ['prettier'],
|
\ 'yaml': ['prettier'],
|
||||||
\ 'python': ['black', 'isort'],
|
\ 'python': ['black', 'isort'],
|
||||||
|
@ -138,8 +139,10 @@ nnoremap <leader>wz :call WinZoomToggle()<CR>
|
||||||
nnoremap <leader>/ :G<CR>
|
nnoremap <leader>/ :G<CR>
|
||||||
nnoremap <leader>C :close<CR>
|
nnoremap <leader>C :close<CR>
|
||||||
nnoremap <leader>B :Bclose<CR>
|
nnoremap <leader>B :Bclose<CR>
|
||||||
nnoremap <leader>G :Git
|
nnoremap <leader>G :Git<CR>
|
||||||
nnoremap <leader>P :GPush<CR>
|
nnoremap <leader>gd :Git diff<CR>
|
||||||
|
nnoremap <leader>gp :Git push<CR>
|
||||||
|
nnoremap <leader>gpf :Git push --force-with-lease<CR>
|
||||||
nnoremap <leader>M :Git commit<CR>
|
nnoremap <leader>M :Git commit<CR>
|
||||||
nnoremap <leader>u :GitGutterBufferToggle<CR>
|
nnoremap <leader>u :GitGutterBufferToggle<CR>
|
||||||
nnoremap <leader>L :GitGutterLineHighlightsToggle<CR>
|
nnoremap <leader>L :GitGutterLineHighlightsToggle<CR>
|
||||||
|
@ -160,8 +163,13 @@ nmap <leader>sh :ALEGoToDefinition -split<CR>
|
||||||
nmap <leader>st :ALEGoToDefinition -tab<CR>
|
nmap <leader>st :ALEGoToDefinition -tab<CR>
|
||||||
nmap <leader>A :ALEGoToDefinition<CR>
|
nmap <leader>A :ALEGoToDefinition<CR>
|
||||||
nmap <leader>n :ALEFindReferences<CR>
|
nmap <leader>n :ALEFindReferences<CR>
|
||||||
|
nmap <leader>n :ALEFindReferences<CR>
|
||||||
|
nmap <leader>h :ALEHover<CR>
|
||||||
nmap <leader>r :ALERename<CR>
|
nmap <leader>r :ALERename<CR>
|
||||||
|
|
||||||
|
|
||||||
|
nmap <leader>t :CtrlPTag<CR>
|
||||||
|
|
||||||
" Add shortcuts to yank/paste to unnamed/unnamedplus clipboards
|
" Add shortcuts to yank/paste to unnamed/unnamedplus clipboards
|
||||||
noremap <Leader>y "*y
|
noremap <Leader>y "*y
|
||||||
noremap <Leader>p "*p
|
noremap <Leader>p "*p
|
||||||
|
|
Loading…
Reference in New Issue
Block a user