On Tue, Nov 09, 2010, Erez D wrote about "vim q":
> the following line:
> // vim: ts=2 sw=2 et
> 
> seems to work under windows in gvim, but not in linux (at least not under
> vim over xterm).
> 
> how can i change the syntax to make it work in all of linux/windows/cygwin
> in gvim and vim/xterm ?

The syntax seems fine...

For this to work, vim's "modeline" option needs to be on (see :h auto-setting
in vim). Try ":set all" to see what is your setting of "modeline" (and
"modelines") and whether it differs between your Windows and Linux installation.

On my Fedora 14, for example, I see "modeline" and "modelines=5", so it should
work, and look into the first and last 5 lines of the opened file for the
magic option-setting line.


-- 
Nadav Har'El                        |      Tuesday, Nov  9 2010, 2 Kislev 5771
[email protected]             |-----------------------------------------
Phone +972-523-790466, ICQ 13349191 |A professor is one who talks in someone
http://nadav.harel.org.il           |else's sleep.

_______________________________________________
Linux-il mailing list
[email protected]
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il

Reply via email to