aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--vimrc6
1 files changed, 6 insertions, 0 deletions
diff --git a/vimrc b/vimrc
index 3c06d26..5908e2c 100644
--- a/vimrc
+++ b/vimrc
@@ -464,6 +464,9 @@
" 2020.09.10:
" * Make the quickfix window 10 lines tall in vim-go.
"
+" 2020.09.22:
+" * Add i_^r^f mapping to insert the current filename.
+"
" Pathogen
@@ -859,6 +862,9 @@ nnoremap <leader>gp :!git log -p -- %<cr>
nnoremap <leader>cf :call system('pbcopy', expand('%'))<cr>
nnoremap <leader>cF :call system('pbcopy', expand('%:p'))<cr>
+" Insert the current file name
+inoremap <C-r><C-f> <C-r>=expand('%:t:r')<CR>
+
" Save the current session to a file
nnoremap <leader>mk :mksession! vimsession<cr>