diff options
author | Teddy Wing | 2020-02-24 22:52:20 +0100 |
---|---|---|
committer | Teddy Wing | 2020-02-26 00:55:21 +0100 |
commit | 7a06e3db5d7a47a05558dd6557f23e665cc26c39 (patch) | |
tree | 7d5e8ed444240f0bc0c39825a651ab7b9d7aa8dc /vimrc | |
parent | c506a5df1543c5562c2b8c6f533104f3a441c19e (diff) | |
download | dotvim-7a06e3db5d7a47a05558dd6557f23e665cc26c39.tar.bz2 |
vimrc: Add `<leader>cF` mapping to copy the absolute path of a file
Analogue to `<leader>cf`, which copies the relative path.
Diffstat (limited to 'vimrc')
-rw-r--r-- | vimrc | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -452,6 +452,9 @@ " 2020.02.19: " * Turn off vim-go fmt on save. " +" 2020.02.24: +" * Add `<leader>cF` mapping to copy the absolute path of a file. +" " Pathogen @@ -841,6 +844,7 @@ nnoremap <leader>gp :!git log -p -- %<cr> " Copy the current file path into the OS X pasteboard nnoremap <leader>cf :call system('pbcopy', expand('%'))<cr> +nnoremap <leader>cF :call system('pbcopy', expand('%:p'))<cr> " Save the current session to a file nnoremap <leader>mk :mksession! vimsession<cr> |