On 11/01/10 12:02, Linda W wrote:
Tony Mechelynck wrote:
The 'syntax' option, and the syntax plugins, only affect highlighting
(colouring, but also bolding, underlining, etc.), or rather, where
highlighted text starts and ends. (A colorscheme may define the actual
colors, unless you use the "default colours" compiled into Vim).
That's intentional.
---
Oh.
If your vimrc includes both "filetype plugin indent on" and "syntax on"
---
Well it does, but not when I paste 'css' into an empty buffer
to let vim format it it...:-)
Sorry about the delay.
When pasting into Vim running in a terminal, there may be a difference
depending on whether 'paste' is on (:set paste) or off (:set nopaste). I
think it may vary depending on the particular terminal used. Gvim, OTOH,
will realize that you're pasting and not apply additional indentation
regardless of the 'paste' setting.
Didn't know about having to set filetype as well...
Will have to remember that next time I setup an empty buffer
to autoformat pasted css (ever once in a while I want to clean up
some Css from a web-page I'm looking at to see what it is that they are
doing...I usually try to use vim).
Thanks for the heads up...
(going off and feeling half dumb (or half smart? for knowing one
half w/o the other? :-] ).
-linda
To reformat text already in the buffer, gq or gw might help. I've used
it mostly for "text", though (*.txt etc.); it might work differently on
"code" (*.c, *.css, *.vim, etc.).
Best regards,
Tony.
--
Q: Why do ducks have flat feet?
A: To stamp out forest fires.
Q: Why do elephants have flat feet?
A: To stamp out flaming ducks.
--
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