Add yank filename/-path to vim as yf

This commit is contained in:
Marty Oehme 2019-09-19 15:43:40 +02:00
parent a0a14c4afd
commit 06489ac101

View file

@ -487,6 +487,9 @@ nnoremap <F1> <ESC>
inoremap <F1> <ESC> inoremap <F1> <ESC>
vnoremap <F1> <ESC> vnoremap <F1> <ESC>
" yank filename to f buffer
nnoremap yf :let @f = expand("%")<cr>
" remove all trailing whitespaces " remove all trailing whitespaces
" on pressing space+W " on pressing space+W
nnoremap <leader>W :%s/\s\+$//<cr>:let @/=''<CR> nnoremap <leader>W :%s/\s\+$//<cr>:let @/=''<CR>