how can in vi(m) in the insert mode previous characters be deleted without
changing to the command mode?
The problem: [Backspace] is not always working in the insert mode - whyever.
Thomas Wiedmann
Ctrl-H
m.
--
LaTeX + Vim = http://vim-latex.sourceforge.net/
Vim Universal Templates: http://vim.sf.net/script.php?script_id=1078
CLEWN - http://clewn.sf.net
You already got an answer. Besides <C-H>, for deleting one char you
can also use <C-W> for deleting a word and <C-U> for deleting the
whole line.
See :h i_CTRL-H
:h i_CTRL-W
:h i_CTRL-U
And if your backspace key is not working, you probably want to take a
look at :h :fixdel and :h 'bs'
regards,
Christian
--
It's been said you aren't a real UNIX system administrator until you've
edited a sendmail.cf file. It's also been said that you are crazy if you
attempted to do so twice.
It may help also to look at
:help 'backspace'
--
Gary Johnson
Which is the same as :h 'bs' ;)
regards,
Christian
--
Kernel panic: Could not determine whether
bit was one, zero or sqrt(1/PI)...
(J.K. in d-u-g)
> how can in vi(m) in the insert mode previous characters be deleted without
> changing to the command mode?
Do you know CTRL-O? It takes one normal mode comand and then goes
back to insert mode. Limited to Vim, however.
--
flori
Vim-Hilfe auf Deutsch http://www.florianrehnisch.de/vimhelp/
These key shortcuts only work with vim, not with vi [Ok, my initial question
concerned vi(m)]. How can with vi (version 3.10) in the insert mode previous
characters be deleted without
changing to the command mode?
Thomas Wiedmann
Actually they should work on any vi clone. The problem is, that you
usually can only delete characters up to the point where you start
insert mode. In vim :set bs=2 fixes that, I am not sure, if vi or nvi or
the other clones have a setting for that.
regards,
Christian