Re: lost menu

2006-12-28 Thread scott
On Tuesday 26 December 2006 11:36, scott wrote:
 has anyone else lost the ability to get a menu by entering

 :set guioptions+=m

 nothing happens

 i see

   4: /usr/local/share/vim/vim70/menu.vim

 in :scriptnames...

 no glaring errors on build (7.0.178)

 i build with
 export CONF_OPT_GUI='--enable-gnome-check'
 in SUSE linux 10.0

i just noticed when running gvim as root i see the menu

root has a symbolic link to my .vimrc and .gvimrc, so the sessions
should be the same -- as me, there's no menu -- as root, the menu's
fine -- what am i overlooking?
-- 
scott


Re: confused by % behavior

2006-12-28 Thread Gary Johnson
On 2006-12-27, Kamaraju Kusumanchi [EMAIL PROTECTED] wrote:
 On Wednesday 27 December 2006 02:06, A.J.Mechelynck wrote:
 
  see :help matchit-install
 
  As an alternative to copying the files, you may want to add a pair of
  softlinks (untested):
 
  ~/.vim/plugin/matchit.vim - 
  /usr/local/share/vim/vim70/macros/matchit.vim
  ~/.vim/doc/matchit.txt - /usr/local/share/vim/vim70/macros/matchit.txt
 
 
 
 This is not working for some reason. I have
 
 $ls -l .vim/plugin/ .vim/doc
 .vim/doc:
 total 0
 lrwxrwxrwx1 raju xxx45 Dec 27 19:06 matchit.txt - 
 myroot/usr/share/vim/vim70/macros/matchit.txt
 
 .vim/plugin/:
 total 0
 lrwxrwxrwx1 raju xxx45 Dec 27 19:06 matchit.vim - 
 myroot/usr/share/vim/vim70/macros/matchit.vim
 
 Even then matchit is not working. However if I add
 
   source ~/myroot/usr/share/vim/vim70/macros/matchit.vim
 
 to .vimrc directly then it is working fine.

I think your symbolic links were incorrectly constructed.  The 
target file names beginning with myroot/usr/... are relative path 
names; they should be absolute path names in this case.  Try this:

ln -sf ~/myroot/usr/share/vim/vim70/macros/matchit.txt ~/.vim/doc
ln -sf ~/myroot/usr/share/vim/vim70/macros/matchit.vim ~/.vim/plugin

HTH,
Gary

-- 
Gary Johnson | Agilent Technologies
[EMAIL PROTECTED] | Wireless Division
 | Spokane, Washington, USA


perl x modifier regex ?

2006-12-28 Thread Marc Chantreux

hi all,

Is there a way to obtain the perl x modifier behaviour in vim regex 
(spaces are non significants, comments are allowed). This is very 
usefull to make a regexp more readable.



regards
mc


Re: perl x modifier regex ?

2006-12-28 Thread Theerasak Photha

On 12/28/06, Marc Chantreux [EMAIL PROTECTED] wrote:

hi all,

Is there a way to obtain the perl x modifier behaviour in vim regex
(spaces are non significants, comments are allowed). This is very
usefull to make a regexp more readable.


No, but there is this:

http://www.vim.org/scripts/script.php?script_id=1091


Re: perl x modifier regex ?

2006-12-28 Thread A.J.Mechelynck

Marc Chantreux wrote:

hi all,

Is there a way to obtain the perl x modifier behaviour in vim regex 
(spaces are non significants, comments are allowed). This is very 
usefull to make a regexp more readable.



regards
mc



You can always add one or more lines of comments above or below the line 
including the pattern in a Vim script, or even, in most cases, at the end of 
the line; but IIUC you cannot insert comments in the middle of a pattern.


To use perl regexps, you can of course embed perl statements in a perl-enabled 
version of Vim; but of course at the cost of making the script less portable.



Best regards,
Tony.


Re: HTML files don't auto indent, everything else does

2006-12-28 Thread A.J.Mechelynck

thesheep wrote:

For some reason the auto-indent features aren't working with HTML source
files (and I want them to).

I've tried these:

:filetype indent on
:set autoindent

I've also tried all these kinds of things:

:set shiftwidth=2
:set softtabstop=2

And then doing 'gg=G' to auto indent.

It indents my javascript nicely, but all the HTML is just pushed hard left
without any indentation.

HTML syntax is highlighted OK, so I guess the filetype thing is working.

My .vimrc file is pretty much emtpy: just says 'syntax on'.

Any ideas?


What happens if you use

:filetype plugin indent on

?


Best regards,
Tony.


Re: Is the mailing list subscription mechanism broken?

2006-12-28 Thread A.J.Mechelynck

Gregory Margo wrote:

I've been trying to subscribe to both the vim  vim-dev mailing lists
from a different address (to escape the extremely unreliable 
pacbell/sbc/att mail servers).  I get a confirmation message back
right away, but after replying to that, I never receive either a 
welcome to the list message or any list messages.


Is the mailing list subscription mechanism broken?

thanks,
gm



AFAIK, it isn't, and after correctly completing the subscription process you 
ought to start receiving list messages there, unless for some reason your 
other ISP blocks the list messages. If there are optional spam filters at that 
non-pacbell ISP, try disabling them.


Or else, try getting a free hotmail / yahoo / netscape.net account and see if 
you can subscribe to the vim-list from there.



Best regards,
Tony.


Re: error in help on tag-highlight ?

2006-12-28 Thread Toon Knapen

Theerasak Photha wrote:


(I hope you don't mind that I am putting this on the mailing list---I
like to share my thoughts with everyone.)


sure



The material in the manual is evidently based on outdated information,
as the ctags invocation given doesn't work


