-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdot_vimrc
38 lines (32 loc) · 1.03 KB
/
dot_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
" General settings
set noswapfile " Disable swapfile
" Editor settings
syntax on " Enable syntax highlighting
set number " Enable line numbers
set spell spelllang=en_us
set incsearch " Enable search on typing
set ignorecase " Disable case sensitive search
set hlsearch " Enable highlighting of all search results
" Plugin installations
" Automatic installation of plugin manager
if empty(glob('~/.vim/autoload/plug.vim'))
silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
endif
" Automatic installation of plugins
autocmd VimEnter * if len(filter(values(g:plugs), '!isdirectory(v:val.dir)'))
\| PlugInstall --sync | source $MYVIMRC
\| endif
call plug#begin()
Plug 'joshdick/onedark.vim'
Plug 'vim-airline/vim-airline'
Plug 'vim-airline/vim-airline-themes'
Plug 'sheerun/vim-polyglot'
call plug#end()
" Plugin settings
if (has("termguicolors"))
set termguicolors
endif
let g:airline_theme='onedark'
let g:airline#extensions#tabline#enabled = 1
colorscheme onedark