
우분투 상자에 vundle을 설치했지만 vim을 로드하면 플러그인이 로드되지 않습니다. 내 vimrc:
runtime! debian.vim
set nocompatible " be iMproved, required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
"set rtp+=~/.vim/bundle
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')
" let Vundle manage Vundle, required
Plugin 'gmarik/Vundle.vim'
Plugin 'reedes/vim-thematic'
Plugin 'bling/vim-airline'
" >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>All of your Plugins must be added before the following line
call vundle#end() " required
filetype plugin indent on " required
" To ignore plugin indent changes, instead use:
"filetype plugin on
"
" Brief help
" :PluginList - list configured plugins
" :PluginInstall(!) - install (update) plugins
" :PluginSearch(!) foo - search (or refresh cache first) for foo
" :PluginClean(!) - confirm (or auto-approve) removal of unused plugins
"
" see :h vundle for more details or wiki for FAQ
" Put your non-Plugin stuff after this line
" """""""""""""""""""""""""""""""""""""ORIGINAL STUFF BELOW"""""""
" All system-wide defaults are set in $VIMRUNTIME/debian.vim and sourced by
" the call to :runtime you can find below. If you wish to change any of those
" settings, you should do it in this file (/etc/vim/vimrc), since debian.vim
" will be overwritten everytime an upgrade of the vim packages is performed.
" It is recommended to make changes after sourcing debian.vim since it alters
" the value of the 'compatible' option.
" This line should not be removed as it ensures that various options are
" properly set to work with the Vim-related packages available in Debian.
" runtime! debian.vim
" Uncomment the next line to make Vim more Vi-compatible
" NOTE: debian.vim sets 'nocompatible'. Setting 'compatible' changes numerous
" options, so any other options should be set AFTER setting 'compatible'.
"set compatible
" Vim5 and later versions support syntax highlighting. Uncommenting the next
" line enables syntax highlighting by default.
"if has("syntax")
syntax on
set number
set ruler
"endif
" If using a dark background within the editing area and syntax highlighting
" turn on this option as well
"set background=dark
" Uncomment the following to have Vim jump to the last position when
" reopening a file
"if has("autocmd")
" au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif
"endif
" Uncomment the following to have Vim load indentation rules and plugins
" according to the detected filetype.
"if has("autocmd")
" filetype plugin indent on
"endif
" The following are commented out as they cause vim to behave a lot
" differently from regular Vi. They are highly recommended though.
"set showcmd " Show (partial) command in status line.
"set showmatch " Show matching brackets.
"set ignorecase " Do case insensitive matching
"set smartcase " Do smart case matching
"set incsearch " Incremental search
"set autowrite " Automatically save before commands like :next and :make
"set hidden " Hide buffers when they are abandoned
"set mouse=a " Enable mouse usage (all modes)
" Source a global configuration file if available
if filereadable("/etc/vim/vimrc.local")
source /etc/vim/vimrc.local
endif
:PluginList 출력...
" My Plugins
Plugin 'gmarik/Vundle.vim'
Plugin 'reedes/vim-thematic'
Plugin 'bling/vim-airline'
다른 설정은 변경하지 않았습니다. Vim 플러그인을 사용하는 것은 이번이 처음입니다.
답변1
절대로 아무것도 하지 마세요.
/etc/vim
Vim은 엄격한 로딩 순서를 따르기 때문에 기본 파일과 디렉터리를 조작하면 Vim이 불안정해집니다. 당신이 할 수 있는 일 중 일부는 효과가 있을 수도 있고, 다른 것들은 그렇지 않을 수도 있습니다. 그것은 오직 당신과 당신의 행운입니다.
후속 업그레이드는 변경 사항의 일부 또는 전부를 덮어쓰게 되어 의미가 없게 되기 때문입니다.
관례이기 때문에그리고좋은 연습모든운영 체제 — 그리고 음... 실생활에서도 — 할 일당신의구성당신의
$HOME
.
~/.vim/
당신은 자신 을 창조해야합니다~/.vimrc
.Vim은 잘 작동하기 때문에 Vim은 그렇게 하지 않습니다.아무것설치 시
$HOME
. 그것은당신의사용자 정의에 필요한 파일 및 디렉토리를 생성하는 책임:$ cd $ mkdir .vim $ touch .vimrc
~/.vim
이 시점에서는 빈 디렉터리와 빈 파일이 있어야 합니다~/.vimrc
. 이미~/.vim/
디렉터리가 있는 것 같으니 해당 단계를 건너뛰셔도 됩니다./etc/vim
원래 상태로 되돌립니다 .에 추가한 내용을 모두 제거하세요
/etc/vim
. 확실하지 않은 경우 vim-gnome 또는 vim-gtk 패키지를 제거하고 다시 설치하면 도움이 될 것입니다.에서 모든 구성을 다시 실행하세요
$HOME
.Vundle을 계속 사용하려는 경우 다음과
~/.vimrc
같은 모습이어야 합니다.filetype off set rtp+=~/.vim/bundle/Vundle.vim call vundle#begin() Plugin 'gmarik/Vundle.vim' Plugin 'reedes/vim-thematic' Plugin 'bling/vim-airline' call vundle#end() filetype plugin indent on
실제로 플러그인을 설치하십시오.
~/.vimrc
디스크에 쓰고 다음을 사용하여 Vim을 종료합니다.:wq
다음 명령을 실행하십시오.
$ vim +PluginInstall
새로운 Vim 사용자로서, 특히 UNIX 명령에 대한 충분한 지식이 없는 경우, 유사하게 무의미한 플러그인 관리자를 사용하여 설치하려는 무의미한 플러그인을 만지작거리는 것보다 시간과 두뇌 세포를 더 생산적으로 소비하는 방법을 찾아야 합니다. -선. 다음은 대략적인 제안 목록입니다.
- 명령줄과 일반적인 UNIX 방식에 더 익숙해지고,
$ vimtutor
적어도 몇 번은 따라해 보세요 .:help
여러분이 배우게 될 Vim 명령 중 가장 유용한 명령이므로 처음 30줄 정도를 읽고 메모리에 저장하세요.- 적어도 .
:help usr_01.txt
:help usr_08.txt
모든 것에 더 익숙해질 때까지는 Vim 자체에 집중할 수 있도록 플러그인(및 불필요한 플러그인 관리자)을 멀리하는 것이 좋습니다.