aboutsummaryrefslogtreecommitdiff
path: root/autoload
diff options
context:
space:
mode:
Diffstat (limited to 'autoload')
-rw-r--r--autoload/utils.vim16
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()
+
+
+"-------------------------------------------------