-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vimrc
75 lines (59 loc) · 1.7 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
""""""""""""""""""""""""
" General Enhancements "
""""""""""""""""""""""""
" Some basic QOL improvements
set number
set ruler
set autoindent
set showmatch
set ttimeoutlen=5
" Syntax highlighting and colors
syntax on
set t_Co=256
" Set tabs to 2 spaces
set shiftwidth=2
set tabstop=2
set expandtab
" Search enhancements
set ignorecase
set smartcase
" Enable 'normal' backspace behavior
set backspace=indent,eol,start
" Allow capital W and Q to still write/quit vim
command W w
command Q q
command Wq wq
command WQ wq
"Set custom command for MarkdownPreview
command MP MarkdownPreview
command Mp MarkdownPreview
" Set textwidth to 79 for .txt files.
au BufReadPost,BufNewFile *.txt, setlocal tw=79
" Enable spellcheck for .txt, .md, and .markdown files.
au BufReadPost,BufNewFile *.md,*.txt,*.markdown setlocal spell
hi clear SpellBad
hi SpellBad cterm=underline ctermfg=red
"""""""""""""""""""""""""""""""
" Install VimPlug and Plugins "
"""""""""""""""""""""""""""""""
if empty(glob('~/.vim/autoload/plug.vim'))
silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
endif
" List plugs here. To intall them:
" Reload .vimrc with ':source %' and then run ':PlugInstall'.
call plug#begin()
Plug 'vim-airline/vim-airline'
Plug 'vim-airline/vim-airline-themes'
Plug 'tpope/vim-fugitive'
" markdown-preview requires npm and yarn
Plug 'iamcco/markdown-preview.nvim', { 'do': 'cd app & yarn install' }
Plug 'scrooloose/nerdtree'
Plug 'google/vim-jsonnet'
call plug#end()
""""""""""""""""""""""""
" Plugin Configuration "
""""""""""""""""""""""""
" Airline + Theme
let g:airline_theme='wombat'