aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2020-02-24 22:52:20 +0100
committerTeddy Wing2020-02-26 00:55:21 +0100
commit7a06e3db5d7a47a05558dd6557f23e665cc26c39 (patch)
tree7d5e8ed444240f0bc0c39825a651ab7b9d7aa8dc
parentc506a5df1543c5562c2b8c6f533104f3a441c19e (diff)
downloaddotvim-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.
-rw-r--r--vimrc4
1 files changed, 4 insertions, 0 deletions
diff --git a/vimrc b/vimrc
index 69032c1..3cb9df9 100644
--- a/vimrc
+++ b/vimrc
@@ -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>