Questions tagged [echo]
28 questions
1
vote
0 answers
return value of execute(command) when command has "silent!"
In my understanding, the return value of execute(command) should be what command outputs. (The second parameter of execute is to affect whether this output will also be displayed in vim.)
Now command runs a function and inside the function there is…
doraemon
- 1,667
- 11
- 27
1
vote
0 answers
Why are [$p] characters appearing at the beginning of every file?
Every file I open in vim lately, even new empty files, as a ($p) at the beginning. This does not appear to be real - inserting text overwrites it, and once it's overwritten it does not return.
I recently reinstalled vim (through homebrew) and…
GlyphGryph
- 11
- 1
1
vote
2 answers
How can I echo non-printable characters like spaces?
If I have non-printable characters assigned to a variable, how can I echo them?
For example, if I have a variable xyz set to be two spaces and a tab, then if I do this:
:echo xyz
it just shows a blank line. I can't actually see the characters to…
Tyler Durden
- 2,091
- 2
- 23
- 42
0
votes
1 answer
How to echo string to a file using vimscript?
I want to use the echo command from vim (not the shell ones or the external command) for outputting some strings to external files.
I know I could use redir but I'm just wondering if there isn't a simpler way (in pure vimscript).
Nordine Lotfi
- 683
- 4
- 16
0
votes
1 answer
How to echo a command but avoid the "hit enter" prompt
I have found how to silently execute a command with :silent, but I actually would like to echo the command being executed, without getting into this "hit-enter" prompt. How to do it?
My example is a function for synctex forward search, put into my…
PlasmaBinturong
- 203
- 1
- 5