diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim index 7c3554b..e9795b8 100644 --- a/.config/nvim/init.vim +++ b/.config/nvim/init.vim @@ -487,6 +487,9 @@ nnoremap inoremap vnoremap +" yank filename to f buffer +nnoremap yf :let @f = expand("%") + " remove all trailing whitespaces " on pressing space+W nnoremap W :%s/\s\+$//:let @/=''