jhnphm / conque

Automatically exported from code.google.com/p/conque
0 stars 0 forks source link

insert mode? #33

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. start bash with conque
2. type something in edit mode
3. quit edit mode and come back in the middle of the command
4. try to go into insert

What is the expected output? What do you see instead?
it should allow to insert chars, instead it appends at the end of the line. 
Normal? maybe it does this only for me?

What version of the product are you using? On what operating system?
vim 7.2 on ubuntu

Please provide any additional information below.

Original issue reported on code.google.com by archamba...@gmail.com on 24 Nov 2010 at 8:25

GoogleCodeExporter commented 9 years ago
This is expected. You can only interact with the shell in insert mode. When you 
leave insert mode you can move the cursor around to browse the shell output, 
but it won't change the cursor position in bash.

For line editing you have two options depending on how readline is configured. 
In either case all of this is in insert mode.

If readline is using Emacs style line editing (the default) you can use those 
key commands to edit the current line. E.g. press <C-a> to go to the begging of 
the line, or <C-e> to go to the end, or <C-u> to erase everything up to the 
cursor.

You can also configure bash/readline to use Vim keys for line editing. Then you 
can use Vi commands to edit the line. E.g. <Esc>0i to go to the begging of the 
line, etc. You can do this by creating a .inputrc file with the following 
options:

set editing-mode vi
set keymap vi

However, by default pressing <Esc> in Conque will leave insert mode, instead of 
sending <Esc> to the terminal. Pressing <Esc> twice sends it to the terminal 
and leave you in insert mode. In order to send <Esc>0i to the terminal you'll 
have to type <Esc><Esc>0i

If you want to use Vi line editing, but don't want to press <Esc> twice, you 
can use the ConqueTerm_EscKey option to pick a new key for leaving insert mode 
so all <Esc> key presses will be sent to the terminal. (See :help 
ConqueTerm_EscKey).

Original comment by nicora...@gmail.com on 24 Nov 2010 at 9:05