Re: :ts-like find command

2009-02-21 Thread Jeenu
Tofindfiles, you can use :ts filename.  But you need to pass thecommandline option --extra=+f  when you build your tags with exuberant ctags. That's informative; thanks Dominique. You can use the vimgrepcommand: for instance with :vimgrep /^\%1l/ file ... Thank you, Tony. :J

Where to put vimrc

2009-02-21 Thread Benct Philip Jonsson
Does vimrc have to be ~/.vimrc or can it be ~/.vim/vimrc too? I'm on Ubuntu, BTW. /BP --~--~-~--~~~---~--~~ You received this message from the vim_use maillist. For more information, visit http://www.vim.org/maillist.php

Re: Where to put vimrc

2009-02-21 Thread Tony Mechelynck
On 21/02/09 11:57, Benct Philip Jonsson wrote: Does vimrc have to be ~/.vimrc or can it be ~/.vim/vimrc too? I'm on Ubuntu, BTW. /BP Vim (when loaded without the -u command-line argument) will look in the following places for a user vimrc script on Linux (see :help .vimrc): 1)

Re: Where to put vimrc

2009-02-21 Thread Tony Mechelynck
On 21/02/09 13:03, kba wrote: On Sat, Feb 21, 2009 at 11:57:07AM +0100, Benct Philip Jonsson wrote: Does vimrc have to be ~/.vimrc or can it be ~/.vim/vimrc too? I'm on Ubuntu, BTW. It can be whereever you like it, as long as you symlink ~/.vimrc to the real file. In your case, executing

Re: alternating color scheme background

2009-02-21 Thread mathfeel
Thanks. I don't think this is a good solution because one would have to do the same for each filetype. On Feb 20, 2:34 am, Tony Mechelynck antoine.mechely...@gmail.com wrote: On 20/02/09 10:03, MZ wrote: Is it possible to set the color scheme such that the bg color for each line alternates

Making Vim as Default Editor for Unix's INFO

2009-02-21 Thread Gundala Viswanath
Is there a way to do it? Because now it is set to Emacs. I tried set path to EDITOR =/usr/bin/vim, however without any effect. - Gundala Viswanath Jakarta - Indonesia --~--~-~--~~~---~--~~ You received this message from the vim_use maillist. For more

How to split multiple CSS rules into one line each?

2009-02-21 Thread Leandro Camargo
I guess the title is pretty much self-explanatory. But I'll give an example of what I want. Assume I have this line: a.anything {color:#eee;display:block;width:300px;} So, I want to split this above line into this: a.anything { color:#eee; display:block; width:300px; } So, what is the

Re: vim file lock

2009-02-21 Thread Alexander Schrijver
On Sat, Feb 21, 2009 at 12:46:40PM -0600, _sc_ wrote: this won't protect your file from processes other than vim, but i recommend and use the editexisting.vim plugin I'm sorry, I think I wasn't very clear. What I would like is that vim uses the locking mechanism of the operating system, and

Vi editor for answering emails?

2009-02-21 Thread James Freer
Just in case anyone has wanted to use vim for editing emails.I had wanted to use a text editor to speed up answering emails and considered Mutt and Emacs. I had used Thunderbird for sometime and liked the app. A text email client seemed the answer but i wasn't that impressed by Mutt. However,

Re: vim file lock

2009-02-21 Thread Bram Moolenaar
Alexander Schrijver wrote: Vim doesn't seem to do file locking. What is the reason for this? It doesn't work on every system. Very few people ask for it, and when it has been added it will very likely cause new problems. The net win will be small. I also noticed this on the/a todo list

Re: CTags + Taglist under Windows for PHP

2009-02-21 Thread Anton Sharonov
boushley wrote: I downloaded ctags for windows, and tried the binary that they provide precompiled... but no luck... it doesn't have php support built in, if I run ctags --list-languages it doesn't have PHP in there. Method 1 After downloading the

Re: How to split multiple CSS rules into one line each?

2009-02-21 Thread Leandro Camargo
Speaking of VIM patterns, it seems vim doesn't support conditional expression patterns, only in perl. Anyone has any tip/workaround for that fro vim regexp? Thnaks! On Sat, Feb 21, 2009 at 7:42 PM, Leandro Camargo leandro...@gmail.com wrote: Wow, thanks Tim! It works fine, except by the case

Vim Tips Wiki - Remove author?

2009-02-21 Thread John Beckett
Each tip on the wiki has a header. We've pruned some of the information that was originally imported from vim.org, and now we're wondering whether to also remove the author field. The wiki way of dealing with authorship is to use History, which records the edit summary, user name, and changes

Re: Using GVim instead of Vim on Windows

2009-02-21 Thread John Little
On Feb 21, 12:02 am, Tony Mechelynck antoine.mechely...@gmail.com wrote: So the criminal offence, if any (which remains to be seen), might be _teaching_ COBOL or _requiring_ its use, but not _using_ it. Normal coding is not use in isolation, one is always in communication with whoever gets

Re: Using GVim instead of Vim on Windows

2009-02-21 Thread _sc_
On Saturday 21 February 2009 6:31 pm, John Little wrote: On Feb 21, 12:02 am, Tony Mechelynck antoine.mechely...@gmail.com wrote: So the criminal offence, if any (which remains to be seen), might be _teaching_ COBOL or _requiring_ its use, but not _using_ it. Normal coding is not use

Re: in gVim, can the cursor be fixed and no moving?

2009-02-21 Thread Charles E. Campbell, Jr.
eliweiqiang wrote: Sometimes I will use the mouse to control page scroll, but the cursor will scroll with the page, then I can not find its original location. So, how can I fix the cursor? like other editors, their cursors won't move while scrolling. One interpretation: you want the