:global with mapping

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

:global with mapping

j.hofmann-2

Hello,

I have a mapping <Shift-F3>.
I want to execute it an all lines which match "Belegnummer".
When I type
:g/belegnummer/<S-F3>
vim says:
E488: Trailing characters

How can I execute this?

Thank You

Joachim
###########################################

This message has been scanned by F-Secure Anti-Virus for Microsoft Exchange.
For more information, connect to http://www.f-secure.com/


--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply | Threaded
Open this post in threaded view
|

Re: :global with mapping

Tony Mechelynck

[hidden email] wrote:

> Hello,
>
> I have a mapping <Shift-F3>.
> I want to execute it an all lines which match "Belegnummer".
> When I type
> :g/belegnummer/<S-F3>
> vim says:
> E488: Trailing characters
>
> How can I execute this?
>
> Thank You
>
> Joachim


        :%g/belegnummer/normal \<S-F3>

see ":help :normal"

Best regards,
Tony.
--
Waiter: "Tea or coffee, gentlemen?"
1st customer: "I'll have tea."
2nd customer: "Me, too -- and be sure the glass is clean!"
        (Waiter exits, returns)
Waiter: "Two teas.  Which one asked for the clean glass?"

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply | Threaded
Open this post in threaded view
|

syntax error

jagpreet

Whats wrong in this line.

set rulerformat=%90(%{VimBuddy()}% %85%({strftime('%a\ %b\ %e\ %I:%M\ %p')}\
:%{GetColorSyntaxName()}:\ %8l,%-6(%c%V%)\ %P%)

the error is

Error detected while processing /home/jagpreet/.vimrc:
line   75:
E539: Illegal character <^@>: rulerformat=%90(%{VimBuddy()}%


Further, whats the difference if I use the same line in statusline instead
of rulerformat.

Regards,
Jagpreet


--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply | Threaded
Open this post in threaded view
|

Re: syntax error

Antony Scriven-3

On 26/07/07, Jagpreet <[hidden email]> wrote:

 > set rulerformat=%90(%{VimBuddy()}% %85%({strftime('%a\ %b\ %e\ %I:%M\ %p')}\
 > :%{GetColorSyntaxName()}:\ %8l,%-6(%c%V%)\ %P%)
 >
 > the error is
 >
 > Error detected while processing /home/jagpreet/.vimrc:
 > line   75:
 > E539: Illegal character <^@>: rulerformat=%90(%{VimBuddy()}%

Looks like you've got a space in there. Escape it \ --Antony

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---