-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.vimrc
103 lines (81 loc) · 2.16 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
94
95
96
97
98
99
100
101
102
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 'hashivim/vim-terraform'
Plugin 'Valloric/YouCompleteMe'
Plugin 'vim-syntastic/syntastic'
Plugin 'nvie/vim-flake8'
Plugin 'scrooloose/nerdtree'
Plugin 'jistr/vim-nerdtree-tabs'
Plugin 'Lokaltog/powerline', {'rtp': 'powerline/bindings/vim/'}
Plugin 'ekalinin/Dockerfile.vim'
" All of your Plugins must be added before the following line
call vundle#end() " required
filetype plugin indent on " required
" General
set encoding=utf-8
set number
set tabstop=4
set softtabstop=4
set shiftwidth=4
set expandtab
set autoindent
set fileformat=unix
colorscheme default
syntax on
" Split position
set splitbelow
set splitright
" Split navigation
"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>
" Move in insert mode
"inoremap <C-H> <Left>
"inoremap <C-J> <Down>
"inoremap <C-K> <Up>
"inoremap <C-L> <Right>
" Enable folding
set foldmethod=indent
set foldlevel=99
" Python coding style (PEP8)
au BufNewFile,BufRead *.py
\ set tabstop=4 |
\ set softtabstop=4 |
\ set shiftwidth=4 |
\ set textwidth=119 |
\ set expandtab |
\ set autoindent |
\ set fileformat=unix
au BufNewFile,BufRead *.html
\ set tabstop=2 |
\ set softtabstop=2 |
\ set shiftwidth=2 |
\ set expandtab |
\ set autoindent |
\ set fileformat=unix
" YouCompleteMe
let g:ycm_autoclose_preview_window_after_completion=1
" Syntax plugins
let python_highlight_all=1
" NERDTree
map <C-@> :NERDTreeTabsToggle <CR>
let NERDTreeIgnore=['\.pyc$', '\~$'] " Ignore .pyc files
" Powerline
set laststatus=2
set t_Co=256
" Per mode cursor shape
let &t_SI = "\<esc>[5 q"
let &t_SR = "\<esc>[5 q"
let &t_EI = "\<esc>[2 q"
" Visual mode color
highlight Visual cterm=none ctermfg=none ctermbg=239