My Environment
OS: Windows7 (win7)
Program: Docker (VirtualBox based)
Docker Image: Caffe2 0.8.1 ubuntu
I have had vim key mapping issue.
In detail, I press any arrow key, then I get "E349: No identifier under cursor" or "E388: couldn't find definition"
It is because of "term variable" that is embedded environment variable in VIM
using follow command in vim, you can get your value of term variable,
:set term?
my value was "xterm", and it cause the issue
So I changed it, see below
:set term=cygwin
Finally the issue is solved, term=xterm or term=ansi, compatible(cp) or nocompatible(nocp) is not good solution for me
try above command
you can set it automatically
echo "set term=cygwin" >> /etc/vim/vimrc
In addition, if term's value is xterm, you can use "hjkl" instead of "arrow keys"
Reference Site: https://superuser.com/questions/843876/cygwin-terminal-backspace-and-arrow-keys-not-working
'Linux' 카테고리의 다른 글
Raspberry Pi make 에러 (1) | 2017.12.04 |
---|---|
[Linux] .vimrc on docker win7 (0) | 2017.11.30 |
[Linux] hash -r 기능 (0) | 2017.11.29 |
[git] ubuntu git-lfs install & git clone subdirectory (0) | 2017.11.29 |
[Linux] samba(smbcliemt)로 윈도우즈 공유 폴더 mount하기 (0) | 2017.11.25 |
WRITTEN BY
- hojongs
블로그 옮겼습니다 https://hojongs.github.io/