On Oct 19, 4:20 pm, Srinath <[email protected]> wrote:
> I want to use the line wrap mechanism usually done by :
> :set wrap
> :set textwidth=20
> This would normally allow for one to type upto 20 characters on one
> line and then have it continue on the next.
>
> I removed all of my user setting files and directories to make sure a
> plugin was not interfering.
>
> This seems to not happen with snapshot 50.   I invoke the 2 commands
> above and type characters and they continue for ever on one line.
>
> Is there a way in MacVim and vim to see what are all the global
> settings loaded?
>
> Thank you,
> <>Srinath

To see which settings are not at their defaults, use

        :set

wih no arguments. To see all settings _including_ those still at their
defaults, use

        :set all

However, 'wrap' and 'textwidth' have nothing to do with each other.
'wrap' will wrap your lines (without breaking them) at the window
margin, onto several "screen" lines per "file" line if necessary,
possibly in the middle of a word, and with absolutely no regard for
the value of 'textwidth'. 'textwidth' defines where Vim will _break_
lines (but usually only comment lines, not code lines) when you type
them. Where 'textwidth' will exert its influence is further defined by
the 'formatoptions' setting (see ":help fo-table").

Note that the help says 'formatoptions' defaults to "tcq" if
'nocompatible', "vt" if 'compatible', however there are filetype-
plugins for various 'filetype's which set (locally, on files of that
filetype) a different value.


Best regards,
Tony.
--
If life is a stage, I want some better lighting.

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_mac" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to