정보 Vim FAQ 10.9 may be useful에 :
10.9. When I use my arrow keys, Vim changes modes, inserts weird characters
in my document but doesn't move the cursor properly. What's going on?
There are a couple of things that could be going on: either you are using
Vim over a slow connection or Vim doesn't understand the key sequence that
your keyboard is generating.
If you are working over a slow connection (such as a 2400 bps modem), you
can try to set the 'timeout' or 'ttimeout' option. These options, combined
with the 'timeoutlen' and 'ttimeoutlen' options, may fix the problem.
The preceding procedure will not work correctly if your terminal sends key
codes that Vim does not understand. In this situation, your best option is
to map your key sequence to a matching cursor movement command and save
these mappings in a file. You can then ":source" the file whenever you work
from that terminal.
For more information, read
|'timeout'|
|'ttimeout'|
|'timeoutlen'|
|'ttimeoutlen'|
|:map|
|vt100-cursor-keys|
:h vt100-cursor-keys
에서 :
Other terminals (e.g., vt100 and xterm) have cursor keys that send <Esc>OA,
<Esc>OB, etc. ...
그래서 아마 당신이 nnoremap
파일을 저장하려면 화살표의 키 순서에 Esc
의 원인이되는, 나머지 문자는 해석되고있다 따라서 A
이 삽입 모드로 전환됩니다.
'autowriteall'
옵션을 사용하거나 다른 매핑을 사용하여 파일을 저장할 수 있습니다.
" Use CTRL-S for saving, also in Insert mode
noremap <C-S> :update<CR>
vnoremap <C-S> <C-C>:update<CR>
inoremap <C-S> <C-O>:update<CR>
:update
명령은 :w
비슷하지만 파일이 수정 된 경우에만 기록 : 이들은 $VIMRUNTIME\mswin.vim
에 정의되어 있습니다.
또한