aboutsummaryrefslogtreecommitdiff
path: root/vim.dot.link/plugin/key_mappings.vim
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2024-07-30 00:44:53 -0300
committerSilvio Rhatto <rhatto@riseup.net>2024-07-30 00:44:53 -0300
commitc0c227d51a3caf5502eac6bd65ab01117f12d29a (patch)
treeaefb342134e1f740cf0f0cacd503250e8a40f189 /vim.dot.link/plugin/key_mappings.vim
parent32131c83c870e4900c21443b997ee7172753e470 (diff)
downloadvim-c0c227d51a3caf5502eac6bd65ab01117f12d29a.tar.gz
vim-c0c227d51a3caf5502eac6bd65ab01117f12d29a.tar.bz2
Feat: adds TrimWhitespace()
Diffstat (limited to 'vim.dot.link/plugin/key_mappings.vim')
-rw-r--r--vim.dot.link/plugin/key_mappings.vim4
1 files changed, 4 insertions, 0 deletions
diff --git a/vim.dot.link/plugin/key_mappings.vim b/vim.dot.link/plugin/key_mappings.vim
index 2b0f2e7..0c8bfba 100644
--- a/vim.dot.link/plugin/key_mappings.vim
+++ b/vim.dot.link/plugin/key_mappings.vim
@@ -245,3 +245,7 @@ nnoremap <leader>d i<C-R>=strftime('%Y-%m-%d')<CR>
inoremap <leader>d <C-R>=strftime('%Y-%m-%d')<CR>
map <leader>e :put =strftime('## %Y-%m-%d')<CR>
" }}}
+
+" Remove trailing whitespaces {{{
+noremap <leader>w :call TrimWhitespace()<CR>
+" }}}