Multiple commands on same line

A bar | will allow you to do this. From :help :bar ‘|’ can be used to separate commands, so you can give multiple commands in one line. If you want to use ‘|’ in an argument, precede it with ‘\’. Example: :echo “hello” | echo “goodbye” Output: hello goodbye NB: You may find that … Read more

Can terminals detect or ?

Some terminals send <NL> when <C-Enter> is pressed. This is equivalent to sending <C-J>. To find out what your terminal does with <Shift-Enter>, <Ctrl-Enter> and <Enter>, go to your terminal, type <Ctrl-V> (similar to sykora’s suggestion for vim), and type in the sequence you’re interested in. Using gnome-terminal, I get the following: <Enter> : ^M … Read more