Add yank filename/-path to vim as yf
This commit is contained in:
parent
a0a14c4afd
commit
06489ac101
1 changed files with 3 additions and 0 deletions
|
@ -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>
|
||||||
|
|
Loading…
Reference in a new issue