-
Notifications
You must be signed in to change notification settings - Fork 0
/
vimrc
78 lines (61 loc) · 1.52 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
set nocompatible
" Syntax -------------------------------------------------------------
set t_Co=256
set encoding=utf-8
set background=dark
syntax on
" Directories -------------------------------------------------------------
set backupdir=~/.vim/backups
set directory=~/.vim/swaps
set undodir=~/.vim/undo
" Basics -------------------------------------------------------------
set autoindent " Copying autoindent
set backspace=indent,eol,start
set diffopt=filler
set diffopt+=iwhite
set esckeys
set hidden
set history=1000 " Increase history from 20 default to 1000
set mouse=a " Enable mouse
set nowrap
set nu " Enable line numbers
set title
set noshowmode
set visualbell
set wildmenu
" Tabs
set smarttab
set softtabstop=2
" Tab options
set expandtab
set tabstop=2
set shiftwidth=2
" Invisible charater
" set lcs=tab:›\ ,trail:·,eol:¬,nbsp:_
" set list
" Numbers
set numberwidth=3
:highlight LineNr term=bold cterm=NONE ctermfg=DarkGrey ctermbg=NONE gui=NONE guifg=DarkGrey guibg=NONE
" Other useful config
set ruler
set laststatus=2
set showmatch
" Quick shortcut
iabbrev >> →
iabbrev << ←
iabbrev ^^ ↑
iabbrev VV ↓
iabbrev aa λ
" Plugins -------------------------------------------------------------
call plug#begin('~/.vim/plugged')
" Syntax
Plug 'JulesWang/css.vim'
Plug 'cakebaker/scss-syntax.vim'
" Theme
Plug 'easysid/mod8.vim'
Plug 'sjl/badwolf'
Plug 'bling/vim-airline'
call plug#end()
" Plugins configuration -----------------------------------------------
colorscheme mod8 " Theme
let g:airline_powerline_fonts = 1