1
0
mirror of https://github.com/amix/vimrc synced 2025-06-17 02:15:01 +08:00

feat: Added mappings to copy the link to the line of a Git repository to the clipboard

This is super useful when sharing a reference with another developer,
e.g., to a function.
This commit is contained in:
Amir
2021-10-11 11:29:06 +02:00
parent d93dda4770
commit e4932424f0
3 changed files with 14 additions and 0 deletions

View File

@ -178,3 +178,11 @@ nnoremap <silent> <leader>d :GitGutterToggle<cr>
" => EditorConfig (project-specific EditorConfig rule)
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
let g:EditorConfig_exclude_patterns = ['fugitive://.*']
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" => Fugitive
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Copy the link to the line of a Git repository to the clipboard
nnoremap <leader>v :.GBrowse!<CR>
xnoremap <leader>v :'<'>GBrowse!<CR>