From 34c9592ae22e340eb7bd33e35537e5552c3ebb2a Mon Sep 17 00:00:00 2001 From: Kevin Cotugno Date: Tue, 27 Nov 2018 08:17:01 -0800 Subject: [PATCH] Split long lines --- .config/nvim/init.vim | 31 ++++++++++++++++++++++++++++--- 1 file changed, 28 insertions(+), 3 deletions(-) diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim index ebffb73..73c2059 100644 --- a/.config/nvim/init.vim +++ b/.config/nvim/init.vim @@ -22,6 +22,7 @@ call plug#end() " vim-plug---END + " Solarized syntax enable set background=dark @@ -51,8 +52,23 @@ set mouse=a set list set listchars=tab:――,space:·,trail:· -autocmd BufRead,BufNewFile *.cs,*.java set tabstop=4 shiftwidth=4 expandtab -autocmd BufRead,BufNewFile *.rb,*.css,*.js,*.jsx,*.coffee,*.erb,*.html,*.json,*.vue set tabstop=2 shiftwidth=2 expandtab +autocmd BufRead,BufNewFile + \ *.cs, + \*.java + \ set tabstop=4 shiftwidth=4 expandtab + +autocmd BufRead,BufNewFile + \ *.rb, + \*.css, + \*.js, + \*.jsx, + \*.coffee, + \*.erb, + \*.html, + \*.json, + \*.vue + \ set tabstop=2 shiftwidth=2 expandtab + autocmd FileType crontab set backupcopy=yes function TrimTrailingInvisibles() @@ -70,7 +86,16 @@ endfunction augroup maximus autocmd BufWrite * call TrimTrailingInvisibles() | call TrimTrailingLines() -autocmd BufLeave * if &buftype == '' && !&readonly && &modifiable && &modified && expand("%:t") != "" | call TrimTrailingInvisibles() | call TrimTrailingLines() | w | GitGutter | endif +autocmd BufLeave * if &buftype == '' + \ && !&readonly + \ && &modifiable + \ && &modified + \ && expand("%:t") != "" + \ | call TrimTrailingInvisibles() + \ | call TrimTrailingLines() + \ | w + \ | GitGutter + \ | endif augroup END