내 코드
내 vimrc 파일에서 새 탭을 만들기 위해 키 매핑을 추가했습니다.
map 1 :tabnew<CR>
문제
그러나 1
vim을 누르면 `변수를 문자열 리터럴로 인쇄합니다. 키 매핑 된 콜론 명령을 실행하려면 리턴 키를 눌러야합니다.
:tabnew<CR>
추가 정보
PuTTY를 사용하여 Debian 서버에 연결하고 있습니다.
도와 주셔서 감사합니다.
어떤 이유로 Vim을 호환 모드로 실행하고 있으며, 만약 있다면 ~/.vimrc
자동으로 호환되지 않는 모드 로 들어가야합니다. 이유가 무엇이든 다음을 추가하여 재정의하는 것이 좋습니다 ~/.vimrc
.
:set nocompatible
The problem is that in compatible mode, many of Vim's extended feature set is disabled, including recognizing <...> notation in mappings as special key codes.
If doing :set nocompatible
doesn't work, try manually setting 'cpoptions' to the Vim non-compatible default:
:set cpoptions=aABceFs
See:
:help 'compatible'
:help 'cpoptions'
(The single quotes are part of the command.)
Edit: From the discussion in comments it appears your Vim install is broken and the system vim.vim ftplugin is overriding the 'compatible' or 'cpoptions' settings. Upgrading from 7.2 to 7.3 may help.
이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.
침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제
몇 마디 만하겠습니다