On 24/03/10 19:11, rameo wrote:
Hello John,

Thank you for answering.

As you know ,in vim the backtick is used to go back to last edited
line ( `. )
Backtick takes you to an exact mark location while single-quote simply
takes you to the beginning of the marked line

I tried to map the backtick as you indicated but it still doesn't go
to the last edited line.
I thought that something is wrong with the backtick.

Or... do you have to set a marker first?

Rameo


Here's a different suggestion, which doesn't need a backtick to set up the mapping:

        :noremap  <F3> <Char-0x60>
        :noremap! <F3> <Char-0x60>

(or use anything else intead of F3 -- I chose it in this example because, on my keyboard, it's just above the apostrophe). Now F3 (or whatever other {lhs} you choose) should act as if it were a backtick, in all modes in Vim. (What to do outside of Vim, e.g. in bash where it is quite useful in order to get the stdout of one command as part of another command-line, well, that's a different question.)

Are you sure you can't get a backtick on your keyboard? On mine, AltGr together with a key which, depending on hardware construction, is either just left of a narrow Backspace (if Enter is wide) or inside the corner of a narrow Enter key (if Backspace is wide) gives a "dead grave accent". That dead-grave followed by a space gives a spacing-grave accent -- or backtick.


Normally, in Normal mode the backtick prefix and the apostrophe prefix should do the same, except that the backtick works characterwise while the apostrophe works linewise. If the one works, the other ought to work too.


Best regards,
Tony.
--
"If you understand what you're doing, you're not learning anything."
                -- A. L.

--
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

To unsubscribe from this group, send email to vim_use+unsubscribegooglegroups.com or 
reply to this email with the words "REMOVE ME" as the subject.

Reply via email to