Added ,cn to copy name of current file into system clipboard
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user