> Is there really no way for Vim to soft wrap at a specified column? I know
> I can turn on hard wrapping or resize the window. Unfortunately, when you
> resize the window to something that makes really long lines more readable
> (like 80-90 columns), as soon as you perform a vsplit, you have to go and
> resize the window again to get back to something reasonable. It sure would
> be nice if I could just make a really wide gvim window and have the text
> soft wrapped at a reasonable column, leaving plenty of room if and when I
> do a vsplit.
You're right, there isn't. One solution might be to put something
like this in your ~/.vimrc:
au VimEnter * if &columns > 80 | rightb vnew | wincmd p | vert resize 80 | endif
If you open Vim in a window wider than 80 columns, it will
automatically open a new window on the right such that the left
window is 80 columns wide.
HTH,
Gary
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
No comments:
Post a Comment