+ VariableUpdateDialog()
git-svn-id: https://vimsuite.svn.sourceforge.net/svnroot/vimsuite/trunk@172 eb2d0018-73a3-4aeb-bfe9-1def61c9ec69
This commit is contained in:
parent
1ef6705fdb
commit
9b3a2bef4b
@ -44,6 +44,18 @@ function! GotoLastFile()
|
|||||||
endwhile
|
endwhile
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
" inputdialog whitch updates Variable and returns result
|
||||||
|
function VariableUpdateDialog(prompt, varName, ...)
|
||||||
|
execute 'let l:var=' . a:varName
|
||||||
|
if a:0 > 0
|
||||||
|
let l:var = inputdialog(a:prompt, l:var, a:1)
|
||||||
|
else
|
||||||
|
let l:var = inputdialog(a:prompt, l:var)
|
||||||
|
endif
|
||||||
|
execute 'let ' . a:varName . '= l:var'
|
||||||
|
return l:var
|
||||||
|
endfunction
|
||||||
|
|
||||||
"command -nargs=1 PathNormpath call PathNormpath('<fargs>')
|
"command -nargs=1 PathNormpath call PathNormpath('<fargs>')
|
||||||
"function PathNormpath(string)
|
"function PathNormpath(string)
|
||||||
" if (v:version > 602)
|
" if (v:version > 602)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user