diff options
Diffstat (limited to 'plugin')
-rw-r--r-- | plugin/vim-options.vim | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/plugin/vim-options.vim b/plugin/vim-options.vim index 7260497..f9a87e0 100644 --- a/plugin/vim-options.vim +++ b/plugin/vim-options.vim @@ -55,6 +55,8 @@ highlight ColorColumn ctermbg=cyan au BufEnter *.py let w:m1=matchadd('ColorColumn', '\%81v', 100) au BufEnter *.py let w:m2=matchadd('Error', '\%121v', 100) au BufLeave *.py call clearmatches() +" Remove trailing space on save but use sed to maintain cursor position +autocmd BufWritePre * :%!sed -r 's/\s+$//' " Neovim (Docker) vs Vim |