| Computers Forum Index » Computer - Editors » Deleting previous characters in vi(m) in insert mode... |
|
Page 1 of 1 |
|
| Author |
Message |
| Thomas Wiedmann... |
Posted: Sat Sep 26, 2009 2:05 pm |
|
|
|
Guest
|
Hello,
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 |
|
|
| Back to top |
|
|
|
| Mikolaj Machowski... |
Posted: Sat Sep 26, 2009 2:05 pm |
|
|
|
Guest
|
|
| Back to top |
|
|
|
| Christian Brabandt... |
Posted: Sat Sep 26, 2009 3:18 pm |
|
|
|
Guest
|
On 2009-09-26, Thomas Wiedmann <th.wm at (no spam) gmx.de> wrote:
Quote: 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.
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. |
|
|
| Back to top |
|
|
|
| Gary Johnson... |
Posted: Sun Sep 27, 2009 3:56 am |
|
|
|
Guest
|
Christian Brabandt <cb-news at (no spam) 256bit.org> wrote:
Quote: On 2009-09-26, Thomas Wiedmann <th.wm at (no spam) gmx.de> wrote:
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.
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'
It may help also to look at
:help 'backspace'
--
Gary Johnson |
|
|
| Back to top |
|
|
|
| Christian Brabandt... |
Posted: Sun Sep 27, 2009 11:07 am |
|
|
|
Guest
|
On 2009-09-26, Gary Johnson <garyjohn at (no spam) eskimo.com> wrote:
Quote: Christian Brabandt <cb-news at (no spam) 256bit.org> wrote:
And if your backspace key is not working, you probably want to take
a look at :h :fixdel and :h 'bs'
It may help also to look at
:help 'backspace'
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) |
|
|
| Back to top |
|
|
|
| Florian Rehnisch... |
Posted: Sun Oct 04, 2009 3:17 pm |
|
|
|
Guest
|
o Thomas Wiedmann <th.wm at (no spam) gmx.de>:
Quote: 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/ |
|
|
| Back to top |
|
|
|
| Thomas Wiedmann... |
Posted: Sat Oct 17, 2009 2:44 pm |
|
|
|
Guest
|
Quote: 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'
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 |
|
|
| Back to top |
|
|
|
| Christian Brabandt... |
Posted: Sat Oct 17, 2009 3:52 pm |
|
|
|
Guest
|
On 2009-10-17, Thomas Wiedmann <th.wm at (no spam) gmx.de> wrote:
Quote: 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'
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?
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 |
|
|
| Back to top |
|
|
|
|