-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathvimrc
89 lines (74 loc) · 2.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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
set nocompatible " be iMproved, required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" let Vundle manage Vundle, required
Plugin 'VundleVim/Vundle.vim'
Plugin 'easymotion/vim-easymotion'
Plugin 'scrooloose/nerdtree'
Plugin 'altercation/vim-colors-solarized'
Plugin 'vim-airline/vim-airline'
Plugin 'vim-airline/vim-airline-themes'
Plugin 'cdmedia/itg_flat_vim'
Plugin 'bling/vim-bufferline'
if has('nvim')
Plugin 'w0rp/ale'
else
Plugin 'scrooloose/syntastic'
endif
"Plugin 'Valloric/YouCompleteMe'
" All of your Plugins must be added before the following line
call vundle#end() " required
filetype plugin indent on " required
" Colors
if $TERM == "xterm-256color" || $TERM == "screen-256color" || $COLORTERM == "gnome-terminal"
set t_Co=256
endif
syntax on
"colorscheme itg_flat
set wildmenu " graphical autocomplete
let g:airline_theme='zenburn'
set number " add line numbers
set ruler
set cursorline " add highlighter of what line on
set visualbell
set showcmd " show partial command in status line
set showmatch " show matching brackets
set ignorecase " do case insensitive matching
" make TAB = 4 spaces
set tabstop=4
set shiftwidth=4
set softtabstop=4
set expandtab " convert tab to spaces
set backspace=indent,eol,start
set autoindent
set laststatus=2
set incsearch " search as characters are entered
set hlsearch " highlight matches
map <C-w>< <C-w>5<
map <C-w>> <C-w>5>
" Easymotion settings
" by default <Leader> is \
" by default <plug>EasyMotion is <Leader><Leader>
map <Leader> <Plug>(easymotion-prefix)
map f <Plug>(easymotion-prefix)
" Syntastic
"set statusline+=%#warningmsg#
"set statusline+=%{SyntasticStatusLineFlag()}
"set statusline+=%*
"let g:syntastic_python_checkers=['pyflakes', 'pep8', 'pylint', 'python']
"let g:syntastic_python_checkers=['pep8', 'pylint', 'python']
"let g:syntastic_always_populate_loc_list = 1
"let g:syntastic_auto_loc_list = 1
"let g:syntastic_check_on_wq = 0
"let g:syntastic_check_on_open = 0
let g:ale_linters = {'python': ['pylint']}
" Automatically strip trailing whitespace
autocmd BufWritePre *.py %s/\s\+$//e
" Easy buffer switching
:nnoremap ; :buffers<CR>:buffer!<Space>
:nnoremap <TAB> :b!<Space>
" Navigate between Ale errors and warnings
nmap <silent> <C-k> <Plug>(ale_previous_wrap)
nmap <silent> <C-j> <Plug>(ale_next_wrap)