From cb6ccba8066c4db7caa4b7de5e9b1c08834b0c12 Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Wed, 15 Jan 2020 11:20:09 +0300 Subject: New mapping to insert current filename --- .config/nvim/init.vim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to '.config/nvim') diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim index 575c331..861494c 100755 --- a/.config/nvim/init.vim +++ b/.config/nvim/init.vim @@ -266,7 +266,8 @@ nmap (YoinkPostPasteSwapForward) " change into pwd of current directory nnoremap cd :cd %:p:h:pwd - +inoremap fn =expand("%:t:r") +nnoremap fn :put! =expand('%:t:r') "}}} "{{{Tagbar -- cgit v1.2.3-70-g09d2