|
| 1 | +set nocompatible " be iMproved, required |
| 2 | +filetype off " required |
| 3 | + |
| 4 | +" set the runtime path to include Vundle and initialize |
| 5 | +set rtp+=~/.vim/bundle/Vundle.vim |
| 6 | +call vundle#begin() |
| 7 | +" alternatively, pass a path where Vundle should install plugins |
| 8 | +"call vundle#begin('~/some/path/here') |
| 9 | + |
| 10 | +" let Vundle manage Vundle, required |
| 11 | +Plugin 'VundleVim/Vundle.vim' |
| 12 | + |
| 13 | +" The following are examples of different formats supported. |
| 14 | +" Keep Plugin commands between vundle#begin/end. |
| 15 | +" plugin on GitHub repo |
| 16 | +Plugin 'tpope/vim-fugitive' |
| 17 | +" plugin from http://vim-scripts.org/vim/scripts.html |
| 18 | +" Plugin 'L9' |
| 19 | +" Git plugin not hosted on GitHub |
| 20 | +Plugin 'git://git.wincent.com/command-t.git' |
| 21 | +" git repos on your local machine (i.e. when working on your own plugin) |
| 22 | +" The sparkup vim script is in a subdirectory of this repo called vim. |
| 23 | +" Pass the path to set the runtimepath properly. |
| 24 | +Plugin 'rstacruz/sparkup', {'rtp': 'vim/'} |
| 25 | +" Install L9 and avoid a Naming conflict if you've already installed a |
| 26 | +" different version somewhere else. |
| 27 | +" Plugin 'ascenator/L9', {'name': 'newL9'} |
| 28 | + |
| 29 | + Plugin 'git://github.com/scrooloose/nerdtree.git' |
| 30 | + autocmd vimenter * NERDTree |
| 31 | +" Plugin 'scrooloose/nerdtree' |
| 32 | +map <C-n> :NERDTreeToggle<CR> |
| 33 | +autocmd StdinReadPre * let s:std_in=1 |
| 34 | +autocmd VimEnter * if argc() == 1 && isdirectory(argv()[0]) && !exists("s:std_in") | exe 'NERDTree' argv()[0] | wincmd p | ene | endif |
| 35 | +autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif |
| 36 | +let g:NERDTreeDirArrowExpandable = '▸' |
| 37 | +let g:NERDTreeDirArrowCollapsible = '▾' |
| 38 | + |
| 39 | +" All of your Plugins must be added before the following line |
| 40 | +call vundle#end() " required |
| 41 | +filetype plugin indent on " required |
| 42 | +" To ignore plugin indent changes, instead use: |
| 43 | +"filetype plugin on |
| 44 | +" |
| 45 | +" Brief help |
| 46 | +" :PluginList - lists configured plugins |
| 47 | +" :PluginInstall - installs plugins; append `!` to update or just :PluginUpdate |
| 48 | +" :PluginSearch foo - searches for foo; append `!` to refresh local cache |
| 49 | +" :PluginClean - confirms removal of unused plugins; append `!` to auto-approve removal |
| 50 | +" |
| 51 | +" see :h vundle for more details or wiki for FAQ |
| 52 | +" Put your non-Plugin stuff after this line |
| 53 | + |
| 54 | + |
| 55 | +set hlsearch |
| 56 | +set cursorline |
| 57 | +set number |
| 58 | +set relativenumber |
| 59 | +syntax on |
0 commit comments