-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vimrc
67 lines (52 loc) · 1.28 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
call plug#begin('~/.vim/bundle')
Plug 'itchyny/lightline.vim'
Plug 'https://tpope.io/vim/commentary.git'
call plug#end()
" -------------------------
" Lightline.vim
" -------------------------
set laststatus=2
set noshowmode
let g:lightline = {
\ 'colorscheme': 'Tomorrow_Night',
\ }
" -------------------------
" Various Vim options
" -------------------------
" Remember last position
if has("autocmd")
au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif
endif
" Fix tabs when pasting in
set paste
set tabstop=4
set expandtab
set backupcopy=yes
if empty(glob('~/.vim/.backup'))
silent !mkdir -p ~/.vim/.backup
endif
set backupdir=~/.vim/.backup//
if empty(glob('~/.vim/.swp'))
silent !mkdir -p ~/.vim/.swp
endif
set directory=~/.vim/.swp//
set hidden
set lazyredraw
set nocompatible
set backspace=2
set nojoinspaces
set ofu=syntaxcomplete#Complete
" set sessionoptions-=curdir " Increase session compatbility with vim-rooter
set scrolloff=10
set showtabline=2
set splitright
set switchbuf=useopen,usetab
if empty(glob('~/.vim/.undodir'))
silent !mkdir -p ~/.vim/.undodir
endif
set undodir=~/.vim/.undodir//
set undofile
set updatetime=100
set viminfo='10,\"100,:20,%,n~/.vim/.viminfo
set number
highlight LineNr ctermfg=grey