Monday, September 29, 2014

Re: command-line commands instead of abbreviations?

On Mon, Sep 29, 2014 at 08:29:58PM +0300, Gevisz wrote:
> On Mon, 29 Sep 2014 08:17:44 -0700 (PDT)
> Ben Fritz <fritzophrenic@gmail.com> wrote:

> > On Monday, September 29, 2014 1:21:57 AM UTC-5, gevisz wrote:
> > >
> > > So, Vim does not fully support utf-8 and thus using commands
> > > instead of abbreviations is not an option for me.
> >
> > But abbreviations don't work in normal mode anyway
> > which is where you wanted to use your command.

> Yes, I would prefer them to work from the insert mode but
> I do not mind pressing one more button before starting
> my mappings/abbreviations/commands.

forgive me if this has already been suggested and discarded, but if you
don't have too many of these things you might write a script to load the
useful ones into named registers for insertion with CTRL-R -- you could
trigger the script with filetype, or on demand, or whatever pleases you

that way you could stay in insert mode and insert them with very few
keystrokes

see

:h i_CTRL-R

for a more detailed description of register insertion

--
_|_ _ __|_|_ ._ o|
|_(_)(_)|_| ||_)||<
|

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

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments: