From b6243f2a9a0df5ee1cf3af50ecb5ac6ea2642e34 Mon Sep 17 00:00:00 2001 From: Sanchayan Maity Date: Wed, 7 Jun 2023 14:14:56 +0530 Subject: [PATCH] Revert "nvim: plugin: Add a simple whitespace plugin" This reverts commit 891fae907b9bed937bd7619a9b0fee6293451aee. Now that we have mini.trailspace enabled by default, drop this whitespace plugin. --- nvim/.config/nvim/plugin/whitespace.vim | 12 ------------ 1 file changed, 12 deletions(-) delete mode 100644 nvim/.config/nvim/plugin/whitespace.vim diff --git a/nvim/.config/nvim/plugin/whitespace.vim b/nvim/.config/nvim/plugin/whitespace.vim deleted file mode 100644 index 203a2be..0000000 --- a/nvim/.config/nvim/plugin/whitespace.vim +++ /dev/null @@ -1,12 +0,0 @@ -" https://vi.stackexchange.com/questions/454/whats-the-simplest-way-to-strip-trailing-whitespace-from-all-lines-in-a-file -function! Preserve(command) - " Preparation: save window state - let l:saved_winview = winsaveview() - " Run the command: - execute a:command - " Clean up: restore previous window position - call winrestview(l:saved_winview) -endfunction - -nnoremap ws :call Preserve("%s/\\s\\+$//e") -xnoremap ws :call Preserve("%s/\\s\\+$//e")