Simplify commands' same <args>

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

Simplify commands' same <args>

Ni Va

I use these commands in a plugin:

command! -nargs=0 Explore              
\ call explorer#explorePaths(get(b:array,line(".")-1))

command! -nargs=0 ExplorerUniteLauncher
\call explorer#UniteLauncher(get(b:array,line(".")-1))

command! -nargs=0 ExplorerUniteRenamer  
\call explorer#UniteRenamer(get(b:array,line(".")-1))

command! -nargs=0 ExplorerUniteDeleter  
\call explorer#UniteDeleter(get(b:array,line(".")-1),1)

How can I "register" the arg value which is always the same one :


Thank you

You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit

You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit