Automatically trigger abbreviation when expanding a snippet
Asked by
Jan-Christian
I would like to employ a mix of abbreviations (defined with iab) and snippets. It would be nice if when triggering a snippet, I could also trigger a check to expand a possible abbreviation at the trigger point. For example, if I have the abbreviation ,a for \alpha, I’d like to type frac<Tab>
I already tried
exec "inoremap <silent> <Tab> <C-]><C-
This expands the abbreviation, but the following snippet expansion seems to receive the line information prior to the abbreviations expansion, therefore in the above example, I end up with the wrong text selected and an incorrect cursor position after the second <Tab>.
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- UltiSnips Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Jan-Christian
- Solved:
- Last query:
- Last reply:
To post a message you must log in.