Expanding a snippet within a snippet (vim or sublime) - vim

I'm trying to improve my work flow a little bit and I'm trying to accomplish something but don't really know where to start.
I'm a huge fan of snippets, I've been customizing lots of my own, and it really helps me write code much faster, and actually avoid errors as well.
However, I'd like to be able to expand a snippet while I'm still tabbing through a current snippet.
Any idea what I might be able to do? Is there a version of snippets for vim that does this? Is there a key binding I can put into sublime that might help?
Thanks!!!

I am not sure about snipmate but you definitely can do that with Ultisnips.

Related

Is there some form of auto indentation mode in OpenModelica OMEdit?

I'm new to OpenModelica. I'm an experienced programmer (C++ and Octave) and I tried to use OMShell but it is quite hard to me, because I find that it gives very little feedback when errors are produced. So I switched to the GUI version (OMEdit). I can't find an auto-indentation feature, i.e. I would like to select all or part of the code and have the editor to reformat the code for me, like the TAB key en Emacs. Is there something like that?
TIA, Mario
No, OMEdit doesn't have any auto formatter.
Adeel.

ReSharper ctorp - wth is that and where do I find it?

I really crave to create some funky snippets for my personal use and I want them to work similarly to ReSharper's ctorp. However I found out ctorp is not snippet and probably it is not Live Template either. Does someone can tell me what is this 'snippet' is and (if) where I can find its source code?
Thanks a lot
If you really crave to do so then write your own resharper plugin. ctorp is so called generative completion. Here you can have a look for more information and ideas where to go next.

vim ultisnips reactivate snipet

I'm a vim/ultisnips newbie trying to be more efficient when writing and coding. I've successfully installed the ultisnips plugin and it works so far.
My question is: is it possible to "reactivate" a snippet after it has been filled? The documentation says:
UltiSnips will only map the jump triggers while a snippet is active to
interfere as little as possible with other mappings.
But actually I would like to reactivate a snippet from time to time in order to efficiently jump between the placeholders while updating/modifying the snippet content.
Any idea how this can be done?

Vim Plugin: Follow Symbol under Cursor

Is there a vim plugin that allows you to place the cursor over a function and have a plugin run a script that searchs a tag or some other entity for where that function is defined. Or perhaps it provides a list of places where that function is defined? Specifically I am looking for a C/C++ based plugin.
You want ctags, which supports many, many languages beyond C. It will show you the definition of the function or variable under the cursor.
cscope integrates nicely with Vim to do exactly that and more. Where a function is defined, where it is called etc. You may also need a tags with cscope.
The vim website hosts a lot of plugins, you might really want to look there. Also, you didn't really specify what languages you wanted this to apply to, so this is a very broad question (hard to find a real answer to this).
An alternative to your question is, instead of putting the lookup capability into vim, why not put in into something else that already has it? Why not eclipse? There's an eclipse plugin called vrapper that gives vim like functionality within eclipse. You can then use eclipse to do the referencing and lookup that you want to do, because it already has this supported for many languages.
Edit: wouldn't this solve it?
I think you wanted to know what it was that you had to do to be able to solve the problem, as though you knew the feature was there but not how to use it. That link explains it. If that is the solution to your problem, please remember to vote & check XD

Which vim mechanism should I use to implement Markdown list indentation?

I'm looking to beef up the Markdown capabilities of vim a bit (https://github.com/plasticboy/vim-markdown), namely to add some support for auto-creating the next list item while indenting everything properly.
My question is, what vim mechanism is best to implement this in? Is this a task for the highlighting file? Should I cobble together something in SnipMate? I'm glad to do any homework necessary, but I'd like to know where's the best place to start.
Based on a quick snoop through the help, formatoptions and formatlistpat and the related fo-table look like good places to start. I'd start by reading those and then finding existing plugins that use them and figure out how they work.

Resources