copy/pasting in search and colon commands

2011-03-10 Thread Vivek Bhat
Hi, I am trying to getting adept at VIM editing. There are few problems I am facing. I do not know how to copy from file and then paste it into search command or colon command. e.g. I have to search for word foo in the file. I want to be able to copy this word foo, invoke search mode by pressing

Re: copy/pasting in search and colon commands

2011-03-10 Thread Jürgen Krämer
Hi, Vivek Bhat wrote: Hi, I am trying to getting adept at VIM editing. There are few problems I am facing. I do not know how to copy from file and then paste it into search command or colon command. e.g. I have to search for word foo in the file. I want to be able to copy this word

Re: copy/pasting in search and colon commands

2011-03-10 Thread Christian Brabandt
On Thu, March 10, 2011 9:14 am, Vivek Bhat wrote: I am trying to getting adept at VIM editing. There are few problems I am facing. I do not know how to copy from file and then paste it into search command or colon command. e.g. I have to search for word foo in the file. I want to be able to

Re: shell commands in windows

2011-03-10 Thread Ivan Krasilnikov
On Wed, Mar 9, 2011 at 21:56, David Ohlemacher dohlemac...@scisol.com wrote: Hello all, I would like to write a script to take advantage of vim's windowing. I have maybe a dozen files that I need to monitor.   Is there a way to open vim or gvim, and then have it tail -f each file in separate

Re: copy/pasting in search and colon commands

2011-03-10 Thread Israel Chauca
On Thu, 10 Mar 2011 13:44 +0530, Vivek Bhat vivekbh...@gmail.com wrote: Hi, I am trying to getting adept at VIM editing. There are few problems I am facing. I do not know how to copy from file and then paste it into search command or colon command. e.g. I have to search for word foo in

how to add error word that colored by spellcheck plugin

2011-03-10 Thread chris M. sprite
how to add a red word that it is spell checked by Engspellcheck.vim like add the current word under the cursor into a file so that the spell check will not color this word any more . -- I try to detoxify my memory. Forget can not be treated as betray. It's not certainly a love even though you

Re: yank entire function when on functionname

2011-03-10 Thread Christian Brabandt
On Thu, March 10, 2011 10:35 am, Jeroen Budts wrote: I'm looking for the quickest method to yank an entire (php) function when the cursor is somewhere in the first line of the function definition like this (| = cursor): fun|ction foobar() { if (true) { return not false :); } }

yank entire function when on functionname

2011-03-10 Thread Jeroen Budts
Hi, I'm looking for the quickest method to yank an entire (php) function when the cursor is somewhere in the first line of the function definition like this (| = cursor): fun|ction foobar() { if (true) { return not false :); } } One possible solution would be: jvaBVy But I'm

Re: recall menu command / send keystroke in vimscript

2011-03-10 Thread rameo
On Mar 9, 11:07 pm, John Little john.b.lit...@gmail.com wrote: On Mar 9, 11:53 pm, rameo rai...@gmail.com wrote: Why does this one not work?     call feedkeys(\c-x\c-.a:type.) I wouldn't expect that to work because I'd expect the \c-? construct to be parsed when the double quoted string

Re: how to add error word that colored by spellcheck plugin

2011-03-10 Thread Christian Brabandt
On Thu, March 10, 2011 10:21 am, chris M. sprite wrote: how to add a red word that it is spell checked by Engspellcheck.vim like add the current word under the cursor into a file so that the spell check will not color this word any more . I don't know of what plugin you are talking, so I

Re: copy/pasting in search and colon commands

2011-03-10 Thread John Little
On Mar 10, 9:14 pm, Vivek Bhat vivekbh...@gmail.com wrote: e.g. I have to search for word foo in the file. ... Others have given you the direct answer to your question, but I suspect you really want the * key. See :help * Regards, John -- You received this message from the vim_use maillist.

Re: MozRepl + vim

2011-03-10 Thread Fernando Basso
OK. That looks fine. I even tried putting it in my .vimrc and it seems to work. I can't explain the error message. There's nowhere in that script that Refresh_firefox is attempted to be used like a command. My next-best guess is then that it has inappropriate line endings. IIRC, Unix line

Re: MozRepl + vim

2011-03-10 Thread Ben Schmidt
On 10/03/11 9:50 PM, Fernando Basso wrote: I was doing fSpace and I noticed that vim did not jump to one specific 'space' (of course, that was not a space). 'ga' then showed160, Hex 00a0, Octal 240 between 'gtpl' and ':call' in the first line of that code. The same thing between 'silent'

