[TriLUG] God, how I hate thee, VIM

Aaron S. Joyner aaron at joyner.ws
Thu Oct 21 13:38:16 EDT 2004


gregbrown at mindspring.com wrote:

>Ah, good point.  I'm feeling *a little* better.
>
>After trying to figure out what was going wrong I found the following 
>odd scenario:
>
>vi ./file
>(auto repeat is NOT on)
>(save file)
>
>chmod 755 ./file
>vi ./file
>(auto repeat IS on)
>
>Strange.
>
>If I am editing a file with the executable bits set...
>
More specifically, if you're editing a file that vim identifies as a 
script, it will try to do some helpful things for you.  There's probably 
a more elegant way, but if you just want a quick and dirty way to turn 
off all code interpretation, type
:set paste
Which will throw the editor into "paste mode", meaning that it won't do 
anything fancy, out of fear of messing up your pasted in code.  If 
someone knows of a more correct way to turn off those code-oriented 
features such as auto commenting, feel free to chime in.  I know that 
for indenting you could do:
:set nosmartindent
:set noautoindent
:set nocindent
And probably get them all, but that wouldn't help with the 
auto-commenting.  And for the record, if you want to turn off paste, it's
:set nopaste

Enjoy!
Aaron S. Joyner



More information about the TriLUG mailing list