forked from iley/vim-quickstart
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvimrc
68 lines (54 loc) · 1.49 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
60
61
62
63
64
65
66
67
68
set nocompatible " be iMproved
filetype off " required!
set rtp+=~/.vim/bundle/vundle/
call vundle#rc()
" let Vundle manage Vundle
" required!
Bundle 'gmarik/vundle'
" My Bundles here:
Bundle 'tpope/vim-sensible'
Bundle 'altercation/vim-colors-solarized'
Bundle 'vim-airline/vim-airline'
Bundle 'vim-airline/vim-airline-themes'
Bundle 'scrooloose/nerdtree'
Bundle 'tpope/vim-fugitive'
Bundle 'elzr/vim-json'
Bundle 'saltstack/salt-vim'
Bundle 'klen/python-mode'
filetype plugin indent on " required!
" show line numbers
set number
" use spaces instead of tabs
set expandtab
" tab width
set tabstop=4
set shiftwidth=2
" use more colorslet g:Powerline_symbols = 'fancy'
set t_Co=256
let g:airline_powerline_fonts = 1
let g:airline#extensions#tabline#enabled = 1
let g:airline_theme = 'powerlineish'
function! HasColorscheme(name)
let pat = 'colors/'.a:name.'.vim'
return !empty(globpath(&rtp, pat))
endfunction
if HasColorscheme("solarized")
let g:solarized_termcolors=256
set background=dark
colorscheme solarized
endif
if exists('+undodir')
set undodir=~/.vim/undo
endif
set backupdir=~/.vim/backup
set directory=~/.vim/swap
autocmd StdinReadPre * let s:std_in=1
"autostart for NERDtree. Uncomment if need.
"autocmd VimEnter * if argc() == 0 && !exists("s:std_in") | NERDTree | endif
map <C-n> :NERDTreeToggle<CR>
"Python
let g:pymode_virtualenv = 1
let g:pymode_folding = 0
let g:pymode_doc = 0
let g:pymode_doc_key = 'K'
autocmd CompleteDone * pclose