aboutsummaryrefslogtreecommitdiffstats
path: root/vimrc
diff options
context:
space:
mode:
Diffstat (limited to 'vimrc')
-rw-r--r--vimrc6
1 files changed, 6 insertions, 0 deletions
diff --git a/vimrc b/vimrc
index 3e7e2b9..40d20f0 100644
--- a/vimrc
+++ b/vimrc
@@ -334,6 +334,9 @@
" * Remove `g:loaded_auditory` setting because Auditory sounds are off
" by default starting with v0.1.0.
"
+" 2015.08.18:
+" * Add a mapping system copy the current file's path
+"
" Pathogen
@@ -662,6 +665,9 @@ nnoremap <leader>p :read !pbpaste<cr>
nnoremap <leader>gb :GitBlamer<cr>
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>
+
" Commands