Re: Space sequence

2011-03-10 Thread Alessandro Antonello
What kind of file are you editing? Maybe it's something to do with syntax highlighting or a filetype plugin that is different between the machines? Does it happen with that stuff turned off? Hi, Ben. I work with several file types. I thought about a problem specific to JavaScript becouse this

Re: Space sequence

2011-03-10 Thread Alessandro Antonello
Maybe an input method for entering a trema (diaeresis or umaut)... Hi, John. How can I discover this? -- You received this message from the vim_use maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php

Re: shell commands in windows

2011-03-10 Thread Jan Larres
Hi, David Ohlemacher dohlemac...@scisol.com: I have maybe a dozen files that I need to monitor. Is there a way to open vim or gvim, and then have it tail -f each file in separate windows? I can do this manually from within gvim, but how does one script window creation and script the

Re: how to add error word that colored by spellcheck plugin

2011-03-10 Thread Charles Campbell
chris M. sprite wrote: how to add a red word that it is spell checked by Engspellcheck.vim like add the current word under the cursor into a file so that the spell check will not color this word any more . Hello: Hopefully the help for engspchk is installed; if so: :help engspchk-es .

HowTo delete all lines ending in a certain string?

2011-03-10 Thread Chris Hudson
Hi, I have a question. I have a very big directory/subdirectory listing that has been outputted to a file. I would like to delete all the dot ( . ) and dot-dot ( .. ) directories, so that I just have a listing of the real directories. So I want to delete all lines that look like this:

Re: HowTo delete all lines ending in a certain string?

2011-03-10 Thread Christian Brabandt
On Thu, March 10, 2011 3:17 pm, Chris Hudson wrote: Hi, I have a question. I have a very big directory/subdirectory listing that has been outputted to a file. I would like to delete all the dot ( . ) and dot-dot ( .. ) directories, so that I just have a listing of the real directories. So

Re: HowTo delete all lines ending in a certain string?

2011-03-10 Thread Horvath Adam
Hi Chris! Generally: :g/pattern/d Specific for you (delete all line ending with '.' char): :g/\.$/d Adam 2011/3/10 Chris Hudson chrishud...@gmail.com: Hi, I have a question.  I have a very big directory/subdirectory listing that has been outputted to a file. I would like to delete all

Re: HowTo delete all lines ending in a certain string?

2011-03-10 Thread Chris Hudson
Thanks for the replies, that did the trick. --Chris On Thu, Mar 10, 2011 at 9:20 AM, Christian Brabandt cbli...@256bit.orgwrote: On Thu, March 10, 2011 3:17 pm, Chris Hudson wrote: Hi, I have a question. I have a very big directory/subdirectory listing that has been outputted to a

Re: MozRepl + vim

2011-03-10 Thread Benjamin R. Haskell
On Thu, 10 Mar 2011, Ben Schmidt wrote: On 10/03/11 9:50 PM, Fernando Basso wrote: I was doing fSpace and I noticed that vim did not jump to one specific 'space' (of course, that was not a space). 'ga' then showed160, Hex 00a0, Octal 240 between 'gtpl' and ':call' in the first line of

Re: prevent Man from splitting window

2011-03-10 Thread Charles Campbell
peter wrote: When I used the Man function to read manual pages in gvim, it spits the current window. Instead I prefer the manual page to occupy the window I am in (and hide the buffer I was editing). How can I achieve this? Try ManPageView (:OMan topic): Manpageview is available at:

Vim errorformat for phpunit

2011-03-10 Thread Ben Godfrey
I'm working on a Vim compiler plugin for PHPUnit. I've written the following errorformat. The error message is correctly extracted, but file and line numbers are not. CompilerSet errorformat=%E%n)\ %.%#, \%C%m, \%+C%$,

Re: MozRepl + vim

2011-03-10 Thread Fernando Basso
On Mar 10, 1:38 pm, Benjamin R. Haskell v...@benizi.com wrote: On Thu, 10 Mar 2011, Ben Schmidt wrote: On 10/03/11 9:50 PM, Fernando Basso wrote: I was doing fSpace  and I noticed that vim did not jump to one specific 'space' (of course, that was not a space). 'ga' then showed    160,

Re: yank entire function when on functionname

