Add support for editing snippets in a new tab (#917)
This commit is contained in:
parent
23b9f11b7a
commit
71ab5319e3
@ -35,6 +35,8 @@ function! UltiSnips#Edit(bang, ...)
|
||||
let mode = 'vs'
|
||||
elseif g:UltiSnipsEditSplit == 'horizontal'
|
||||
let mode = 'sp'
|
||||
elseif g:UltiSnipsEditSplit == 'tabdo'
|
||||
let mode = 'tabedit'
|
||||
elseif g:UltiSnipsEditSplit == 'context'
|
||||
let mode = 'vs'
|
||||
if winwidth(0) <= 2 * (&tw ? &tw : 80)
|
||||
|
@ -38,7 +38,7 @@ endif
|
||||
|
||||
" UltiSnipsEdit will use this variable to decide if a new window
|
||||
" is opened when editing. default is "normal", allowed are also
|
||||
" "vertical", "horizontal", and "context".
|
||||
" "tabdo", "vertical", "horizontal", and "context".
|
||||
if !exists("g:UltiSnipsEditSplit")
|
||||
let g:UltiSnipsEditSplit = 'normal'
|
||||
endif
|
||||
|
@ -185,6 +185,7 @@ There are several variables associated with the UltiSnipsEdit command.
|
||||
g:UltiSnipsEditSplit Defines how the edit window is opened. Possible
|
||||
values:
|
||||
|normal| Default. Opens in the current window.
|
||||
|tabdo| Opens the window in a new tab.
|
||||
|horizontal| Splits the window horizontally.
|
||||
|vertical| Splits the window vertically.
|
||||
|context| Splits the window vertically or
|
||||
|
Loading…
Reference in New Issue
Block a user