vim: consecutive empty lines
This commit is contained in:
parent
7983fb98cb
commit
8c19273012
1 changed files with 4 additions and 0 deletions
4
.vimrc
4
.vimrc
|
@ -239,6 +239,10 @@ nnoremap <Leader>z :set nonumber! norelativenumber!<CR>
|
|||
|
||||
" entferne trailing whitespaces beim speichern
|
||||
autocmd BufWritePre * :%s/\s\+$//e
|
||||
" entferne multiple consecutive empty lines
|
||||
if executable('cat')
|
||||
autocmd BufWritePre *.md %!cat -s
|
||||
endif
|
||||
|
||||
" Exit Vim if NERDTree is the only window remaining in the only tab.
|
||||
autocmd BufEnter * if tabpagenr('$') == 1 && winnr('$') == 1 && exists('b:NERDTree') && b:NERDTree.isTabTree() | quit | endif
|
||||
|
|
Loading…
Reference in a new issue