forked from lotusnowshen/vim
-
Notifications
You must be signed in to change notification settings - Fork 0
/
vimrc
60 lines (47 loc) · 1.26 KB
/
vimrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
set number
set helplang=cn
set ai
set bs=2
set showmatch
set autoread
set autoindent
syntax on
set smartindent
"tab
set tabstop=4
set expandtab
set shiftwidth=4
" line
set cursorline
set hls
set nocompatible " be iMproved, required
set encoding=utf-8
:set pastetoggle=<F1>
filetype plugin indent on " required
autocmd BufRead,BufNewFile *.html.erb setlocal filetype=eruby
set rtp+=~/.vim/bundle/vundle/
call vundle#rc()
Bundle 'gmarik/vundle'
Bundle 'tpope/vim-rails.git'
Bundle '[email protected]:scrooloose/nerdtree.git'
Bundle '[email protected]:Raimondi/delimitMate.git'
Bundle 'hallison/vim-markdown'
Bundle '[email protected]:kien/ctrlp.vim.git'
Bundle 'msanders/snipmate.vim'
Bundle 'Lokaltog/vim-powerline'
" Powerline
set guifont=PowerlineSymbols\ for\ Powerline
set nocompatible
set laststatus=2
set t_Co=256
let g:Powerline_symbols = 'fancy'
let Powerline_symbols='compatible'
" NEADTree
autocmd vimenter * if !argc() | NERDTree | endif
map <C-n> :NERDTreeToggle<CR>
autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTreeType") && b:NERDTreeType == "primary") | q | endif
" CtrlP
let g:ctrlp_map = '<c-p>'
let g:ctrlp_cmd = 'CtrlP'
set wildignore+=*/tmp/*,*.so,*.swp,*.zip " MacOSX/Linux
let g:ctrlp_custom_ignore = '\v[\/]\.(git|hg|svn)$'