fix some bugs

This commit is contained in:
Nachuan Tang
2023-03-23 16:20:14 -04:00
parent b0cea11d61
commit 8cda9923dc
5 changed files with 152 additions and 166 deletions
+7
View File
@@ -197,3 +197,10 @@ function! GenVimAsciiArt(buffer_str_len)
endif
return ascii_art
endfunction
"Remove all trailing whitespace by pressing <leader>ws
fun! TrimWhitespace()
let l:save = winsaveview()
keeppatterns %s/\s\+$//e
call winrestview(l:save)
endfun