-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdot_vimrc
31 lines (24 loc) · 884 Bytes
/
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
" Automatic vim-plug installation
" See: https://github.com/junegunn/vim-plug/wiki/tips#automatic-installation
let data_dir = has('nvim') ? stdpath('data') . '/site' : '~/.vim'
if empty(glob(data_dir . '/autoload/plug.vim'))
silent execute '!curl -fLo '.data_dir.'/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'
autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
endif
call plug#begin()
Plug 'vim-airline/vim-airline'
Plug 'vim-airline/vim-airline-themes'
Plug 'tpope/vim-surround'
Plug 'tpope/vim-sleuth'
Plug 'tpope/vim-sensible'
Plug 'tpope/vim-repeat'
call plug#end()
" Enable hybrid line numbers
set number
set relativenumber
" Highlight tabs, source: https://timmurphy.org/2012/04/26/highlighting-tabs-in-vim/
highlight SpecialKey ctermfg=1
set list
set listchars=tab:T>
" Enable mouse support
set mouse+=a