diff options
| author | srdusr <trevorgray@srdusr.com> | 2023-08-11 22:37:56 +0200 |
|---|---|---|
| committer | srdusr <trevorgray@srdusr.com> | 2023-08-11 22:37:56 +0200 |
| commit | 2384135982f3629e76573773e32a7a57a6cbca4c (patch) | |
| tree | 3b9f095896e7868f7c9ff161d327734680bdff60 /autoload/utils.vim | |
| parent | 00793fa99d4ec41a0fe5e8c38d8042efb51ef151 (diff) | |
| download | dotfiles-2384135982f3629e76573773e32a7a57a6cbca4c.tar.gz dotfiles-2384135982f3629e76573773e32a7a57a6cbca4c.zip | |
Fixed weird formatting/wrapping
Diffstat (limited to 'autoload/utils.vim')
| -rw-r--r-- | autoload/utils.vim | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/autoload/utils.vim b/autoload/utils.vim index 1ca005f..fc078f7 100644 --- a/autoload/utils.vim +++ b/autoload/utils.vim @@ -148,3 +148,19 @@ endfunction "------------------------------------------------- + +" Disable annoying auto line break +fu! utils#DisableBr() + set wrap + set linebreak + set nolist " list disables linebreak + set textwidth=0 + set wrapmargin=0 + set formatoptions-=t +endfu + +" Disable line breaks for all file types +autocmd! BufNewFile,BufRead *.* call utils#DisableBr() + + +"------------------------------------------------- |
