2011-10-03 4 views
2

은 우분투의 vim plugin 디렉토리입니다. (당신이 번들 플러그인을 사용하지 않는 고려) 폴더에 대한 가능한 위치에 대한 자세한 설명을위한 Arrow keys type capital letters instead of moving the cursorVIM 우분투 시스템 와이드 플러그인 디렉토리

+1

'~/.vim/bundle/autoclose' 또는'~/.vim/plugin/autoclose.vim'을 확인하십시오. –

+1

이것은 루트 사용자 용입니다. 내 디렉토리에 .vim 폴더가 없습니다. –

답변

6

확인 :h runtimepath : 나는 문제가 여기에 설명 된 해결하기 위해 플러그인 autoclose.vim을 제거해야합니다. 여기에 발췌가 있습니다 :

       *'runtimepath'* *'rtp'* *vimfiles* 
'runtimepath' 'rtp'  string (default: 
             Unix, Mac OS X: "$HOME/.vim, 
               $VIM/vimfiles, 
               $VIMRUNTIME, 
               $VIM/vimfiles/after, 
               $HOME/.vim/after" 
             ... 
         global 
         {not in Vi} 
     This is a list of directories which will be searched for runtime 
     files: 
      filetype.vim filetypes by file name |new-filetype| 
      scripts.vim filetypes by file contents |new-filetype-scripts| 
      autoload/  automatically loaded scripts |autoload-functions| 
      colors/  color scheme files |:colorscheme| 
      compiler/  compiler files |:compiler| 
      doc/   documentation |write-local-help| 
      ftplugin/  filetype plugins |write-filetype-plugin| 
      indent/  indent scripts |indent-expression| 
      keymap/  key mapping files |mbyte-keymap| 
      lang/   menu translations |:menutrans| 
      menu.vim  GUI menus |menu.vim| 
      plugin/  plugin scripts |write-plugin| 
      print/  files for printing |postscript-print-encoding| 
      spell/  spell checking files |spell| 
      syntax/  syntax files |mysyntaxfile| 
      tutor/  files for vimtutor |tutor| 

     And any other file searched for with the |:runtime| command. 

     The defaults for most systems are setup to search five locations: 
     1. In your home directory, for your personal preferences. 
     2. In a system-wide Vim directory, for preferences from the system 
      administrator. 
     3. In $VIMRUNTIME, for files distributed with Vim. 
                 *after-directory* 
     4. In the "after" directory in the system-wide Vim directory. This is 
      for the system administrator to overrule or add to the distributed 
      defaults (rarely needed) 
     5. In the "after" directory in your home directory. This is for 
      personal preferences to overrule or add to the distributed defaults 
      or system-wide settings (rarely needed). 

     ... 
0

에릭 코멘트를 따라야합니다.

--EDIT--

나는이 대답은 선택이 아니다 알고 있지만 내가 지금 여기 ZYX의 의견에 뭔가 덕분에 배운 :

내가 내 .vimrc 파일에서 이러한 라인을 가지고, 말했다 편집입니다. 나는 사람들의 많은 내가했던 똑같은 실수를 할 두려워

nnoremap <Esc>A <up> 
nnoremap <Esc>B <down> 
nnoremap <Esc>C <right> 
nnoremap <Esc>D <left> 
inoremap <Esc>A <up> 
inoremap <Esc>B <down> 
inoremap <Esc>C <right> 
inoremap <Esc>D <left> 

을 :

아래 라인은 다음과 같이 작성해야 원시 이스케이프 코드 솔루션은 사방에서 그물처럼 Vim 위키는 많은 포럼을 통해 SO에게 제공됩니다.

--end EDIT--

nnoremap <type ctrl+v then Esc to obtain a single char that looks like ^[>A <up> 
nnoremap <type ctrl+v then Esc to obtain a single char that looks like ^[>B <down> 
nnoremap <type ctrl+v then Esc to obtain a single char that looks like ^[>C <right> 
nnoremap <type ctrl+v then Esc to obtain a single char that looks like ^[>D <left> 
inoremap <type ctrl+v then Esc to obtain a single char that looks like ^[>A <up> 
inoremap <type ctrl+v then Esc to obtain a single char that looks like ^[>B <down> 
inoremap <type ctrl+v then Esc to obtain a single char that looks like ^[>C <right> 
inoremap <type ctrl+v then Esc to obtain a single char that looks like ^[>D <left> 

및 플러그인을 제거 할 필요가 없었다

.

:scriptnames 

이 정력이로드하는 각 스크립트의 전체 경로를 표시합니다 : 대신 'runtimepath'에 규칙을 읽는

+0

원시 명령 코드를 파일에 추가하지 마십시오. 이미 '<...>'표기법과^[»문자로 보이는 문자는 ''으로 표시됩니다. 놀랍지 않나요? 내가 ''과 같은 문제가 나타날 때마다 ' [A-D]'가 아니라 ' O [A-D]'를 출력했다. – ZyX

+0

무작위로 무작위 공개 토론을 팔로우 할 때 얻을 수있는 것입니다. 물론'^ ['는' '을 의미하지만, 나는 두 표기법이 다른 문맥에 의해 지시되는 것과는 다른 "무게"(더 나은 단어가 부족하여)를 사용한다고 믿었다. 정보를 제공해 주셔서 감사 드리며, 지금 바로 시도하겠습니다. .vimrc에서 raw 명령 코드를 유지해야하는 특별한 이유가 있습니까? 우리가 이미'<...>'을 가지고있는 완벽하게 훌륭한 이유 외에도 말입니다. – romainl

+0

약간의 h/l이 불편을 드러내는 것 외에 더 원시적 인 제어 코드가 많을수록 내 구성을 유지하는 수은이이 파일을 이진 파일로 사용하게되어 diff 파일이 표시되지 않습니다. 덧붙여,': TOhtml',': Format' 등으로 플러그인을 포맷하면,'^ ['(그리고 똑같이 복사됩니다)로 표시되거나 표시되지 않는 문자를 얻게됩니다. 직접 보지 마시고' '을 쓰는 대신''처럼 보이는 단일 문자를 얻으시겠습니까? – ZyX

0

, 나는 설치된 모든 스크립트의 목록을 쉽게 생각합니다. 몇 개만 있다면, 찾고있는 것을 발견 할 수 있습니다 (OP에 대해서는 autoclose.vim).

목록이 긴 경우, 다음의 a 레지스터 scriptnames의 출력 (또는 다른)를 캡처 빈 버퍼에 붙여 및 플러그인의 이름을 검색 할 수 있습니다

:redir @a 
:scriptnames 
:redir END 
:new 
:put a 
:/autoclose\.vim 
관련 문제