11
7
'vimdiff a b' always prints "2 files to edit". I don't want to see that. How can I avoid it?
Here is an example:
⚡ vimdiff a b
2 files to edit
I want to use vimdiff from a bash script and don't want to see this output
Hey @terdon, if you like that, you should check out vim's "digraph" page (
:help digraph
). It has all the symbols it supports with hex, decimal, descriptions, and digraphs themselves (key sequences, usually decent mnemonics.) Of course you can go the other way and pipe symbols tohd
, so you can print by numeric value from your config files (generally a better idea than pasting them directly.) – John P – 2017-12-31T13:44:34.653@JohnP I have no idea what you're talking about. Did you mean to address the comment to the OP? I don't even use vim, I'm an emacs user. I just left a link to a page that might help the OP. – terdon – 2017-12-31T13:53:27.310
"Oh, on a completely irrelevant note, could you share your $PS1? What is the character you are using as a prompt? – terdon" Although yes, it won't help you without Vim. – John P – 2017-12-31T13:58:34.173
@JohnP oh, wow, that was 4 years ago when I had barely heard of unicode :) The character is
U+26A1 ‹⚡› \N{HIGH VOLTAGE SIGN}
and has nothing to do with vim at all. That's the value given toPS1
and is not related to editors. It is a shell issue, not a vim one. – terdon – 2017-12-31T14:01:15.557Haha, okay, I didn't see the age. My comment was all about special characters and how to add them to your config, using the editor you were commenting about, so I think it follows. I don't know what prompted your explanations at the end there, but great, we both understand. – John P – 2017-12-31T14:24:54.710
1You could of course just launch it with
2>/dev/null
. Why do you need this?It seems like such a minor annoyance. Oh, on a completely irrelevant note, could you share your $PS1? What is the character you are using as a prompt? – terdon – 2013-02-01T14:55:14.4431vimdiff a b 2>/dev/null does not work for me. – Eric Johnson – 2013-02-01T15:00:45.120
I'm just sticking the unicode character in there. My $PS1 is defined here: https://github.com/kablamo/dotfiles/blob/master/links/.bash/prompt.sh
– Eric Johnson – 2013-02-01T15:02:29.033Nice, thanks :). And you're right, redirecting STDERR does not seem to work. I thought it did, but I just didn't see the line. – terdon – 2013-02-01T15:12:15.733
The answer seems to be here. Make sure to read the comments.
– terdon – 2013-02-01T15:21:20.613