diff options
author | Yigit Sever | 2020-01-15 11:20:09 +0300 |
---|---|---|
committer | Yigit Sever | 2020-01-15 11:20:09 +0300 |
commit | cb6ccba8066c4db7caa4b7de5e9b1c08834b0c12 (patch) | |
tree | 246ef24ced4675ef1b942e0568a41852f0f07fbc | |
parent | 2ae520d59664cfc825e8d42f422e50446ea1b526 (diff) | |
download | dotfiles-cb6ccba8066c4db7caa4b7de5e9b1c08834b0c12.tar.gz dotfiles-cb6ccba8066c4db7caa4b7de5e9b1c08834b0c12.tar.bz2 dotfiles-cb6ccba8066c4db7caa4b7de5e9b1c08834b0c12.zip |
New mapping to insert current filename
-rwxr-xr-x | .config/nvim/init.vim | 3 |
1 files changed, 2 insertions, 1 deletions
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 <c-p> <plug>(YoinkPostPasteSwapForward) | |||
266 | 266 | ||
267 | " change into pwd of current directory | 267 | " change into pwd of current directory |
268 | nnoremap <leader>cd :cd %:p:h<CR>:pwd<CR> | 268 | nnoremap <leader>cd :cd %:p:h<CR>:pwd<CR> |
269 | 269 | inoremap <Leader>fn <C-R>=expand("%:t:r")<CR> | |
270 | nnoremap <Leader>fn :put! =expand('%:t:r')<CR> | ||
270 | "}}} | 271 | "}}} |
271 | 272 | ||
272 | "{{{Tagbar | 273 | "{{{Tagbar |