mirror of
https://github.com/jdhao/nvim-config.git
synced 2025-06-08 14:14:33 +02:00
move whitespace utility into separate plugins
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user