Is there some process to make sure this documentation will be corrected 
for the next release? Soth. I can do?



---however, I will point you
to the excellent Vim taglist plugin, which is very current and can
also highlight tags:

http://www.vim.org/scripts/script.php?script_id=273



But this will highlight the tags in the taglist window. What I would 
like is that in my source files, the keywords that make me jump to a 
tag, will be highlighted so that I know which words serve as keyword 
(keywords being the words on which I place my cursor and subsequently 
push ctrl-] to jump to the tag).


This is e.g. available in the help text of vim. But I think this is 
accomplised through syntax highlighting. In the help, all words in 
between pipes ('|') are coloured and also serve as keywords. But now I 
want these keywords to be highlighted in _addition_ to the syntax 
highlighting that I am using for my (C,C++,...) source files.


Thanks in advance for any valuable pointer,

toon



Re: c-wc-s on *nix vim

2006-12-28 Thread DervishD
Hi Manu :)

 * Manu Hack [EMAIL PROTECTED] dixit:
 It works in Vim7 on WinXP but not on *nix (I tried solaris and linux).
 On *nix, it just stopped until I press c-q.  Why was it happened?

Usually, under UNIX, the c-s combination stops the TTY and c-q
resumes it. For example, under Linux c-s has the same effect of
pressing Scroll-Lock, and c-q does the opposite.

If you want to use c-wc-s (split current window in two), use
c-ws instead, it has the same effect. See :help :sp and you will see
the note saying more or less what I'm explaining above.

Raúl Núñez de Arenas Coronado

-- 
Linux Registered User 88736 | http://www.dervishd.net
It's my PC and I'll cry if I want to... RAmen!


Using vim to as a pager for manual pages.

2006-12-28 Thread Zvi Har'El
Dear Vim Gurus,


I am using Linux in a UTF-8 locale, and I have a problem with using less
as a pager for manual pages: I cannot search for options, since they use
a dash instead of a minus sign, and I don't have an easy way to type the
hyphen (I have put some xterm definitions for various dashes in
.Xdefaults, using ctrl-minus, alt-minus, etc, but I always forget which
is which :'( ). I thought I could use vim's less.sh as a replacement for
less, but it has a problem with the vt100 escape sequences which are
used in the man page for emboldening and underlining. Is there a vim
macro file which can be used instead of less.vim, or in addition to it,
which can handle escape sequences, and not show the raw data?


Thanks,


Zvi.

-- 
Dr. Zvi Har'El  mailto:[EMAIL PROTECTED]Department of Mathematics
tel:+972-54-4227607 icq:179294841Technion - Israel Institute of Technology
fax:+972-4-8293388  http://www.math.technion.ac.il/~rl/Haifa 32000, ISRAEL
If you can't say somethin' nice, don't say nothin' at all. -- Thumper (1942)




Re: Using vim to as a pager for manual pages.

2006-12-28 Thread Gary Johnson
On 2006-12-28, Zvi Har'El [EMAIL PROTECTED] wrote:
 Dear Vim Gurus,
 
 
 I am using Linux in a UTF-8 locale, and I have a problem with using less
 as a pager for manual pages: I cannot search for options, since they use
 a dash instead of a minus sign, and I don't have an easy way to type the
 hyphen (I have put some xterm definitions for various dashes in
 .Xdefaults, using ctrl-minus, alt-minus, etc, but I always forget which
 is which :'( ). I thought I could use vim's less.sh as a replacement for
 less, but it has a problem with the vt100 escape sequences which are
 used in the man page for emboldening and underlining. Is there a vim
 macro file which can be used instead of less.vim, or in addition to it,
 which can handle escape sequences, and not show the raw data?

One solution would be to use 'col' in a pipeline ahead of less.sh, 
e.g.,

man vim | col -b | less.sh

You could incorporate the 'col' filter into your own copy of 
less.sh, or put a wrapper around 'man', or possibly define PAGER as 
a pipeline, but I'm not sure whether that works.

HTH,
Gary

-- 
Gary Johnson | Agilent Technologies
[EMAIL PROTECTED] | Wireless Division
 | Spokane, Washington, USA


Re: c-wc-s on *nix vim

2006-12-28 Thread panshizhu
C-S is used for terminal flow control in Unix.

So, try C-W s instead  of C-WC-S, i.e. release the ctrl after C-W
and press a single S.
--
Sincerely, Pan, Shi Zhu. ext: 2606


Manu Hack [EMAIL PROTECTED] 写于 2006-12-29 02:15:16:

 It works in Vim7 on WinXP but not on *nix (I tried solaris and linux).
  On *nix, it just stopped until I press c-q.  Why was it happened?
 Thanks.

Re: i_CTRL-Y on Windows

2006-12-28 Thread panshizhu

Try to see if you sourced mswin.vim somewhere. (it may be in your .vimrc,
or $VIMRUNTIME/vimrc_example.vim, or anywhere in the $VIM.) An easy way may
be: delete the mswin.vim file, restart vim and the script souceing that
file will report an error, then you'll know where you had sourced it.

If you runs vim on both Windows and *nix platform, it is highly recommended
that you remove the call of the mswin.vim. It might be helpful for those
who had never used VI before and knows only Windows platform. But for *nix
users, it create many incompatibilities.

Hope that helps.

--
Sincerely, Pan, Shi Zhu. ext: 2606


striker [EMAIL PROTECTED] 写于 2006-12-27 19:52:01:

 I frequently use i_CTRL-Y on my *nix box to insert the character
 above.  How can I make i_CTRL-Y work on Windows?
 i_CTRL-E does however work.

 TIA,
 Kevin