-
Notifications
You must be signed in to change notification settings - Fork 1
/
vimrc
71 lines (57 loc) · 1.54 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
call plug#begin('~/.vim/plugged')
" Plugins
Plug 'altercation/vim-colors-solarized'
Plug 'ervandew/supertab'
Plug 'scrooloose/nerdcommenter'
Plug 'vim-airline/vim-airline'
Plug 'vim-airline/vim-airline-themes'
Plug 'junegunn/goyo.vim'
Plug 'nathangrigg/vim-beancount'
Plug 'derekwyatt/vim-scala'
Plug 'rust-lang/rust.vim'
Plug 'mbbill/undotree'
"Plug 'vim-syntastic/syntastic'
Plug 'leafgarland/typescript-vim'
call plug#end()
" Vimrc
let mapleader=" "
set number
set tabstop=4 shiftwidth=4 expandtab
imap jk <ESC>
" allow backspacing in insert mode
set backspace=indent,eol,start
" copy and paste to clipboard
set clipboard=unnamed
" Stuff for color scheme
syntax enable
set background=dark
colorscheme solarized
" Stuff for airline
set laststatus=2
let g:airline_theme='solarized'
let g:airline_powerline_fonts = 1
" Settings for focus mode (Goyo)
"map <leader>f :Goyo <bar> highlight StatusLineNC ctermfg=none <CR>
map <leader>f :Goyo <CR>
" Auto format rust
let g:rustfmt_autosave = 1
" Undo Tree
if has("persistent_undo")
set undodir=~/.undodir/
set undofile
endif
" Basic synstastic stuff
"let g:syntastic_rust_checkers = ['rustc']
"set statusline+=%#warningmsg#
"set statusline+=%{SyntasticStatuslineFlag()}
"set statusline+=%*
"let g:syntastic_always_populate_loc_list = 1
"let g:syntastic_auto_loc_list = 1
"let g:syntastic_check_on_open = 1
"let g:syntastic_check_on_wq = 0
" 80 char column marker
"if exists('+colorcolumn')
"set colorcolumn=121
"else
"au BufWinEnter * let w:m2=matchadd('ErrorMsg', '\%>80v.\+', -1)
"endif