aboutsummaryrefslogtreecommitdiff
path: root/autoload/utils.vim
diff options
context:
space:
mode:
authorjdhao <jdhao@hotmail.com>2021-11-01 23:38:44 +0800
committerjdhao <jdhao@hotmail.com>2021-11-01 23:38:44 +0800
commit8ebbec29d612d243e9eecb7e02227bacad9f97ea (patch)
tree7f50410c7752bbf5cd1f36318fc70475eb78bc14 /autoload/utils.vim
parent2d27a699dce5a5d8f3f667a44712b40d218fe75a (diff)
move whitespace utility into separate plugins
Diffstat (limited to 'autoload/utils.vim')
-rw-r--r--autoload/utils.vim8
1 files changed, 0 insertions, 8 deletions
diff --git a/autoload/utils.vim b/autoload/utils.vim
index 4847ca7..891ab78 100644
--- a/autoload/utils.vim
+++ b/autoload/utils.vim
@@ -1,11 +1,3 @@
-" Remove trailing white space, see https://vi.stackexchange.com/a/456/15292
-function! utils#StripTrailingWhitespaces() abort
- let l:save = winsaveview()
- " vint: next-line -ProhibitCommandRelyOnUser -ProhibitCommandWithUnintendedSideEffect
- keeppatterns %s/\v\s+$//e
- call winrestview(l:save)
-endfunction
-
" Create command alias safely, see https://stackoverflow.com/q/3878692/6064933
" The following two functions are taken from answer below on SO:
" https://stackoverflow.com/a/10708687/6064933