0

In pseudo speak: I use a command:

edit! http://apath/toapage.pg1.html

and with the elinks plugin this will open the contents of this page into a buffer for editing

But when I try to increment this url's "1" by injecting a function variable (funcvar), such as:

let @a = 'http://apath/toapage.pg' .a:funcvar. '.html' 
edit! @a

If fails, even though checking the reg a shows it to be exactly the same characters.

Does anyone know why?

(Thanks)

Ricalsin
  • 950
  • 9
  • 28

1 Answers1

3

edit! @a doesn't expand @a

Please try:

exec 'e! ' . @a
kev
  • 155,172
  • 47
  • 273
  • 272