Questions tagged [insert-mode]

The mode in Vi and Vim in which you can insert text to the open document.

19 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
2
votes
0answers
54 views

how to have two different colour schemes for command mode and edit mode in vim?

I have been using vim for some time now but I am always unsure of which mode I am currently in and hence end up pressing Esc too often even in the command mode. This causes an irritating computer ...
2
votes
0answers
17 views

How can I remap the arrow buttons in insert mode when Pencil is enabled

I use vim to write text, and that’s why I often use it in combination with the Pencil plugin. The plugin creates significant delay in the movement of the cursor when in insert mode. I have tried to ...
2
votes
0answers
89 views

Why does reverse indent enter Hebrew?

Today I learned that you can use <C-_> in insert mode to toggle "Reverse insert" on and off, provided that :set allowrevins is set. This sounds like a useful feature (Albeit an obscure and ...
2
votes
0answers
115 views

Avoid ending up in mode from onoremap

When I'm on an empty line and press cfa, nothing happens, whereas on a line with an a, it will go into insert mode. E.g. I have this: onoremap <silent> a :normal! Favfz Whether I am on an ...
2
votes
0answers
197 views

Delay when inserting new lines

I know that there can be a delay when inserting a new line with O after pressing Esc. However, I am experiencing that delay with o and i<CR> as well. This should not be related to vim 'waiting' ...
2
votes
0answers
183 views

Esc from insert in macro prints ê^ instead of running Esc

Here's a sample macro. 2Ea,^[j^ (Jump to the end of the second word, append a "," escape visual mode, and go to the next line.) Instead of 99 The, I get 99 The,ê^ and it stays stuck in insert mode. ...
1
vote
0answers
33 views

Typing colon character in Insert mode undoing changes?

I am really curious as to why this is happening. I have this line in my .vimrc file (I am using WSL2 on windows and this line helps support copying from vim to the system clipboard): set clipboard=...
1
vote
0answers
20 views

How can I make `<Shift>+<LeftArrow>` and `<Shift>+<RightArrow>` key bindings work using MacVim?

How can I make <Shift>+<LeftArrow> and <Shift>+<RightArrow> key bindings work using MacVim? I often use these (default) key bindings in Insert mode to move the cursor one word ...
1
vote
0answers
83 views

Change the behavior of CTRL-X submode key bindings

I wanted to change the behavior of some keys in the :h i_CTRL-X submode. For example, I wanted to use the following: inoremap <expr> <C-f> pumvisible() ? "\<C-x>\<C-f>" : "<...
1
vote
0answers
36 views

how to edit the command when copy into conque

I am using conque plugin in Vim. When I copy some content into conque, it seems only possible to edit at the end of the command. What I wish to do is to copy something into conque and change a little ...
1
vote
0answers
75 views

Fish-like autosuggestions depending on 'completeopt'

I describe this as Fish-like as it is referenced as such by zsh-autocomplete, and I would define it as follows: The appearance of a (temporary) automatically inserted completion match, that is ...
0
votes
0answers
80 views

Change cursor shape in Vim PowerShell

I have looked through the web but I have found no answer to this. https://vim.fandom.com/wiki/Change_cursor_shape_in_different_modes The above website mentions ways to do it in terminals but not when ...
0
votes
0answers
58 views

Escape newlines when breaking text

I'm using Vim to typeset some Latex documents, and resizing it to take up half my screen so I can reference other materials on the other half. Therefore, formatoptions+=t would be very helpful here. ...
0
votes
0answers
81 views

Temporary normal mode doesn't wait for the command

When I press C-o in insert mode, the expected behaviour is that vim will wait for me to execute a single command and then returns to insert mode. Usually, after pressing C-o I have all the time in the ...
0
votes
0answers
259 views

Visual block mode insert/append not working in vim on RHEL/CentOS?

I was trying to append some text to multiple lines in vi on a RHEL 6 system, however I could not get it to work. I press Control + V to get into visual block mode, select the lines I need, but when I ...
0
votes
0answers
78 views

Don’t start in insert mode when opening a shell script

How can I prevent vi from starting in insert mode when opening a "test.sh"-like file with the vi-plugin "bash-support" v4.3 ? When I vim test.sh it opens in insert mode When I vim .vimrc it opens in ...
0
votes
0answers
41 views

“--INSERT--” doesn't go away with a remapped escape key

I remapped the Esc key to jj as follows: inoremap jj <esc>l If I only put <esc> the cursor is always one letter to the right, however once I add the l the notification message --INSERT -...
0
votes
0answers
57 views

i<c-e> and i<c-y> copy to end of line

In insert mode <c-e> and <c-y> copy a character at a time from the above line. I generally use these when working with aligned bits of text inside a program and want to copy to the end of ...
-1
votes
1answer
97 views

Insert position

Recently insert position becomes strange. i can change insert position. Sometimes insert to the left of current cursor, sometimes to the right. Caps is not activated. VIM 8.0 1-586