increase max width in mail header

This commit is contained in:
2018-01-18 18:14:09 +01:00
parent 696c8d95bd
commit 46324312bc

View File

@@ -24,12 +24,12 @@ setlocal omnifunc=QueryCommandComplete
" Functions " Functions
" Set tw to 500 if in the first 4 lines, else 500 " Set tw to 5000 if in the first 4 lines, else 72
au CursorMovedI * call ModifyTextWidth() " execute when cursor has moved, use for all files au CursorMovedI * call ModifyTextWidth() " execute when cursor has moved, use for all files
function! ModifyTextWidth() function! ModifyTextWidth()
let line=getline('.') " get the current line number of the cursor let line=getline('.') " get the current line number of the cursor
if line('.') < 5 " if line number smaller than 5 if line('.') < 5 " if line number smaller than 5
setlocal textwidth=500 " use high tw setting setlocal textwidth=5000 " use high tw setting
else else
setlocal textwidth=72 " Otherwise use normal textwidth setlocal textwidth=72 " Otherwise use normal textwidth
endif endif