Perl Tags

2006-05-09 Thread Vigil
Is there a way to have vim work with tags of the format package::sub(arg)? I have tried normal ctags, and pltags, but they don't work with this. When I ctrl-] on sub, I'd like to be taken to the definition of package's sub. I recall it identifying definitions of the form class-method(arg). Even

Re: perlcomplete.vim -- anyone working on this?

2006-05-28 Thread Vigil
I would just like ctags to work with perl :-/ On Fri, 12 May 2006, �� � wrote: I for one would appreciate a perlcomplete.vim script. -- .

Tag List Dropdown

2006-05-28 Thread Vigil
I am surprised that when there are multiple matches for a tag, a dropdown doesn't appear as it does for omni-completion - or does it? Do I need to enable something that I missed in :help version7? -- .

Re: Tag List Dropdown

2006-05-28 Thread Vigil
On Sun, 28 May 2006, A.J.Mechelynck wrote: As said in a post a few minutes ago, Ctrl-w g ] opens a list from which you may select. Or else, :tnext, :tprev, :tfirst, :tlast will let you see the matches one by one. I know of this; I was wondering if it could look like the completion dropdown.

Has Plug Changed?

2006-05-30 Thread Vigil
I try to use cvscommit.vim with NERD_comments, but they both use some \c mappings. The blurb in cvscommit.vim says I can use something like nnoremap ,ca PlugCVSAdd instead. I put all the cvscommit mappings in my ~/.vimrc, formatted in this new way, but it does not seem to recognise any of the

Re: Quick Word Yank/Replace

2006-06-20 Thread Vigil
On Mon, 19 Jun 2006, Tim Chase wrote: If you just need to do it once, you can use vwp or viwp Ah, I knew it was going to be simple, but the help for various forms of 'p' didn't say it would do it like that. Thanks. -- .

Re: insert space after comma based on context

2006-07-03 Thread Vigil
You can also ctrl-v, which will prevent the , map. On Thu, 29 Jun 2006, Zhang Le wrote: Hi, Most of time I want a space after a comma, so I use imap , , The problem is, sometime I do not want a comma inside square brackets in some programming language such python and matlab: a[10,:] or

Re: Backups

