> From equals, equals, greater-than, to equals, greater-than?  Must be
> something about the web interface.

Oh don't worry, all your supposedly Unicode characters also came out
in ASCII here.

> Personally, I find external-to-Vim methods for entering Unicode characters
> to be much better.  For example, in order to get what I think your arrow is
> (=>) in all X11 programs (including Vim under a terminal emulator and Gvim),
> by typing <Compose> + <equal> + <equal> + <greater-than> (where <Compose> =
> <CapsLock>), I can add this line to ~/.XCompose:
>
> <equal> <equal> <greater> : =>
>
> Granted, it's less portable (in terms of non-X11 environments), and can be a
> pain to set up initially, but it's worth the effort if you find yourself
> using non-keyboard characters frequently.

Excellent idea. I do use compose keys but never thought about adding my own.
Thanks.

> If you use :abbrev, rather than :iabbrev, they'll work in command-line mode,
> too.  (Doesn't help for 't'/'f')

Fair point.

> You might try 'q:'.  For the longest time, I found it incredibly annoying
> when I would mistype my preferred 'quit' mechanism and end up in this
> bizarre 'Ex' mode.  But now I use it all the time.
>
> :help q:
>
> If you want one of your special characters in that command-line, you can
> navigate to it, and there are at least two quick ways to yank the character
> under the cursor.

Wow I never know what q: was for. Looks cool! My iabbrevs even work in there.

>
> 1) type 'vy' (no quotes) [ == enter visual mode, yank the current visual
> selection of one character ]
>
> or 2) 'yl' [ == yank + {motion} where {motion} is from the cursor to one
> character to the right of the cursor, excluding that character ].
>
> Then in the 'q:' window, you can 'p' (for 'put') it.
>
> I can't quite figure out a way to use => with 't'.  But, perhaps the next
> best thing (depending on your use-case) is the '*' search.  If you navigate
> to put the cursor above the => through other means (word/sentence/paragraph
> movement), you can easily get to the next one by pressing asterisk above it.

Unfortunately in my use-case there's not usually another instance of
the character lying around to pick up with *... I want the 't' for
motion up to a certain (semantic) point in the line defined by a
special character in the middle of the line, say. Currently I just end
up hitting 'w' a few times instead, but that means more keys/mental
effort spent on motion.

>
> --
> Best,
> Ben

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

Reply via email to