From 7a06e3db5d7a47a05558dd6557f23e665cc26c39 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Mon, 24 Feb 2020 22:52:20 +0100 Subject: vimrc: Add `cF` mapping to copy the absolute path of a file Analogue to `cf`, which copies the relative path. --- vimrc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'vimrc') 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 `cF` mapping to copy the absolute path of a file. +" " Pathogen @@ -841,6 +844,7 @@ nnoremap gp :!git log -p -- % " Copy the current file path into the OS X pasteboard nnoremap cf :call system('pbcopy', expand('%')) +nnoremap cF :call system('pbcopy', expand('%:p')) " Save the current session to a file nnoremap mk :mksession! vimsession -- cgit v1.2.3