chore(vim): add binding to open current file in browser

There is some weirdness with `:GBrowse` where it will open the file and
line but only if the line / block is visually selected. This was too
many keystrokes so I added a binding to do it.
This commit is contained in:
Ade Attwood 2023-08-21 08:32:49 +01:00
parent 8fac40e82f
commit debce210d5

View file

@ -62,6 +62,12 @@ noremap <silent> ]b :bn<cr>
noremap <silent> [q :cprevious<cr>
noremap <silent> ]q :cnext<cr>
" Add binding to "git open" to open the current file in the browser at the
" current line. For some reason `:GBrowse` will only open the file and not go
" to the line unless I use visual mode to select the line and then run
" `:GBrowse`
noremap <silent> go <c-v>:GBrowse<cr>
inoremap <M-;> <esc>A;
noremap <leader>; gcc