+ VariableUpdateDialog()

git-svn-id: https://vimsuite.svn.sourceforge.net/svnroot/vimsuite/trunk@172 eb2d0018-73a3-4aeb-bfe9-1def61c9ec69
This commit is contained in:
stefan 2008-11-04 11:34:32 +00:00
parent 1ef6705fdb
commit 9b3a2bef4b

View File

@ -44,6 +44,18 @@ function! GotoLastFile()
endwhile
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>')
"function PathNormpath(string)
" if (v:version > 602)