increase max width in mail header
This commit is contained in:
@@ -24,12 +24,12 @@ setlocal omnifunc=QueryCommandComplete
|
||||
|
||||
" 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
|
||||
function! ModifyTextWidth()
|
||||
let line=getline('.') " get the current line number of the cursor
|
||||
if line('.') < 5 " if line number smaller than 5
|
||||
setlocal textwidth=500 " use high tw setting
|
||||
setlocal textwidth=5000 " use high tw setting
|
||||
else
|
||||
setlocal textwidth=72 " Otherwise use normal textwidth
|
||||
endif
|
||||
|
||||
Reference in New Issue
Block a user