From 2bf0f5908fbe05a026be90f94d943a42e281ea4f Mon Sep 17 00:00:00 2001 From: yan Date: Thu, 5 Apr 2012 10:03:40 -0700 Subject: [PATCH] Change ,cf to give you the filename relative to your home dir --- vim/plugin/settings/yadr-keymap.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vim/plugin/settings/yadr-keymap.vim b/vim/plugin/settings/yadr-keymap.vim index 79a7bf0..14e8437 100644 --- a/vim/plugin/settings/yadr-keymap.vim +++ b/vim/plugin/settings/yadr-keymap.vim @@ -157,7 +157,7 @@ imap <% %>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 ,cf :let @* = expand("%:p") +nnoremap ,cf :let @* = expand("%:~") "Clear current search highlight by double tapping // nmap // :nohlsearch