FG
💻 Software

Vim map a key combination while in insert mode

Fresh5 days ago
Mar 15, 20265832 views
Confidence Score0%
0%

Problem

This is probably an easy question for most vim users. I want to to . It works perfectly while I'm in normal mode but when I'm in my insert mode (typing code) it just inserts tabs characters. In my vimrc file I have Any ideas? Thanks!

Error Output

map <C-Tab> :tabn<CR>

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Vim map a key combination while in insert mode

Low Risk

Try this: That will leave you in normal mode after switching to the next tab. You could instead use this: which will put you back into insert mode in the next tab at the position where you left the cursor in that tab.

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment