Merge pull request #711 from padi/patch-1
Add vim shortcut: copy the relative path of a file
This commit is contained in:
commit
fdc786984b
@ -131,6 +131,7 @@ imap <silent> <C-J> <% %><Esc>2hi
|
||||
" copy current filename into system clipboard - mnemonic: (c)urrent(f)ilename
|
||||
" this is helpful to paste someone the path you're looking at
|
||||
nnoremap <silent> ,cf :let @* = expand("%:~")<CR>
|
||||
nnoremap <silent> ,cr :let @* = expand("%")<CR>
|
||||
nnoremap <silent> ,cn :let @* = expand("%:t")<CR>
|
||||
|
||||
"Clear current search highlight by double tapping //
|
||||
|
Loading…
Reference in New Issue
Block a user