Bindings and syntax highlight change
This commit is contained in:
parent
d3ab3269c0
commit
36f4b9ee14
6
vimrc
6
vimrc
|
@ -135,6 +135,9 @@ if !empty(glob(s:info_filename)) && !filewritable(s:info_filename)
|
||||||
echoerr 'The .viminfo file cannot be written to!'
|
echoerr 'The .viminfo file cannot be written to!'
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
""" Set dockerfile syntax
|
||||||
|
autocmd BufNewFile,BufRead Dockerfile* set ft=Dockerfile
|
||||||
|
|
||||||
|
|
||||||
""" keybindings
|
""" keybindings
|
||||||
|
|
||||||
|
@ -156,11 +159,12 @@ nnoremap <leader>b :Gblame<CR>
|
||||||
nnoremap <C-p> :FZF<CR>
|
nnoremap <C-p> :FZF<CR>
|
||||||
nnoremap <leader>f :Buffers<CR>
|
nnoremap <leader>f :Buffers<CR>
|
||||||
nnoremap <C-F> :Files<CR>
|
nnoremap <C-F> :Files<CR>
|
||||||
nnoremap <C-\> :Rg<CR>
|
nnoremap <C-g> :Rg<CR>
|
||||||
nnoremap <leader>k :exe "Rg " . expand("<cword>")<cr>
|
nnoremap <leader>k :exe "Rg " . expand("<cword>")<cr>
|
||||||
nnoremap <leader>s :call Fzf_dev()<CR>
|
nnoremap <leader>s :call Fzf_dev()<CR>
|
||||||
nnoremap <leader>c :Commits<CR>
|
nnoremap <leader>c :Commits<CR>
|
||||||
nnoremap <leader>b :Git blame<CR>
|
nnoremap <leader>b :Git blame<CR>
|
||||||
|
nnoremap <leader>gh :exe "Git log -L:" . expand("<cword>") . ":" . expand("%")<cr>
|
||||||
nnoremap <leader><esc> :silent! nohls<CR>:call clearmatches()<CR>
|
nnoremap <leader><esc> :silent! nohls<CR>:call clearmatches()<CR>
|
||||||
nnoremap <leader><Tab> :bnext<CR>
|
nnoremap <leader><Tab> :bnext<CR>
|
||||||
nnoremap <leader>\ :bprev<CR>
|
nnoremap <leader>\ :bprev<CR>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user