vim q
Nadav Har'El
nyh at math.technion.ac.il
Tue Nov 9 10:31:15 IST 2010
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
nyh at math.technion.ac.il |-----------------------------------------
Phone +972-523-790466, ICQ 13349191 |A professor is one who talks in someone
http://nadav.harel.org.il |else's sleep.
More information about the Linux-il
mailing list