2011-03-10 Thread Jeroen Budts
On 03/10/2011 10:57 AM, Christian Brabandt wrote: On Thu, March 10, 2011 10:35 am, Jeroen Budts wrote: I'm looking for the quickest method to yank an entire (php) function when the cursor is somewhere in the first line of the function definition like this (| = cursor): fun|ction foobar() {

Re: yank entire function when on functionname

2011-03-10 Thread Christian Brabandt
Hi Jeroen! On Do, 10 Mär 2011, Jeroen Budts wrote: On 03/10/2011 10:57 AM, Christian Brabandt wrote: On Thu, March 10, 2011 10:35 am, Jeroen Budts wrote: I'm looking for the quickest method to yank an entire (php) function when the cursor is somewhere in the first line of the function

RE: MozRepl + vim

2011-03-10 Thread John Beckett
Ben Schmidt wrote: It's annoying that it should get copied from Firefox at all, though. I wonder if that's a problem we can address on the Wiki, as it's going to cause a lot of users really confusing problems if when they copy+paste code it has a bunch of invisible things causing errors! I

Re: yank entire function when on functionname

2011-03-10 Thread Jeroen Budts
On 03/10/2011 09:23 PM, Christian Brabandt wrote: Hi Jeroen! On Do, 10 Mär 2011, Jeroen Budts wrote: On 03/10/2011 10:57 AM, Christian Brabandt wrote: On Thu, March 10, 2011 10:35 am, Jeroen Budts wrote: I'm looking for the quickest method to yank an entire (php) function when the cursor is

RE: HowTo delete all lines ending in a certain string?

2011-03-10 Thread Gene Kwiecinski
Hi, I have a question. I have a very big directory/subdirectory listing that has been outputted to a file. I would like to delete all the dot ( . ) and dot-dot ( .. ) directories, so that I just have a listing of the real directories. Ummm, use 'ls -A' instead of 'ls -a'? Just seems easier to

Re: yank entire function when on functionname

2011-03-10 Thread Michael(Xi Zhang)
On Thu, Mar 10, 2011 at 3:44 PM, Jeroen Budts jer...@lightyear.be wrote: On 03%2F10%2F201103/10/2011 09:23 PM, Christian Brabandt wrote: Hi Jeroen! On Do, 10 Mär 2011, Jeroen Budts wrote: On 03%2F10%2F201103/10/2011 10:57 AM, Christian Brabandt wrote: On Thu, March 10, 2011 10:35 am,

Re: HowTo delete all lines ending in a certain string?

2011-03-10 Thread Michael(Xi Zhang)
On Thu, Mar 10, 2011 at 3:49 PM, Gene Kwiecinski gkwiecin...@dclab.comwrote: Hi, I have a question. I have a very big directory/subdirectory listing that has been outputted to a file. I would like to delete all the dot ( . ) and dot-dot ( .. ) directories, so that I just have a listing of

Re: MozRepl + vim

2011-03-10 Thread Ben Schmidt
On 11/03/11 9:42 AM, John Beckett wrote: Ben Schmidt wrote: It's annoying that it should get copied from Firefox at all, though. I wonder if that's a problem we can address on the Wiki, as it's going to cause a lot of users really confusing problems if when they copy+paste code it has a bunch

Re: Space sequence

2011-03-10 Thread John Little
On Mar 11, 1:50 am, Alessandro Antonello antonello@gmail.com wrote: Maybe an input method for entering a trema (diaeresis or umaut)... How can I discover this? I think that depends on your OS and locale. If you're on Windows, Wikipedia says: Microsoft Windows allows users to set their

Re: yank entire function when on functionname

2011-03-10 Thread KF
On Mar 10, 5:35 pm, Jeroen Budts jer...@lightyear.be wrote: Hi, I'm looking for the quickest method to yank an entire (php) function when the cursor is somewhere in the first line of the function definition like this (| = cursor): fun|ction foobar() {    if (true) {      return not false

Re: yank entire function when on functionname

2011-03-10 Thread Jeroen Budts
On 03/11/2011 12:22 AM, Michael(Xi Zhang) wrote: On Thu, Mar 10, 2011 at 3:44 PM, Jeroen Budts jer...@lightyear.be mailto:jer...@lightyear.be wrote: On tel:03%2F10%2F201103/10/2011 tel:03%2F10%2F2011 09:23 PM, Christian Brabandt wrote: Hi Jeroen! On Do, 10 Mär 2011,