From 62eecba6ade7a2679787033d5d5250ba799f9d76 Mon Sep 17 00:00:00 2001 From: Ekaitz Zarraga Date: Sun, 18 Apr 2021 00:35:32 +0200 Subject: nvim: better whitespace cleaner --- nvim/nvim/init.vim | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nvim/nvim/init.vim b/nvim/nvim/init.vim index e11f18a..032f372 100644 --- a/nvim/nvim/init.vim +++ b/nvim/nvim/init.vim @@ -116,7 +116,9 @@ function TrimWhiteSpace() %s/\s*$// '' :endfunction +" Whitexpace trimmer available in normal and edit mode nnoremap :call TrimWhiteSpace() +inoremap :call TrimWhiteSpace() " Default tabs set tabstop=4 softtabstop=0 expandtab shiftwidth=4 -- cgit v1.2.3