On Sun, Jan 12, 2014 at 04:44:40PM -0800, Ivan wrote:
> Wow, thanks for chiming in everyone!
> I'm using Vundle to manage plugins at the moment, so I went ahead and
> incorporated Ultisnips. I like it a lot so far.
> The only downside is that I was actually enjoying writing my primitive
> abbreviations.
yes! iabbrs are cool!
> I had just discovered I could consume the space typed after the abbrev
> by tacking a <C-O> at the end of the right-hand-side. Still, I'm not
> gonna reinvent the wheel.
another way of eating the space is to define a function, call it
Eatchar(), as documented at
:h abbreviations (scroll down some)
which gives you the advantage that if you end your abbrev with an Enter
instead of a space, a newline will be inserted -- I use this on most of
my iabbrs and love it.
I've found most happiness with vim by using as few plugins as possible,
and have found the path of least surprise by shamelessly re-inventing
any and all wheels.
--
_|_ _ __|_|_ ._ 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/groups/opt_out.
Sunday, January 12, 2014
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment