On Fri, 25 Aug 2017 20:30:14 -0400
Harry Putnam <[email protected]> wrote:
> Any one here familiar with emacs cperl mode, that can tell me how to
> get something similar when using vim?
>
> If not familiar, `cperl-mode' trys to offer a host of short cuts that insert
> quite a bit of standard code for you... a simple example is; if you
> type `if<spc>' `cperl-mode' inserts:
>
> if (_) {
> }
>
> With the underscore indicating where the cursor is left.
>
> I vaguely remember using something with vim, years ago, that did
> something similar, but no longer remember how to load that sort of
> thing.
>
> With my current vim setup (just the basic install on debian using
> `aptitude install vim'), plus a .vimrc carted around from OS to OS for
> years.
>
> If opening a perl script, I get syntax highlighting but when coding I
> get no help... no tricky inserts or the like.
>
I think UltiSnips can do what you want: https://github.com/sirver/UltiSnips .
There are similar alternative to it as well.
--
-----------------------------------------------------------------
Shlomi Fish http://www.shlomifish.org/
http://www.shlomifish.org/humour/bits/facts/Emma-Watson/
Experience is what causes a person to make new mistakes instead of old ones.
— Source unknown, via Nadav Har’El.
Please reply to list if it's a mailing list post - http://shlom.in/reply .
--
--
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 [email protected].
For more options, visit https://groups.google.com/d/optout.