diff --git a/vimrc b/vimrc index ac09b1f..4c941a3 100644 --- a/vimrc +++ b/vimrc @@ -135,6 +135,9 @@ if !empty(glob(s:info_filename)) && !filewritable(s:info_filename) echoerr 'The .viminfo file cannot be written to!' endif +""" Set dockerfile syntax +autocmd BufNewFile,BufRead Dockerfile* set ft=Dockerfile + """ keybindings @@ -156,11 +159,12 @@ nnoremap b :Gblame nnoremap :FZF nnoremap f :Buffers nnoremap :Files -nnoremap :Rg +nnoremap :Rg nnoremap k :exe "Rg " . expand("") nnoremap s :call Fzf_dev() nnoremap c :Commits nnoremap b :Git blame +nnoremap gh :exe "Git log -L:" . expand("") . ":" . expand("%") nnoremap :silent! nohls:call clearmatches() nnoremap :bnext nnoremap \ :bprev