다른 모든 키 바인딩이 올바르게 작동하지만 jj
을 어떤 이유로 이스케이프하도록 바인딩 할 수 없습니다. Mashing jk
또는 kj
도 작동하지 않습니다. 여기 내 전체의 .vimrc입니다 : 기록을 위해vim : 재발행하는 데 어려움이 있습니다. jj에 대한 이스케이프
"Maps for jj to act as Esc
inoremap jk <Esc>
inoremap kj <Esc>
"inoremap jj <Esc>
ino jj <Esc>
cno jj <C-c>
set number
set nocompatible
set paste
"fix cygwin backspace problem
set backspace=indent,eol,start
fixdel
set autoindent
set smartindent
set tabstop=4
set shiftwidth=4
"use spaces instead of \t
"set expandtab
set nowrap
syntax on
highlight ExtraWhitespace ctermbg=darkgreen guibg=lightgreen
autocmd Syntax * syn match ExtraWhitespace /\s\+$\| \+\ze\t/
"remove trailing whitespace
"http://vim.wikia.com/wiki/Remove_unwanted_spaces#Automatically_removing_all_trailing_whitespace
"autocmd BufWritePre * :%s/\s\+$//e
autocmd BufWritePre *.c :%s/\s\+$//e
autocmd BufWritePre *.cpp :%s/\s\+$//e
autocmd BufWritePre *.c++ :%s/\s\+$//e
autocmd BufWritePre *.h :%s/\s\+$//e
autocmd BufWritePre *.java :%s/\s\+$//e
autocmd BufWritePre *.php :%s/\s\+$//e
autocmd BufWritePre *.pl :%s/\s\+$//e
autocmd BufWritePre *.py :%s/\s\+$//e
"autocmd FileType c,cpp,c++,java,php,pl,py autocmd BufWritePre <buffer> :call setline(1,map(getline(1,"$"),'substitute(v:val,
"search options
set incsearch
set ignorecase
set showmatch
nmap <space> zz
nmap n nzz
nmap N Nzz
"set arrow keys to move between buffer/tabs
inoremap <Up> :bprev<CR>
inoremap <Down> :bnext<CR>
inoremap <Left> :tabprev<CR>
inoremap <Right> :tabnext<CR>
noremap <Up> :bprev<CR>
noremap <Down> :bnext<CR>
noremap <Left> :tabprev<CR>
noremap <Right> :tabnext<CR>
set vb t_vb=
set guioptions-=T
"set foldmethod=indent
set showtabline=2
"au BufWinLeave * mkview
"au BufWinEnter * silent loadview
, timeoutlen 1000 MS의 기본값으로 설정되어 있습니다.
"붙여 넣기 설정"이 작동합니다. 당신이 다른 행동을 기대하고 있는지 궁금합니다. 붙여 넣기를 방해하는 "똑똑한"모든 것을 끄기 만합니다 (키 매크로, 자동 들여 쓰기 등). 붙여 넣기 전에 다시 켭니다. – geekosaur
명령 모드에서'set paste'를 사용할 때 작동하지만 .vimrc에서는 작동하지 않습니다. X에서 올리면 서식이 엉망입니다. 'set paste'를 사용하면 부작용이 생기므로''+ p'' 또는''* p''를 대신 사용하려고합니다. – wting
음, 예; 너는 그걸두고 가려고하지 않는다. 내 요점이다. 그래서'~/.vimrc'를 쓰는 것은 무시됩니다. – geekosaur