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:
parent
8fac40e82f
commit
debce210d5
1 changed files with 6 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue