ultisnips
ultisnips copied to clipboard
UltiSnips - The ultimate snippet solution for Vim. Send pull requests to SirVer/ultisnips!
Using the function described on Ultisnips help: ``` function! ExpandPossibleShorterSnippet() if len(UltiSnips#SnippetsInCurrentScope()) == 1 "only one candidate... let curr_key = keys(UltiSnips#SnippetsInCurrentScope())[0] normal diw exe "normal a" . curr_key exe "normal...
I'm trying to put a literal `\n` in a replacement, here's an example snippet: ``` snippet a $1 "${1/.*/\\n/}" endsnippet ``` **Expected behavior:** The replacement is literal `\n` (that is,...
The other choice is `Ultisnips#ListSnippets()`, which is not script friendly, since it prints to console and I'd have to parse the output. If it's decided we don't want the extra...
[unite](https://github.com/Shougo/unite.vim) is officially declared as deprecated by the author and [denite](https://github.com/Shougo/denite.nvim) is the successor. If there is a unite source for ultisnips, there should also be on for denite then....
Basically I have `autocmd FileType css set filetype=html.css` because I need html ctags completion with YouCompleteMe in css. But I would like to disable html snippets. So something like `UltiSnipsRemoveFiletype`...
I have the following snippet: ``` snippet se "" b ,{ 'AUTHOR': '${1:Williams}', 'TEXT': '${VISUAL}$2', } endsnippet ``` When I skip first tabstop without changing default text, the second tabstop...
Steps to reproduce: 1. Open vim with blank .py file 2. Enter insert mode and type "class" 3. Press `` Some extra triple-quotes and some other garbage appears as soon...
When using visual placeholders in tabstops, empty lines get indented and the white space is not cleared. I tried finding a place to solve this but went way beyond my...
Consider following latex snippet: ``` snippet EFG "Figure" b \begin{figure}[${1:}] \centering ${VISUAL:\\includegraphics[$3]\{$2\}} \caption{${4:}} \label{fig:${5:}} \end{figure}$0 endsnippet ``` It should be able to surround via visual mode an already existing line...
**Expected behavior:** Register `1` is never copied to register `0`. **Actual behavior:** Register `1` is copied to register `0` when expanding snippet: * in visual mode; * when last vim...