Merge pull request #711 from padi/patch-1

Add vim shortcut: copy the relative path of a file
This commit is contained in:
Yan Pritzker 2016-06-15 15:54:27 -05:00 committed by GitHub
commit fdc786984b

View File

@ -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 //