-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.vimrc
More file actions
125 lines (95 loc) · 2.79 KB
/
.vimrc
File metadata and controls
125 lines (95 loc) · 2.79 KB
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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
set nocompatible
filetype off
if has("gui_running")
call plug#begin('~/.vim/plugged')
Plug 'powerline/powerline', {'rtp': 'powerline/bindings/vim/'}
Plug 'scrooloose/nerdtree'
Plug 'scrooloose/syntastic'
Plug 'tpope/vim-fugitive'
Plug 'airblade/vim-gitgutter'
Plug 'kien/ctrlp.vim'
Plug 'xolox/vim-misc'
Plug 'othree/html5.vim'
Plug 'derekwyatt/vim-scala'
Plug 'jdevera/vim-protobuf-syntax'
Plug 'kchmck/vim-coffee-script'
Plug 'nathanaelkane/vim-indent-guides'
Plug 'hynek/vim-python-pep8-indent'
Plug 'saltstack/salt-vim'
Plug 'elixir-lang/vim-elixir'
Plug 'pangloss/vim-javascript'
Plug 'mxw/vim-jsx'
Plug 'gosukiwi/vim-atom-dark'
Plug 'udalov/kotlin-vim'
call plug#end()
colorscheme atom-dark
endif
syntax on
filetype plugin indent on
set encoding=utf-8
set autoindent
set cindent
set expandtab
set shiftwidth=2
set softtabstop=2
set tw=0
set nowrap
set nofoldenable
set ic
set scs
set number
set cursorline
set colorcolumn=100
set wildmode=longest,list
set wildmenu
set path=.
set autoread
set wildignore+=*.pyc,*/node_modules/*,.git/*
set splitright
set splitbelow
set guioptions=ai
set mouse=a
au FileType python setlocal shiftwidth=4 softtabstop=4
au FileType kotlin setlocal shiftwidth=4 softtabstop=4
let g:pyindent_open_paren = '&sw * 2'
au BufRead,BufNewFile *.mak setlocal textwidth=0
au BufRead,BufNewFile *.mak setlocal nowrap
au BufRead,BufNewFile *.mak set filetype=mako
au BufRead,BufNewFile *.flex,*.lex set filetype=lex
au BufRead,BufNewFile *.scss set filetype=scss
au Syntax mako so ~/.vim/syntax/mako.vim
au Syntax lex so ~/.vim/syntax/lex.vim
if has("gui_running")
set vb
if has("gui_gtk2")
set guifont=Inconsolata\ 12
elseif has("gui_win32")
set guifont=Consolas:h11:cANSI
map <F11> <Esc>:call libcallnr("gvimfullscreen.dll", "ToggleFullScreen", 0)<CR>
else
set guifont=Inconsolata\ for\ Powerline:h16
map <A-Tab> <C-W>w
endif
endif
" FIX: PluginUpdate => git pull: git-sh-setup: No such file or directory in MacVim (OK in non-GUI version of Vim)
if has("gui_macvim")
set shell=/bin/bash\ -l
endif
let g:jsx_ext_required = 0
let g:syntastic_mode_map = { 'mode': 'active',
\ 'active_filetypes': [],
\ 'passive_filetypes': ['html'] }
let g:syntastic_python_checkers = ['flake8']
let g:syntastic_echo_current_error=1
let g:syntastic_stl_format = '[%E{Err: %fe #%e}%B{, }%W{Warn: %fw #%w}]'
let g:syntastic_python_flake8_post_args="--ignore=E501"
let g:syntastic_stl_format = '[%E{Err: %fe #%e}%B{, }%W{Warn: %fw #%w}]'
let g:syntastic_javascript_checkers = ['eslint']
let g:easytags_auto_highlight = 0
let g:easytags_async = 1
set completeopt=menuone
set laststatus=2
set t_Co=256
map <C-n> :NERDTreeToggle<CR>
let NERDTreeIgnore = ['\.pyc$']
set rtp+=~/.vim/bundle/ctrlp.vim