Hi everyone,
I am trying to write a simple vim script that takes an "input" from a
command line, and sets it to a variable, and then use that variable
throughout my script.
For example, I am trying to type something in the command line, and
take that and set it to a variable (in this case "name"), and then I
am trying to delete all the lines that don't contain my variable.
function! SelectBeam()
call inputsave()
let name = input('Enter Beam #: ')
call inputrestore()
:g!/execute . name/d
endfunction
what should I do for the "name" to be recognized as a variable that I
inputted in the command line, and NOT as the word "name"
thanks,
RB
--
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