diff --git a/vim/.vim/astroid.vim b/vim/.vim/astroid.vim index 16385f5..bb516ab 100644 --- a/vim/.vim/astroid.vim +++ b/vim/.vim/astroid.vim @@ -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