-
Notifications
You must be signed in to change notification settings - Fork 1
/
.vimrc
executable file
·165 lines (125 loc) · 3.4 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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
"""""""""""""""""""""""""""""""""""""""
" Maintainer:
" Yves Hoppe
"
" Version:
" 2.0.1 - 2019/02/03
"
"""""""""""""""""""""""""""""""""""""""
"""""""""""""""""""""""""""""""""""""""
" -> General
"""""""""""""""""""""""""""""""""""""""
" Enable filetype plugins
filetype plugin on
filetype indent on
set number
set display+=lastline
" Set to auto read when a file is changed from the outside
set autoread
" Sets how many lines of history VIM has to remember
set history=2000
" Set 7 lines to the cursor - when moving vertically using j/k
set so=7
" Height of the command bar
set cmdheight=2
" Ignore case when searching
set ignorecase
" When searching try to be smart about cases
set smartcase
" Highlight search results
set hlsearch
" Makes search act like search in modern browsers
set incsearch
" For regular expressions turn magic on
set magic
" Enable syntax highlighting
syntax enable
colorscheme desert
set background=dark
" Set extra options when running in GUI mode
if has("gui_running")
set guioptions-=T
set guioptions+=e
set t_Co=256
set guitablabel=%M\ %t
endif
set encoding=utf8
set nobackup
set nowb
set noswapfile
" Tab instead of spaces
set expandtab
set smarttab
set shiftwidth=4
set tabstop=4
set lbr
set tw=500
set ai "Auto indent
set si "Smart indent
set wrap "Wrap lines
highlight LineNr term=bold cterm=NONE ctermfg=DarkGrey ctermbg=NONE gui=NONE guifg=DarkGrey guibg=NONE
if &compatible
set nocompatible
endif
" Add the dein installation directory into runtimepath
set runtimepath+=~/.cache/dein/repos/github.com/Shougo/dein.vim
if dein#load_state('~/.cache/dein')
call dein#begin('~/.cache/dein')
call dein#add('~/.cache/dein/repos/github.com/Shougo/dein.vim')
call dein#add('Shougo/deoplete.nvim')
if !has('nvim')
call dein#add('roxma/nvim-yarp')
call dein#add('roxma/vim-hug-neovim-rpc')
endif
call dein#add('tpope/vim-fugitive')
call dein#add('flazz/vim-colorschemes')
call dein#add('vim-airline/vim-airline')
call dein#add('vim-airline/vim-airline-themes')
call dein#add('tomasr/molokai')
call dein#add('pangloss/vim-javascript')
call dein#add('crusoexia/vim-javascript-lib')
call dein#add('morhetz/gruvbox')
call dein#add('scrooloose/nerdtree')
call dein#add('vim-syntastic/syntastic')
call dein#add('chrisbra/Colorizer')
call dein#add('ervandew/supertab')
call dein#end()
call dein#save_state()
endif
filetype plugin indent on
" Integrate with powerline fonts
let g:airline_powerline_fonts = 1
set t_Co=256
let g:gruvbox_italic=1
colorscheme gruvbox
set cursorline
set number
set laststatus=2
set showcmd
set showtabline=1
" Searching
set ignorecase
if !exists(":DiffOrig")
command DiffOrig vert new | set buftype=nofile | read ++edit # | 0d_ | diffthis
\ | wincmd p | diffthis
endif
" Display status bar
set laststatus=2
" Hightlighting JS / DO JS / DOMM
let g:javascript_enable_domhtmlcss = 1
" nerdtree
map <C-n> :NERDTreeToggle<CR>
" syntastic
set statusline+=%#warningmsg#
set statusline+=%{SyntasticStatuslineFlag()}
set statusline+=%*
let g:syntastic_always_populate_loc_list = 1
let g:syntastic_auto_loc_list = 1
let g:syntastic_check_on_open = 1
let g:syntastic_check_on_wq = 0
" Load matchit.vim, but only if the user hasn't installed a newer version.
if !exists('g:loaded_matchit') && findfile('plugin/matchit.vim', &rtp) ==# ''
runtime! macros/matchit.vim
endif
:let g:colorizer_auto_color = 1