All Questions
Tagged with string-manipulation options
2 questions
1
vote
1
answer
27
views
Inconsistent string handling [duplicate]
I've been assembling strings in vimscript using a . as the join command.
But when I try and use the same command to join a string when setting an option, such as:
:setlocal foldtext=v:folddashes . &...
12
votes
1
answer
3k
views
How do I use a variable or return value in option, command, or mapping?
I have a variable foo with let foo='value', and a function F like
function F()
return 'value'
endfunction
and I want to use them
in an option: :set option=foo, :set option=F(); or
in a command: :...