Re: How to go a file at a specific line number using the output from grep?

2009-11-17 Thread Gary Johnson
On 2009-11-17, Peng Yu wrote: > $ grep -H -n if /etc/profile>/tmp/grep_output.txt > $ cat /tmp/grep_output.txt > /etc/profile:4:if [ -d /etc/profile.d ]; then > /etc/profile:6:if [ -r $i ]; then > /etc/profile:13:if [ "$PS1" ]; then > /etc/profile:14: if [ "$BASH" ]; then > /etc/profile:16:

Re: Kind of "filler"-function available?

2009-11-17 Thread Benoit Mortgat
On Wed, Nov 18, 2009 at 04:53, wrote: > > > Is there a mechanism available, which fills automagically the missing > > > space with " " when doing a cf or cw with a shorter word as the > > > replacement or (other situation) "eats up" space, when replaceing is > > > done with a longer word as in >

Re: How to go a file at a specific line number using the output from grep?

2009-11-17 Thread bill lam
On Tue, 17 Nov 2009, Peng Yu wrote: > > > > John Beckett wrote: > > Peng Yu wrote: > > > $ grep -H -n if /etc/profile>/tmp/grep_output.txt $ cat > > > /tmp/grep_output.txt /etc/profile:4:if [ -d /etc/profile.d ]; then > > > /etc/profile:6:if [ -r $i ]; then > > > /etc/profile:13:if [ "$PS1"

Re: How to go a file at a specific line number using the output from grep?

2009-11-17 Thread Peng Yu
John Beckett wrote: > Peng Yu wrote: > > $ grep -H -n if /etc/profile>/tmp/grep_output.txt $ cat > > /tmp/grep_output.txt /etc/profile:4:if [ -d /etc/profile.d ]; then > > /etc/profile:6:if [ -r $i ]; then > > /etc/profile:13:if [ "$PS1" ]; then > > /etc/profile:14: if [ "$BASH" ]; then > >

RE: How to go a file at a specific line number using the output from grep?

2009-11-17 Thread John Beckett
Peng Yu wrote: > $ grep -H -n if /etc/profile>/tmp/grep_output.txt $ cat > /tmp/grep_output.txt /etc/profile:4:if [ -d /etc/profile.d ]; then > /etc/profile:6:if [ -r $i ]; then > /etc/profile:13:if [ "$PS1" ]; then > /etc/profile:14: if [ "$BASH" ]; then > /etc/profile:16:if [ -f /etc/ba

RE: replace from backward?

2009-11-17 Thread John Beckett
Peng Yu wrote: > :%s/a/b > > The above command replace the first appearance of 'a' to 'b' > in all lines. I'm wondering how to replace the last 'a' instead? %s/.*\zsa/b/ John --~--~-~--~~~---~--~~ You received this message from the "vim_use" maillist. For more i

How to go a file at a specific line number using the output from grep?

2009-11-17 Thread Peng Yu
$ grep -H -n if /etc/profile>/tmp/grep_output.txt $ cat /tmp/grep_output.txt /etc/profile:4:if [ -d /etc/profile.d ]; then /etc/profile:6:if [ -r $i ]; then /etc/profile:13:if [ "$PS1" ]; then /etc/profile:14: if [ "$BASH" ]; then /etc/profile:16:if [ -f /etc/bash.bashrc ]; then /etc/prof

Re: Kind of "filler"-function available?

2009-11-17 Thread meino . cramer
Gary Johnson [09-11-18 01:52]: > > On 2009-11-18, meino.cra...@gmx.de wrote: > > Hi, > > > > while editing C/C++-source I often came into the following situation: > > > > This is the "original" code > > > > a_pulses = times * proportional_x ; > > b_pulses = times * proportiona

replace from backward?

2009-11-17 Thread Peng Yu
:%s/a/b The above command replace the first appearance of 'a' to 'b' in all lines. I'm wondering how to replace the last 'a' instead? --~--~-~--~~~---~--~~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillis

Re: Kind of "filler"-function available?

2009-11-17 Thread Gary Johnson
On 2009-11-18, meino.cra...@gmx.de wrote: > Hi, > > while editing C/C++-source I often came into the following situation: > > This is the "original" code > > a_pulses = times * proportional_x ; > b_pulses = times * proportional_y ; > c_pulses = times * proportional_z

Kind of "filler"-function available?

2009-11-17 Thread meino . cramer
Hi, while editing C/C++-source I often came into the following situation: This is the "original" code a_pulses = times * proportional_x ; b_pulses = times * proportional_y ; c_pulses = times * proportional_z ; ...then I see, that the last line must be correc

Re: gvim sigfaults randomly on Ubuntu 9.04 64bit linux

2009-11-17 Thread Matt Wozniski
2009/11/17 Dominique Pellé : > > Mahmoud Abdelkader  wrote: >> >> Sometimes, in the middle of a gVim session with multiple tabs open as >> well as various splits in those tabs, my gVim will just segfaut with >> the stack trace below (http://paste.pocoo.org/show/151270/) >> >> Error message (full e

Re: Caught deadly signal SEGV

2009-11-17 Thread Andy Wokula
Dennis Benzinger schrieb: > Hello, > > my Vim 7.2.293 reproducibly crashes while editing the attached XML file > crash.xml. You probably need the attached .vimrc-crash to reproduce it: > 1. Start vim -u .vimrc-crash crash.xml > 2. 98gg (Start of comment) > 3. o (Open line below) > 4. Press Esc

Re: gvim sigfaults randomly on Ubuntu 9.04 64bit linux

2009-11-17 Thread Mahmoud Abdelkader
Thanks very much, I will try this and let you all know how it goes. Hopefully one of these issues have been fixed:) On Tue, Nov 17, 2009 at 1:05 PM, Tony Mechelynck wrote: > On 17/11/09 21:11, Mahmoud Abdelkader wrote: >> >> Sometimes, in the middle of a gVim session with multiple tabs open as >

Move Some duplicate begins lines.

2009-11-17 Thread epanda
HI, I have this content : Each begin of lines is the same. Only nerty attribute is different. I wanna have this content : How can I do this tranformation ? Thanks --~--~-~--~~~---~--~~ You received this message from the "vim_use" maillist. For mo

Re: gvim sigfaults randomly on Ubuntu 9.04 64bit linux

2009-11-17 Thread Tony Mechelynck
On 17/11/09 21:11, Mahmoud Abdelkader wrote: > > Sometimes, in the middle of a gVim session with multiple tabs open as > well as various splits in those tabs, my gVim will just segfaut with > the stack trace below (http://paste.pocoo.org/show/151270/) > > Error message (full error message here: ht

Re: Caught deadly signal SEGV

2009-11-17 Thread Dennis Benzinger
Forgot to mention the OS and Vim version. I get this error on several Ubuntu Versions (e.g. 9.10 64bit) with the following Vim version: VIM - Vi IMproved 7.2 (2008 Aug 9, compiled Nov 17 2009 21:05:16) Inklusive der Korrekturen: 1-293 Übersetzt von dennis.benzin...@gmx.net Riesige Version mit GT

Re: gvim sigfaults randomly on Ubuntu 9.04 64bit linux

2009-11-17 Thread Dominique Pellé
Mahmoud Abdelkader wrote: > > Sometimes, in the middle of a gVim session with multiple tabs open as > well as various splits in those tabs, my gVim will just segfaut with > the stack trace below (http://paste.pocoo.org/show/151270/) > > Error message (full error message here: http://paste.pocoo.o

Re: How to Build Last vers of cscope 15.7.a on Win

2009-11-17 Thread epanda
Thanks a lot. Fine :) On 17 nov, 10:27, Michael Wookey wrote: > 2009/11/17 epanda : > > > Where can I find the download link of cscope or with what soft can I > > build sources of cscope out of DJGPP. > > You can find pre-compiled binaries here: > > http://code.google.com/p/cscope-win32 --~--~--

Caught deadly signal SEGV

2009-11-17 Thread Dennis Benzinger
Hello, my Vim 7.2.293 reproducibly crashes while editing the attached XML file crash.xml. You probably need the attached .vimrc-crash to reproduce it: 1. Start vim -u .vimrc-crash crash.xml 2. 98gg (Start of comment) 3. o (Open line below) 4. Press Esc 5. Move Cursor to end of comment line (init

gvim sigfaults randomly on Ubuntu 9.04 64bit linux

2009-11-17 Thread Mahmoud Abdelkader
Sometimes, in the middle of a gVim session with multiple tabs open as well as various splits in those tabs, my gVim will just segfaut with the stack trace below (http://paste.pocoo.org/show/151270/) Error message (full error message here: http://paste.pocoo.org/show/151270/) glibc detected *** g

Re: Waht is the replacemente for "word under cursor"

2009-11-17 Thread Matt Wozniski
On Tue, Nov 17, 2009 at 2:51 PM, Christian Brabandt wrote: > > Hi Matt! Hi! > On Di, 17 Nov 2009, Matt Wozniski wrote: > >> I'm surprised no one has suggested: >> >> :nnoremap >> >> Maybe I'm missing some subtlety that makes that incorrect? > > I simply don't know this, since I don't use neith

Re: Waht is the replacemente for "word under cursor"

2009-11-17 Thread Christian Brabandt
Hi Matt! On Di, 17 Nov 2009, Matt Wozniski wrote: > I'm surprised no one has suggested: > > :nnoremap > > Maybe I'm missing some subtlety that makes that incorrect? I simply don't know this, since I don't use neither :tag nor :ptag I usually do not use vim for programming and simply suggest

Re: Highlighting of spell "corrected" words

2009-11-17 Thread Christian Brabandt
Hi Matt! On Di, 17 Nov 2009, Matt Wozniski wrote: > I don't think that this should be hard to do using matchadd() and > friends. If you include the map that you're currently using, someone > might be able to suggest how to get it to highlight the newly > corrected word. Oh yes, that is true.

Re: Waht is the replacemente for "word under cursor"

2009-11-17 Thread Matt Wozniski
On Tue, Nov 17, 2009 at 11:01 AM, Christian Brabandt wrote: > > On Tue, November 17, 2009 4:16 pm, Robbo wrote: >> >> I've just looked for :h cword >> but if i write >> :map :ptag >> >> it doesn't work. > > Try if this works: > :map :exe ":ptag " . expand("") I'm surprised no one has suggested

Re: Highlighting of spell "corrected" words

2009-11-17 Thread Matt Wozniski
On Tue, Nov 17, 2009 at 9:06 AM, Christian Brabandt wrote: > > On Tue, November 17, 2009 12:33 pm, Eric Smith wrote: >> >> The new spelling system for vim is great and I use a macro to >> automatically "correct" misspelt words.  When I am really sloppy >> this automatic "correction" (to the first

Re: Empty $PATH shell command problem

2009-11-17 Thread bgold12
I got the executable from http://www.vim.org/download.php, the PC: MS- DOS and MS-Windows Self-installing executable. Here's the ":version" output from my console vim: :version VIM - Vi IMproved 7.2 (2008 Aug 9, compiled Aug 9 2008 18:40:30) MS-Windows 32-bit console version Compiled by b...@k

Re: Highlighting many items

2009-11-17 Thread Charles Campbell
Yogi wrote: > Thanks Jürgen, Christian, and Tim. This works like a breeze now. > vim_use list is awesome. :-) > > Regards, > Yogi > > On Nov 17, 11:02 am, Tim Chase wrote: > >>> but it does not seem to work. Apparently, "match" can be used to match >>> [*only one*] group. So, in the above exam

Re: Highlighting many items

2009-11-17 Thread Brett Stahlman
On Nov 17, 9:41 am, Yogi wrote: > Hi there, > > I want to be able to highlight bold, italics, and underlined words in > a text file. My solution was to use > > hi QuickBold gui=bold > hi QuickItalic gui=italic > hi QuickUnderline gui=underline > > match QuickBold '\[\*\zs.\{-}\ze\*\]' > match Q

Re: customize my initial window size

2009-11-17 Thread Gary Johnson
On 2009-11-17, Frank Shute wrote: > On Fri, Nov 13, 2009 at 08:24:07PM -0800, Jason wrote: > > > > > > I would like to set the initial window size and position of Gvim in > > Ubuntu. In my .vimrc file, I have: > > if has("gui_running") > > " GUI is running or is about to start. > > " Maximize

Re: Highlighting many items

2009-11-17 Thread Tim Chase
> but it does not seem to work. Apparently, "match" can be used to match > [*only one*] group. So, in the above example, underlining works (since > it appears last), but bold and italics don't. For a small set of them, there are :match :2match :3match For more than 3 flavors, you can u

Re: Waht is the replacemente for "word under cursor"

2009-11-17 Thread Christian Brabandt
On Tue, November 17, 2009 4:16 pm, Robbo wrote: > > I've just looked for :h cword > but if i write > :map :ptag > > it doesn't work. Try if this works: :map :exe ":ptag " . expand("") regards, Christian -- :wq --~--~-~--~~~---~--~~ You received this message

Re: Waht is the replacemente for "word under cursor"

2009-11-17 Thread Gary Johnson
On 2009-11-17, Robbo wrote: > I've just looked for :h cword > but if i write > :map :ptag > > it doesn't work. A couple of options: :map :exe "ptag" expand("") :map :ptag You may want to add to the end of each of those mappings to cause the ptag command to be executed. See

Re: Highlighting many items

2009-11-17 Thread Christian Brabandt
On Tue, November 17, 2009 4:41 pm, Yogi wrote: > I want to be able to highlight bold, italics, and underlined words in > a text file. My solution was to use > > hi QuickBold gui=bold > hi QuickItalic gui=italic > hi QuickUnderline gui=underline > > match QuickBold '\[\*\zs.\{-}\ze\*\]' > match Qui

Re: Waht is the replacemente for "word under cursor"

2009-11-17 Thread Charles Campbell
Robbo wrote: > also > > :command Ptag :ptag > > doesn't work > > On 17 Nov, 16:16, Robbo wrote: > >> I've just looked for :h cword >> but if i write >> :map :ptag >> >> it doesn't work. >> >> Thank you. >> Please bottom post on this list. Quote a small (relevant) part of the message y

Highlighting many items

2009-11-17 Thread Yogi
Hi there, I want to be able to highlight bold, italics, and underlined words in a text file. My solution was to use hi QuickBold gui=bold hi QuickItalic gui=italic hi QuickUnderline gui=underline match QuickBold '\[\*\zs.\{-}\ze\*\]' match QuickItalic '\[\/\zs.\{-}\ze\/\]' match QuickUnderline

Re: Waht is the replacemente for "word under cursor"

2009-11-17 Thread Robbo
also :command Ptag :ptag doesn't work On 17 Nov, 16:16, Robbo wrote: > I've just looked for :h cword > but if i write > :map :ptag > > it doesn't work. > > Thank you. > > On 17 Nov, 11:15, "Christian Brabandt" wrote: > > > On Tue, November 17, 2009 11:02 am, Robbo wrote: > > > in a mapping

Re: Waht is the replacemente for "word under cursor"

2009-11-17 Thread Robbo
I've just looked for :h cword but if i write :map :ptag it doesn't work. Thank you. On 17 Nov, 11:15, "Christian Brabandt" wrote: > On Tue, November 17, 2009 11:02 am, Robbo wrote: > > in a mapping what is the placeholedr for the "word under cursor". > > :h cword > > regards, > Christian --~

Re: Highlighting of spell "corrected" words

2009-11-17 Thread Christian Brabandt
On Tue, November 17, 2009 12:33 pm, Eric Smith wrote: > > The new spelling system for vim is great and I use a macro to > automatically "correct" misspelt words. When I am really sloppy > this automatic "correction" (to the first option in the list > suggestions) is incorrect. Some embarrassing

Re: Google closure templates

2009-11-17 Thread Ben Fritz
On Nov 16, 4:26 am, Fabien Meghazi wrote: > Is it possible for vim to have a kind of "additional" highlight layer ? > > In the case of templates, the source could be html, svg, xml, plain > text, whatever. > But if you would like to add the template syntax highlighting, how > could you make thi

Highlighting of spell "corrected" words

2009-11-17 Thread Eric Smith
The new spelling system for vim is great and I use a macro to automatically "correct" misspelt words. When I am really sloppy this automatic "correction" (to the first option in the list suggestions) is incorrect. Some embarrassing emails have ensued *blush*. I would very much like to have "cor

Re: Empty $PATH shell command problem

2009-11-17 Thread Bram Moolenaar
bgold12 wrote: What is your name? > I recently added a couple of directories to my path and then found > that the command-line shell command (i.e. ":!ls") stopped working. > More specifically, the shell didn't seem to be able to find any of my > cygwin or otherwise utilities. I have been able t

Re: Waht is the replacemente for "word under cursor"

2009-11-17 Thread Christian Brabandt
On Tue, November 17, 2009 11:02 am, Robbo wrote: > in a mapping what is the placeholedr for the "word under cursor". :h cword regards, Christian --~--~-~--~~~---~--~~ You received this message from the "vim_use" maillist. For more information, visit http://www.v

Waht is the replacemente for "word under cursor"

2009-11-17 Thread Robbo
Hi, in a mapping what is the placeholedr for the "word under cursor". Thank you --~--~-~--~~~---~--~~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~--~~~~--~~--~-

Re: How to Build Last vers of cscope 15.7.a on Win

2009-11-17 Thread Michael Wookey
2009/11/17 epanda : > Where can I find the download link of cscope or with what soft can I > build sources of cscope out of DJGPP. You can find pre-compiled binaries here: http://code.google.com/p/cscope-win32 --~--~-~--~~~---~--~~ You received this message from