From c5d4e4a23a397ae1dc68682734f2fe26d3adf0f0 Mon Sep 17 00:00:00 2001 From: "David T. Sadler" Date: Sat, 11 Feb 2023 12:51:08 +0000 Subject: Switched to lua and install various plugins --- .config/nvim/general/functions.vim | 12 ------------ 1 file changed, 12 deletions(-) delete mode 100644 .config/nvim/general/functions.vim (limited to '.config/nvim/general/functions.vim') diff --git a/.config/nvim/general/functions.vim b/.config/nvim/general/functions.vim deleted file mode 100644 index 07a67c4..0000000 --- a/.config/nvim/general/functions.vim +++ /dev/null @@ -1,12 +0,0 @@ -function! StripTrailingWhitespaces() - " Preparation: save last search, and cursor position. - let _s=@/ - let l = line(".") - let c = col(".") - " Do the business: - %s/\s\+$//e - " Clean up: restore previous search history, and cursor position - let @/=_s - call cursor(l, c) -endfunction -nnoremap :call StripTrailingWhitespaces() -- cgit v1.2.3-13-gbd6f