Study/팁

[Vim] Plugin 설치 및 default 환경설정

ABCD 2023. 4. 11.

Vundle 설치 방법

  • 우선 아래 주소를 clone하여 vundel을 설치해준다.
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim

 

 

  • 설치 후 .vimrc를 만들어 주어야 한다.
vi ~/.vimrc
  • 만들어진 .vimrc에 아래 문장을 입력
set nocompatible              " be iMproved, required
filetype off                  " required

set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()

" let Vundle manage Vundle, required

Plugin 'gmarik/Vundle.vim'

call vundle#end()            " required
filetype plugin indent on    " required
" To ignore plugin indent changes, instead use:
"filetype plugin on
"
" Brief help
" :PluginList       - lists configured plugins
" :PluginInstall    - installs plugins; append `!` to update or just :PluginUpdate
" :PluginSearch foo - searches for foo; append `!` to refresh local cache
" :PluginClean      - confirms removal of unused plugins; append `!` to auto-approve removal
"
" see :h vundle for more details or wiki for FAQ
" Put your non-Plugin stuff after this line
  • call vundle#begin()과 call vundle#end() 사이에 설치할 플러그인을 작성해주면 된다.
  • 주석처리되어 있는 Brief help로 vundle사용법을 확인 할 수 있다.
  • set을 사용하여 default값으로 세팅을 할 수도 있다.

 

My ~/.vimrc

set nocompatible              
filetype off                  

set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()

Plugin 'gmarik/Vundle.vim'
Plugin 'nanotech/jellybeans.vim'
Plugin 'altercation/vim-colors-solarized'
Plugin 'jnurmine/Zenburn'
Plugin 'tpope/vim-fugitive'

call vundle#end()

set ruler
set nu
set expandtab
set tabstop=2
syntax on
  • 기본 플러그인 매니저
    • Plugin 'gmarik/Vundle.vim'
  • 컬러 스키마
    • Plugin 'nanotech/jellybeans.vim'
    • Plugin 'altercation/vim-colors-solarized'
    • Plugin 'jnurmine/Zenburn'
  • Vim에서 git 명령어 사용 할 수 있게 만들어줌
    • Plugin 'tpope/vim-fugitive'
728x90
반응형

댓글

💲 추천 글