문제

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)

도움이 되었습니까?

해결책

edit! @a doesn't expand @a

Please try:

exec 'e! ' . @a
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top