Wednesday, May 14, 2014

imap / inoremap prints "" instead of leaving insert mode

Hi all,

I tried to remap jj to the <Esc> key in my vimrc file as following:

inoremap jj <Esc>

In insert mode when I press jj I end up with the string "<Esc>" printed on screen instead of vim going back to normal mode.

same problem with imap, <ESC>, <esc>

I'm new to vim using a Yakuake terminal on Fedora 20.
You can find my complete vimrc below.

Tia for any suggestions!

Joris



1 colorscheme molokai
2 set expandtab
3 set shiftwidth=2
4 set softtabstop=2
5 set cul
6 set scrolloff=5
7 set number
8 set smartindent
9 inoremap jj <Esc>
10 set encoding=UTF-8
11 set fileencodings=UTF-8
12 set nocompatible " Use Vim defaults (much better!)
13 set bs=indent,eol,start " allow backspacing over everything in insert mode
14 set ai " always set autoindenting on
15 set viminfo='20,\"50 " read/write a .viminfo file, don't store more
16 " than 50 lines of registers
17 set history=50 " keep 50 lines of command line history
18 set ruler " show the cursor position all the time
19 syntax on
20 set hlsearch
~

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment