On Friday, March 9, 2012 11:06:13 AM UTC-6, Chris Lott wrote:
> I'd like to come up with a method to toggle between the current window
> size and text width and a maximized window with a different text
> width. I have no idea how to proceed. Are there methods to read the
> current window and textwidth and store them so I can toggle back?
> 

You can access textwidth (and any other option) by prepending a &, e.g. :let 
myvar = &textwidth.

Why do you want to do this? 'textwidth' affects the placement of hard returns 
in a file, it should not change based on temporary window size, and changing it 
will not affect the existing text.

-- 
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

Reply via email to