set nocompatible " be iMproved, required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
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'
" Keep Plugin commands between vundle#begin/end.
" plugin on GitHub repo
Plugin 'tpope/vim-fugitive'
" The sparkup vim script is in a subdirectory of this repo called vim.
" Pass the path to set the runtimepath properly.
Plugin 'rstacruz/sparkup', {'rtp': 'vim/'}
" The-NERD-Tree
Plugin 'The-NERD-Tree'
" vim-airline
Plugin 'vim-airline/vim-airline'
" syntastic
Plugin 'scrooloose/syntastic'
" Color Scheme
Plugin 'nanotech/jellybeans.vim'
" Tagbar
Plugin 'Tagbar'
" supertab
Plugin 'ervandew/supertab'
" vim-colorschemes
Plugin 'flazz/vim-colorschemes'
" multiple-cursors
Plugin 'terryma/vim-multiple-cursors'
" altercation/vim-colors-solarized
Plugin 'altercation/vim-colors-solarized'
" vim-surround
Plugin 'tpope/vim-surround'
" vim-gitgutter
Plugin 'airblade/vim-gitgutter'
" vim-easymotion
Plugin 'easymotion/vim-easymotion'
" vim-signature
Plugin 'kshenoy/vim-signature'
" nerdcommenter
Plugin 'scrooloose/nerdcommenter'
" 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 - 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
"
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
set nu
set et
"set paste " This impacts on <set autoindent>
set autoindent " This impacts on <set paste>
set nowrapscan
set title
set tenc=utf-8
set ts=2
set shiftwidth=2 " 자동 들여쓰기 너비 설정
set sts=2
set smarttab
set hlsearch
set incsearch
set ignorecase
" 마지막으로 수정된 곳에 커서를 위치함
au BufReadPost *
\ if line("'\"") > 0 && line("'\"") <= line("$") |
\ exe "norm g`\"" |
\ endif
" set statusline=\ %<%l:%v\ [%P]%=%a\ %h%m%r\ %F\
" set ruler " 현재 커서 위치 표시
" set autoread " 작업 중인 파일이 외부에서 변경되면 자동으로 불러옴
set history=256
syntax on
filetype plugin indent on
set showcmd
autocmd BufEnter * NERDTreeMirror
"Set F2 to put the cursor to the nerdtree
nmap <silent> <F2> :NERDTreeFind<CR>
" Set NoNumber
nmap <silent> <F5> :set nonumber<CR>
" Set Number
nmap <silent> <F6> :set nu<CR>
" NERDTreeToggle
nmap <silent> <F7> :NERDTreeToggle<CR>
" TagbarToggle
nmap <silent> <F8> :TagbarToggle<CR>
" Exit VIM
nmap <silent> <F12> :qa<CR>
syntax enable
set background=dark
colorscheme solarized
" Key Setting
let mapleader = ","
" NERD Commenter
" Add spaces after comment delimiters by default
let g:NERDSpaceDelims = 1
" Use compact syntax for prettified multi-line comments
let g:NERDCompactSexyComs = 1
" Align line-wise comment delimiters flush left instead of following code indentation
let g:NERDDefaultAlign = 'left'
" Allow commenting and inverting empty lines (useful when commenting a region)
let g:NERDCommentEmptyLines = 1
" Enable trimming of trailing whitespace when uncommenting
let g:NERDTrimTrailingWhitespace = 1
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
set tags=./tags,tags
set tags+=/usr/include/gstreamer-1.0/tags