diff options
-rw-r--r-- | nvim/nvim/init.vim | 2 |
1 files changed, 2 insertions, 0 deletions
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 <F2> :call TrimWhiteSpace()<CR> +inoremap <F2> <ESC>:call TrimWhiteSpace()<CR> " Default tabs set tabstop=4 softtabstop=0 expandtab shiftwidth=4 |