This is the mail archive of the cygwin mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: un-indenting doesn't work with vim

On Thu, 17 Jul 2008, Matt Wozniski wrote:

Not very hard if you take the time to learn a bit about terminals. <BS> on a UNIX keyboard either sends ^? or ^H. If you have "set backspace=indent,eol,start" (or, equivalently, "set backspace=2") in your ~/.vimrc, vim will correctly delete over automatically inserted

And if it isn't only Vim that's bonkers, then you need to mess with
stty. Also you may find other terminal names on the terminfo
database that are similar but behave better. People expect these
things to "just work", and it can be very frustrating when they
don't, but there is a frightening variety of terminal types
available, and lots of parameters to change. I've yet to see a
terminfo entry that matches the PuTTY program properly and would be interested if anyone has, but that's way off topic. xterm-color
is close enough for now.

The other thing that may help with this kind of frustration is using
gvim instead of vim. But if you prefer emacs, then that's OK, too.
There are enough weird terminals to make ed still useful!


Unsubscribe info:
Problem reports:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]