This all has been done for you:
https://github.com/MarcWeber/vim-addon-other/blob/master/plugin/vim-addon-other.vim
copy paste line 34 35 and the functions found in the autoload file.
This also works in quickfix :)
> function! SelectBeam()
> call inputsave()
> let name = input('Enter Beam #: ')
> call inputrestore()
> :g!/execute . name/d
> endfunction
I've neven used inputsave before :)
You want to use execute in a different way:
execute 'a string'
The string is made up of var contents and the final command:
So it finally look like this:
exec 'g!/execute'.name.'/d'
Is this what you're look for?
Marc Weber
--
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 http://www.vim.org/maillist.php