New answers tagged

1 vote

Triggering UltiSnips in command-line mode

The mapping cnoremap {lhs} <C-r>=&cedit<CR>:call UltiSnips#ExpandSnippet()<CR><C-c> maps {lhs} to expand a (simple) snippet in the command line. Here's what the {rhs} of ...
user avatar
  • 1,373
2 votes

UtliSnips - dynamically add placeholders along the way

I would suggest using the UltiSnip's context feature. This feature requires you to specify a python expression which returns True iff the cursor is currently in a valid context. In this case, the ...
user avatar
  • 901

Top 50 recent answers are included