-
Notifications
You must be signed in to change notification settings - Fork 1
/
.vimrc
85 lines (65 loc) · 2.13 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
set nocompatible " required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')
" let Vundle manage Vundle, required
Plugin 'gmarik/Vundle.vim'
" Add all your plugins here (note older versions of Vundle used Bundle instead of Plugin)
Plugin 'tmhedberg/SimpylFold'
Plugin 'vim-scripts/indentpython.vim'
Plugin 'Bundle'
Plugin 'scrooloose/syntastic'
Plugin 'nvie/vim-flake8'
Plugin 'tpope/vim-fugitive'
Plugin 'francoiscabrol/ranger.vim'
Plugin 'Valloric/YouCompleteMe'
Plugin 'saltstack/salt-vim'
Plugin 'PProvost/vim-ps1'
" All of your Plugins must be added before the following line
call vundle#end() " required
filetype plugin indent on " required
" tabbing
set tabstop=8 softtabstop=0 expandtab shiftwidth=4 smarttab
" search
set hlsearch " highlight search
set ignorecase " case-insensitive matching w/ search
set incsearch " incremental highlighting in search
set smartcase " case-sensitive w/ capital letter
let g:ackprg = 'ag --nogroup --nocolor --column'
" ranger
let g:ranger_command_override = 'ranger --cmd "set show_hidden=true"'
" flake8
let g:flake8_show_in_gutter = 1
"split navigations
nnoremap <C-J> <C-W><C-J>
nnoremap <C-K> <C-W><C-K>
nnoremap <C-L> <C-W><C-L>
nnoremap <C-H> <C-W><C-H>
" Enable folding
set foldmethod=indent
set foldlevel=120
" Enable folding with the spacebar
nnoremap <space> za
" Flagging Unnecessary Whitespace
au BufRead,BufNewFile *.py,*.pyw,*.c,*.h match BadWhitespace /\s\+$/
set encoding=utf-8
" Spellcheck
set spell spelllang=en_us
" python syntax highlighting
let python_highlight_all=1
syntax on
" Line Numbering
set nu
set clipboard=unnamed
let g:ycm_autoclose_preview_window_after_completion=1
let g:ycm_show_diagnostics_ui=0
map <leader>g :YcmCompleter GoToDefinitionElseDeclaration<CR>
" More powerful backspace
:set backspace=indent,eol,start
" Enable Solorized Theme
set background=dark
" Aliases kinda
:command PretyJson execute '%!python -m json.tool' | w