-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vimrc
92 lines (72 loc) · 1.88 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
execute pathogen#infect()
syntax on
filetype plugin indent on
filetype plugin on
set foldmethod=indent
set foldlevel=99
set number
" Real programmers don't use TABs but spaces
set tabstop=4
set softtabstop=4
set shiftwidth=4
set shiftround
set expandtab
" Case insensetive search
set hlsearch
set incsearch
set ignorecase
set smartcase
" Don't create swap files
set nobackup
set nowritebackup
set noswapfile
" Useful settings
set history=700
set undolevels=700
set mouse=a
set cursorline
set laststatus=2
set encoding=utf-8
let g:Powerline_symbols = 'fancy'
set t_Co=256
color wombat256mod
let mapleader = "," "custom mapleader
"" Use ctrl-[hjkl] to select the active split!
nmap <silent> <leader>k :wincmd k<CR>
nmap <silent> <leader>j :wincmd j<CR>
nmap <silent> <leader>h :wincmd h<CR>
nmap <silent> <leader>l :wincmd l<CR>
nmap <silent> <leader>cw :close<CR>
map <silent> <c-j> :tabprevious<CR>
map <silent> <c-k> :tabnext<CR>
" System clipboard
set clipboard=unnamedplus
" NerdTree settings
map <C-n> :NERDTreeToggle<CR>
let NERDTreeIgnore = ['\.pyc$']
" 80
set colorcolumn=80
highlight ColorColumn ctermbg=233
if has('python')
py << EOF
import os.path
import sys
import vim
if 'VIRTUAL_ENV' in os.environ:
project_base_dir = os.environ['VIRTUAL_ENV']
sys.path.insert(0, project_base_dir)
activate_this = os.path.join(project_base_dir, 'bin/activate_this.py')
execfile(activate_this, dict(__file__=activate_this))
EOF
endif
nnoremap <F6> :GundoToggle<CR>
let g:syntastic_python_checkers=['flake8']
let g:syntastic_check_on_open=1
let g:syntastic_mode_map = { 'mode': 'active',
\ 'active_filetypes': ['python'],
\ 'passive_filetypes': [] }
let g:syntastic_enable_signs=1
let g:syntastic_error_symbol='✗'
let g:syntastic_warning_symbol='⚠'
let g:syntastic_style_error_symbol='✗'
let g:syntastic_style_warning_symbol='⚠'