For writing and editing prose text files, I have these settings in
my .vimrc:
autocmd BufRead,BufNewFile *.txt,*.rdoc,README,TODO,CHANGELOG,NOTES
\ setlocal expandtab softtabstop=2 shiftwidth=2
formatoptions=1
\ comments=s1:/*,ex:*/,://,b:#,:%,:XCOMM,fb:-,fb:*,fb:
+,fb:.,fb:>
autocmd BufRead,BufNewFile *.txt,*.rdoc,README,TODO,CHANGELOG,NOTES
setlocal lbr
autocmd BufRead,BufNewFile *.txt,*.rdoc,README,TODO,CHANGELOG,NOTES
map j gj
autocmd BufRead,BufNewFile *.txt,*.rdoc,README,TODO,CHANGELOG,NOTES
map k gk
(I'm not sure what the "comments=etc." stuff does; I copied this stuff
from someone's blog.)
These settings work pretty well. They cause vim to wrap my text at the
end of the window without inserting hard line breaks, which is a
nuisance when editing regular prose.
But is there are a way to get soft wrapping at a certain textwidth?
I'd like to avoid having the wrap margin depend on the width of my
terminal window.
Thanks.
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---