vim:keys: Add mapping to strip trailing whitespace

This commit is contained in:
2022-10-16 01:50:55 +02:00
parent e2566444d4
commit 39e8b266d0

View File

@@ -205,3 +205,6 @@ vnoremap <leader>utc :s/\v(^\|[^0-9])\zs[0-9]{10}\ze([^0-9]\|$)/\=strftime("%F %
" and ][ fw to next '[', instead of the other way around.
noremap ]] ][
noremap ][ ]]
" Strip trailing whitespace
nnoremap <leader><space> :silent! %s/\v\s+$//<CR>