2006-07-03 Thread Vigil
Because savevers (script #89) no longer works properly with vim 7 savevers perfectly works for me in vim7, just as it did for vim6 Weird. Tell me, do your settings differ greatly from mine?: savevers set backup set patchmode=.prev let savevers_dirs=~/backups/vim exe set backupskip+=* .

Re: Backups

2006-07-03 Thread Vigil
Can it be that my version of savevers, being not the latest savevers, works better than the later versions of savevers ? Weird. I guess when I pulled my latest copy (we both are using 0.8), it was corrupt or something, because yours works. Thanks. -- .

Re: Script to surround text with ()

2006-07-11 Thread Vigil
One thing about this script is that it chucks the cursor to the end of the word. I wonder if there is a temporary mark we could use to save and restore the cursor position, or some other way that doesn't move it? -- .

Re: perlcomplete.vim -- anyone working on this?

2006-07-11 Thread Vigil
This is perfect - thank you! One issue, though (although I suspect this is more to do with vim): it did not recognise a (locally defined) sub whose filename contained an underscore. On Mon, 10 Jul 2006, Hakim Cassimally wrote: On 28/05/06, Vigil [EMAIL PROTECTED] wrote: I would just like

Re: perlcomplete.vim -- anyone working on this?

2006-07-16 Thread Vigil
I put 'set iskeyword+=_' (I've tried numerous quoting around the underscore) but ':set iskeyword?' keeps saying iskeyword=a-z,A-Z,48-57,:,/,.. I just can't get the underscore into iskeyword. What's the command to see where a setting was last defined? On Wed, 12 Jul 2006, Hakim Cassimally

Re: perlcomplete.vim -- anyone working on this?

2006-07-16 Thread Vigil
Oh. Grr, I hate it when plugins go changing the absolute value of your settings. I had a perl_doc.vim ftplugin that was setlocal iskeyword=a-z,A-Z,48-57,:,/,.ing, which must have been being sourced after perl.vim. Thanks, Peter. On Mon, 17 Jul 2006, Peter Hodge wrote: I do believe that if

Website Sign-up

2006-07-16 Thread Vigil
I hate sites that have the ability to log in but don't tell you why, so: why should I register on vim.org? -- .

Re: Website Sign-up

2006-07-17 Thread Vigil
Aha, upload scripts and vote. Should not need to search around for reasons to sign up. If someone wants people to sign up to their web site, they should tell them why on the register/info/about page(s), IMHO. Ta :) On Mon, 17 Jul 2006, A.J.Mechelynck wrote: - getting an account at vim-online

Re: Website Sign-up

2006-07-19 Thread Vigil
this kind of question just slurp up and devour the information but do not have the class, upbringing or respect to even bother to register or log in. On 17 Jul 2006, at 01:25, Vigil wrote: I hate sites that have the ability to log in but don't tell you why, so: why should I register on vim.org? -- . -- .

Re: Ctl key mapping problems

2006-08-01 Thread Vigil
I'm trying to remap some keys from my vimrc file but am having problems. What I want to do is the following: have vim print the character '\' when I press 'Ctl-e'. imap c-e \ nmap c-e \ cmap c-e \ These all work for me. -- .

Auto-indent Comments

2006-09-17 Thread Vigil
For at least filetypes html, sh, and perl, whenever I start a line with '#', it moves it to the very beginning of the line, ignoring any indent. It doesn't do this with filetype=c. I don't know where this is set. I looked in cpoptions and even removed all my /plugin/'s, but couldn't find it.

Re: Auto-indent Comments

2006-09-19 Thread Vigil
For at least filetypes html, sh, and perl, whenever I start a line with '#', it moves it to the very beginning of the line, ignoring any indent. It doesn't do this with filetype=c. Maybe the 'indentexpr' does it for those filetypes. Try :filetype indent off in your vimrc. indentexpr isn't

Re: Auto-indent Comments

2006-09-19 Thread Vigil
For at least filetypes html, sh, and perl, whenever I start a line with '#', it moves it to the very beginning of the line, ignoring any indent. It doesn't do this with filetype=c. Try to unset 'smartindent'. At least I had to do this for Lisp indenting :) Unsetting smartindent didn't affect

Re: php online help in windowsXP

2006-10-04 Thread Vigil
You should be able to do the same type of thing with firefox, eg firefox_doc.bat: c:\mozilla\firefox.exe $1 Maybe you can even get links for MSWin. On Tue, 3 Oct 2006, Vu The Cuong wrote: So I have set keywordprg=/home/marcel/php_doc and php_doc looks like: ### #!/usr/bin/bash links

diffoff

2006-10-10 Thread Vigil
The :diffoff command resets the relevant options to their default value. This may be different from what the values were before diff mode was started, the old values are not remembered. Is it on the to-do list to make diffoff restore from previous values rather than default ones, or is there

Re: diffoff

2006-10-13 Thread Vigil
Is it on the to-do list to make diffoff restore from previous values rather than default ones, or is there already an option somewhere that toggles the behaviour? AFAIK you have to save the options before starting diff mode and restore them later. At least, that is the answer to the

Re: problem compiling vim70.

2006-10-16 Thread Vigil
A friend had this problem on Ubuntu. I think it turned out that his LD_LIBRARY_PATH or equivalent wasn't pointing to the ncurses library for some reason. On Mon, 16 Oct 2006, Ajay Gupta wrote: no terminal library found checking for tgetent()... configure: error: NOT FOUND! You need to

Re: Cannot compile vim 7.0

2006-10-17 Thread Vigil
Perhaps X is not fully installed. On Mon, 16 Oct 2006, Anne Wall wrote: /usr/include/Xm/Xm.h:42:34: X11/extensions/Print.h: No such file or directory -- .

Re: Binary files, noeol, and other such things.

2006-10-26 Thread Vigil
On Tue, 24 Oct 2006, Aaron wrote: [61 lines snipped] Sorry for the long lines and top-posting in my earlier correspondence! I prefer that to the crime that you just commited with THAT post! -- .

Re: Binary files, noeol, and other such things.

2006-10-26 Thread Vigil
On Tue, 24 Oct 2006, Aaron wrote: Then it's no surprise that Windows text editors follow the theoretical and probably broken approach, while the Unix ones do things the way they've always been done. It's not just MSWin editors - ZDE, Eclipse, and Scite are all broken in this way (although

Re: set -o vi

2006-10-30 Thread Vigil
No. Readline doesn't read anything from vi config files. I don't even think you need vi installed. The nearest you'll get is using readline. See 'man 3 readline'. On Mon, 30 Oct 2006, Vim Visual wrote: sets the cursor to vi mode... but vi indeed... Is there a way to set the cursor to vim,

Re: multiples search and replace in the same command?

2006-12-01 Thread Vigil
This could be construed as one command: %s/e/EEE/g | %s/a/AAA/g On Thu, 30 Nov 2006, Tanoor Dieng wrote: Hi, i'm trying to replace all occurrences of characaters like é, è, ê etc ... by their corresponding htmlentities. To do that, i use the following command: %s/é/\eacute;/g The problem

Re: multiples search and replace in the same command? (fwd)

2006-12-01 Thread Vigil
-- Forwarded message -- Date: Fri, 1 Dec 2006 11:05:48 +0100 From: Tanoor Dieng [EMAIL PROTECTED] To: Vigil [EMAIL PROTECTED] Subject: Re: multiples search and replace in the same command? On 12/1/06, Vigil [EMAIL PROTECTED] wrote: This could be construed as one command: %s/e

Inverse Folding?

2006-12-01 Thread Vigil
Because I often want to concentrate on a small section of code in a large script, and because my terminal window is large, I wondered if it was possible to select some text and have all other text, ie. the surrounding text, fade out in colour, or use a darker colour or something, so that when I

Re: Inverse Folding?

2006-12-03 Thread Vigil
On Fri, 1 Dec 2006, Tim Chase wrote: A similar stunt could be done to clear all folding, and then fold the two ranges 1,'- and '+,$ something like this untested vnoremap h :c-u1,'lt-foldbar'+,$foldcr That, combined with foldmethod=manual, is perfect. Thanks, Tim and Charles. -- .

Re: Inverse Folding?

2006-12-03 Thread Vigil
On Sun, 3 Dec 2006, Vigil wrote: vnoremap h :c-u1,'lt-foldbar'+,$foldcr That, combined with foldmethod=manual, is perfect. Thanks, Tim and Charles. Sooo... vnoremap h set foldmethod=manual | :c-u1,'lt-foldbar'+,$foldcr doesn't work :) -- .

Re: Inverse Folding?

2006-12-03 Thread Vigil
On Sun, 3 Dec 2006, Tim Chase wrote: vnoremap h :c-uset foldmethod=manualbar 1,'lt-foldbar'+,$foldcr What is the c-u for? I don't see any :help for it and ctrl-u just goes up a page normally, and clears the line to the left of the cursor in command mode. -- .

Re: Overflow when striking Ctrl-a on a large number

2006-12-03 Thread Vigil
On Mon, 4 Dec 2006, Edward L. Fox wrote: I'm not sure it is worth adding code for big numbers, they are hardly ever used. Vim also doesn't support floating point. One has to stop somewhere. After all this is a text editor, not a spreadsheet. Or you could process the text as a string

Re: Inverse Folding?

2006-12-03 Thread Vigil
When in visual mode, when you press the colon, Vim prepopulates the command-line with ','. The ^U clears the line of that text. Aha, thanks. -- .

Linewise-only vnoremap

2006-12-07 Thread Vigil
vnoremap doesn't appear to care whether the text was selected blockwise or linewise. How can I make a map work in linewise mode only? -- .

Re: Vim Online Error ?

2006-12-07 Thread Vigil
Yeah, it says there are no scripts there :-o On Thu, 7 Dec 2006, Swaroop C H wrote: Hello all, When I visit the link http://www.vim.org/scripts/script.php?script_id=273 , I see the following error : script:Can't open file: 'vs_scripts.MYI' (errno: 145) , is anybody else facing the same

make

2006-12-07 Thread Vigil
If I run :make on a file, and there is an error in an included file elsewhere (but that file isn't open in vim currently), then the file with the error in it will be opened in a buffer. Is there a way to make it open in a tab instead? -- .

Re: Linewise-only vnoremap

2006-12-11 Thread Vigil
On Thu, 7 Dec 2006, Jürgen Krämer wrote: you can use the visualmode() function and wrap your actual mapping with an if-statement: :vnoremap F2 :c-uif visualmode() == 'V' bar echo 'linewise' bar endif cr Hm, this seems to be echoing the command, therefore interrupting me, whenever it is

Re: em-brace-ing shell variables

2006-12-11 Thread Vigil
. So I would like to write a short vim script which inserts the {} around the name of the variable. It should work, when the cursor is somewhere over the name of the variable. You might be interested in the surround.vim script. There is inconveniently no URL in the script that I can point you

Re: :sort by date

2007-01-08 Thread Vigil
I have a text file in the format: 01/04/2007,field1,field2,field3 01/03/2007,field1,field2,field3 12/30/2006,field1,field2,field3 etc... I need to sort by date, but the new dates in 2007 are placed first in the sort algorithm. How can I sort by the entire date in the format above? This works

Re: :sort by date

2007-01-09 Thread Vigil
This works on my admittedly small test set: :%!sort -k3 -t/ You're making several unstated assumptions. (1) The records are already sorted by month and day. I would have thought that, too, but sorting this: 01/04/2007 blah 01/03/2007 blah 12/30/2006 blah 07/05/2003 blah 02/04/2007

Re: Returning perl hashes

2007-01-23 Thread Vigil
Is it possible to return a Perl hash as a Vim List or Dictionary? I am pretty new to Perl but need it's features for my extension. I need to return rows and columns of data which is perfect for a Vim List or Dictionary. I don't know what format that is but if Data::Dumper doesn't help (I don't

Re: Vim presentation in Mountain View

2007-02-06 Thread Vigil
Hopefully this will be available on google videos. -- .

:wq vs ZZ

2007-02-13 Thread Vigil
I wonder why some people use :wq instead of ZZ. Maybe they just don't know about ZZ? Obviously that's not the case with Bram. On Tue, 13 Feb 2007, Bram Moolenaar wrote: :wq -- .

Re: input gets repeated when having a break in input mode

2007-03-19 Thread Vigil
I think you have mischievous colleagues. On Fri, 9 Mar 2007, petern wrote: Hi dear vim lovers. When I type some text in input mode and for example go to make a coffee without leaving the input mode, and then get back to my computer, vim has exited input mode. That's OK. But what confuses me

Undo Levels Reset

2007-03-23 Thread Vigil
When a file is saved with :w, any changes in the undo history are lost and I can't undo things to get back to a state before I saved the file. How can I prevent the history being lost? -- .

Re: Undo Levels Reset

2007-03-23 Thread Vigil
Hmm. My bad, I guess. I must have had some weird settings at the time. Sorry, list! A.J.Mechelynck wrote: When I save a file, undo levels are kept. Using u then undoes, but marks the file as modified. Using Ctrl-R redoes, and the 'modified' flag will disappear when the file-in-memory is

Error In Documentation?

2007-03-23 Thread Vigil
In vim's: VIM - Vi IMproved 7.0 (2006 May 7, compiled May 30 2006 13:06:19) VIM - Vi IMproved 6.4 (2005 Oct 15, compiled May 23 2006 12:03:57) in :help makeprg, I think the {$*} in the example ought to be ${*}. At least, it wouldn't work for me unless I did that. -- .

Re: Error In Documentation?

2007-03-24 Thread Vigil
On Fri, 23 Mar 2007, Bram Moolenaar wrote: in :help makeprg, I think the {$*} in the example ought to be ${*}. At least, it wouldn't work for me unless I did that. No, it's really $*. This is replaced by Vim before passing the command to the shell. $* and {$*} won't work in my ftplugin.

Re: Error In Documentation?

2007-03-25 Thread Vigil
On Sun, 25 Mar 2007, Bram Moolenaar wrote: You apparently really want to pass ${*} to the shell command. The help for makeprg explains replacing $* with the name of the file, but you use % for that. My help says that $* is replaced with the arguments, which I take to mean -T in my example:

Re: Error In Documentation?

2007-03-25 Thread Vigil
On Sun, 25 Mar 2007, A.J.Mechelynck wrote: When used after an ex-command which expects a file name, % means the filename of the current buffer, and # means the filename of the alternate buffer. See :help edit-intro :help cmdline-special Thanks - I didn't think of it being

Re: two questions

2007-03-31 Thread Vigil
1. I have been trying to figure out a command that would let me place parenthesis (()) around a word, line paragraph or whatever. I.e. http://www.vim.org/scripts/script.php?script_id=1697 2. I often times like to line up certain characters to match characters on the line above or below. I.e:

Re: Fwd: Perl colour coding bug

2007-04-17 Thread Vigil
On Tue, 10 Apr 2007, Jon Combe wrote: The following snippet of code, when saved with a .pl file extension breaks the colour coding in Vim @split = split ( / |-|\/|\/ , $surname , -1 ); This sometimes annoys me, too. To work around it, use the 'm' operator specifically, thus: @split =