-
Notifications
You must be signed in to change notification settings - Fork 0
/
vimrc
50 lines (39 loc) · 848 Bytes
/
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
set runtimepath^=~/.vim
set nocompatible
set backspace=indent,eol,start
source ~/.vim/plugins
set backupdir=~/.vim/backup//
set directory=~/.vim/swap//
set backup
syntax on
filetype plugin indent on
set autoindent
set autoread
set encoding=utf-8
set guioptions-=T
set guioptions-=r
set guioptions-=L
set guifont=Consolas:h10
colorscheme molokai
set colorcolumn=81,121
highlight colorcolumn ctermbg=16 cterm=underline
set number
set ruler
set wildmenu
set wildmode=longest:full,full
set laststatus=2
set scrolloff=5
set relativenumber
set noexpandtab
set ts=4
set sw=4
set incsearch
set hlsearch
augroup myvimrc
au!
au BufWritePost .vimrc,_vimrc,vimrc,.gvimrc,_gvimrc,gvimrc so $MYVIMRC
augroup END
autocmd InsertEnter * :set norelativenumber
autocmd InsertLeave * :set relativenumber
nnoremap <CR> :noh<CR><CR>
let g:netrw_liststyle=1