2018-08-10 20:20:11 +00:00
|
|
|
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
|
|
|
|
|
|
|
|
call plug#begin('~/.vim/plugged')
|
|
|
|
|
|
|
|
Plug 'vim-airline/vim-airline'
|
|
|
|
Plug 'vim-airline/vim-airline-themes'
|
|
|
|
|
|
|
|
Plug 'ntpeters/vim-better-whitespace'
|
|
|
|
Plug 'airblade/vim-gitgutter'
|
|
|
|
Plug 'JamshedVesuna/vim-markdown-preview'
|
|
|
|
Plug 'chr4/nginx.vim'
|
|
|
|
|
|
|
|
call plug#end()
|
|
|
|
|
2017-05-14 00:57:38 +00:00
|
|
|
syntax on
|
2017-06-15 13:00:20 +00:00
|
|
|
|
|
|
|
" Spaces are better than tabs :P
|
2017-05-14 00:57:38 +00:00
|
|
|
filetype plugin indent on
|
2017-06-15 13:00:20 +00:00
|
|
|
set tabstop=2
|
|
|
|
set shiftwidth=2
|
|
|
|
set expandtab
|
|
|
|
|
2017-09-04 00:07:25 +00:00
|
|
|
set scrolloff=4
|
|
|
|
|
2017-05-14 00:57:38 +00:00
|
|
|
set t_Co=256
|
|
|
|
set laststatus=2
|
2017-06-15 13:00:20 +00:00
|
|
|
set number
|
2017-05-14 00:57:38 +00:00
|
|
|
let g:airline_powerline_fonts = 1
|
|
|
|
let g:airline_theme='murmur'
|
2017-09-04 00:07:25 +00:00
|
|
|
|
|
|
|
" markdown-preview
|
2018-08-10 20:20:11 +00:00
|
|
|
let vim_markdown_preview_toggle=0
|
2017-09-04 00:07:25 +00:00
|
|
|
let vim_markdown_preview_browser='Firefox'
|
|
|
|
let vim_markdown_preview_use_xdg_open=1
|
|
|
|
let vim_markdown_preview_github=1
|
|
|
|
|
|
|
|
" markdown-toc
|
|
|
|
let g:vmt_auto_update_on_save=0
|
|
|
|
let g:vmt_dont_insert_fence=1
|
|
|
|
let g:vmt_cycle_list_item_markers=1
|