mirror of
https://github.com/Adam-Ant/dotfiles
synced 2024-12-20 11:34:35 +00:00
45 lines
1020 B
VimL
45 lines
1020 B
VimL
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()
|
|
|
|
syntax on
|
|
|
|
" Spaces are better than tabs :P
|
|
filetype plugin indent on
|
|
set tabstop=2
|
|
set shiftwidth=2
|
|
set expandtab
|
|
|
|
set scrolloff=4
|
|
|
|
set t_Co=256
|
|
set laststatus=2
|
|
set number
|
|
let g:airline_powerline_fonts = 1
|
|
let g:airline_theme='murmur'
|
|
|
|
" markdown-preview
|
|
let vim_markdown_preview_toggle=0
|
|
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
|