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
I would just like ctags to work with perl :-/
On Fri, 12 May 2006, �� � wrote:
I for one would appreciate a perlcomplete.vim script.
--
.
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?
--
.
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.
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
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.
--
.
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
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+=* .
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.
--
.
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?
--
.
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
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
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
I hate sites that have the ability to log in but don't tell you why, so: why
should I register on vim.org?
--
.
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
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?
--
.
--
.
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.
--
.
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.
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
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
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
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
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
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
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
--
.
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!
--
.
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
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,
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
-- 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
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
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.
--
.
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 :)
--
.
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.
--
.
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
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.
--
.
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?
--
.
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
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?
--
.
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
. 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
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
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
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
Hopefully this will be available on google videos.
--
.
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
--
.
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
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?
--
.
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
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.
--
.
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.
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:
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
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:
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 =
55 matches
Mail list logo