-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.vimrc
93 lines (77 loc) · 1.85 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
set nocompatible
filetype off
syntax on
set rtp+=~/.vim/bundle/vundle/
call vundle#rc()
" let Vundle manage Vundle
" required!
Bundle 'gmarik/vundle'
Bundle 'Lokaltog/powerline', {'rtp': 'powerline/bindings/vim/'}
Bundle 'scrooloose/nerdtree'
" Bundle 'klen/python-mode'
Bundle 'jnurmine/Zenburn'
Bundle 'scrooloose/syntastic'
Bundle 'kien/ctrlp.vim'
Bundle 'gabrielelana/vim-markdown'
Bundle 'davidhalter/jedi-vim'
filetype plugin indent on
" Powerline setup
set guifont=DejaVu\ Sans\ Mono\ for\ Powerline\ 9
set laststatus=2
map <F2> :NERDTreeToggle<CR>
" Python-mode setup
" let g:pymode_rope = 1
"
" let g:pymode_doc = 1
" let g:pymode_doc_key = 'K'
"
" let g:pymode_lint = 1
" let g:pymode_lint_checker = "pyflakes,pep8"
"
" let g:pymode_lint_write = 1
"
" let g:pymode_virtualenv = 1
"
" let g:pymode_breakpoint = 1
" let g:pymode_breakpoint_bind = '<leader>b'
"
" let g:pymode_syntax = 1
" let g:pymode_syntax_all = 1
" let g:pymode_syntax_indent_errors = g:pymode_syntax_all
" let g:pymode_syntax_space_errors = g:pymode_syntax_all
"
" let g:pymode_folding = 0
set autochdir
set tabstop=4
set shiftwidth=4
set expandtab
set t_Co=256
colors zenburn
set number
" Ctrl-P
nmap ; :CtrlPBuffer<CR>
" Syntastic
set statusline+=%#warningmsg#
set statusline+=%{SyntasticStatuslineFlag()}
set statusline+=%*
let g:syntastic_always_populate_loc_list = 1
let g:syntastic_auto_loc_list = 1
let g:syntastic_check_on_open = 1
let g:syntastic_check_on_wq = 0
" Taken from: https://robots.thoughtbot.com/vim-splits-move-faster-and-more-naturally
" * Ctrl+j/k lets you navigate the splits
nmap <C-J> <C-W><C-J>
nmap <C-K> <C-W><C-K>
nmap <C-L> <C-W><C-L>
nmap <C-H> <C-W><C-H>
" * Split is right and below
set splitbelow
set splitright
" Taken from: http://statico.github.io/vim.html
nmap j gj
nmap k gk
set incsearch
set ignorecase
set smartcase
set hlsearch
nmap \q :nohlsearch<CR>