Added ,cn to copy name of current file into system clipboard

This commit is contained in:
yan
2012-04-14 16:40:50 -07:00
parent d2448921b5
commit ebc1ea9cc7
2 changed files with 3 additions and 1 deletions

View File

@@ -158,6 +158,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> ,cn :let @* = expand("%:t")<CR>
"Clear current search highlight by double tapping //
nmap <silent> // :nohlsearch<CR>