summaryrefslogtreecommitdiff
path: root/.config/nvim/general/functions.vim
diff options
context:
space:
mode:
Diffstat (limited to '.config/nvim/general/functions.vim')
-rw-r--r--.config/nvim/general/functions.vim12
1 files changed, 0 insertions, 12 deletions
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! <SID>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 <silent> <F5> :call <SID>StripTrailingWhitespaces()<CR>