mirror of
https://github.com/amix/vimrc
synced 2024-12-12 05:02:30 +00: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:
parent
d93dda4770
commit
e4932424f0
3 changed files with 14 additions and 0 deletions
|
@ -352,6 +352,11 @@ Open [ctrlp.vim](https://github.com/kien/ctrlp.vim) plugin to quickly find a fil
|
|||
:IndentGuidesDisable
|
||||
:IndentGuidesToggle
|
||||
|
||||
[vim-fugitive](https://github.com/tpope/vim-fugitive) to copy the link to the line of a Git repository to the clipboard:
|
||||
|
||||
nnoremap <leader>v :.GBrowse!<CR>
|
||||
xnoremap <leader>v :'<'>GBrowse!<CR>
|
||||
|
||||
|
||||
### Spell checking
|
||||
Pressing `<leader>ss` will toggle spell checking:
|
||||
|
|
|
@ -40,6 +40,7 @@ vim-surround https://github.com/tpope/vim-surround
|
|||
vim-expand-region https://github.com/terryma/vim-expand-region
|
||||
vim-multiple-cursors https://github.com/terryma/vim-multiple-cursors
|
||||
vim-fugitive https://github.com/tpope/vim-fugitive
|
||||
vim-rhubarb https://github.com/tpope/vim-rhubarb
|
||||
goyo.vim https://github.com/junegunn/goyo.vim
|
||||
vim-zenroom2 https://github.com/amix/vim-zenroom2
|
||||
vim-repeat https://github.com/tpope/vim-repeat
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue