1
0
mirror of https://github.com/gryf/.vim.git synced 2025-12-17 11:30:29 +01:00

Make whitespace stripping not default.

This commit is contained in:
2024-07-13 17:39:52 +02:00
parent 0da4596005
commit f98486130d

5
vimrc
View File

@@ -156,7 +156,7 @@ set noswapfile
"set undodir=~/.cache
" Strip trailing whitespace option
let stripTrailingWhitespace = 1
let stripTrailingWhitespace = 0
" Ignore missing spell files
let loaded_spellfile_plugin = 1
@@ -373,9 +373,6 @@ function s:SetGitcommitSettings() "{{{2
endfunction
"}}}
"remove all trailing whitespace for specified files before write
autocmd BufWritePre * :call <SID>StripTrailingWhitespaces(0, 'n')
autocmd BufRead *.mako set filetype=mako
autocmd BufRead *.ass, *asm set filetype=kickass