2017-10-26 01:39:39 -04:00
|
|
|
""" Start vim.plug
|
2017-10-24 15:28:32 -04:00
|
|
|
call plug#begin('~/.vim/plugged')
|
|
|
|
|
|
|
|
|
2017-10-26 01:39:39 -04:00
|
|
|
""" Syntastic
|
|
|
|
" Start syntastic
|
|
|
|
Plug 'vim-syntastic/syntastic'
|
|
|
|
|
|
|
|
" Recommended settings
|
|
|
|
set statusline+=%#warning#
|
|
|
|
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
|
|
|
|
|
|
|
|
|
|
|
|
""" General Settings
|
|
|
|
" Set tabs to 4 spaces
|
|
|
|
set tabstop=4
|
|
|
|
set shiftwidth=4
|
|
|
|
set expandtab
|
|
|
|
|
|
|
|
" Remember location in file
|
|
|
|
if has("autocmd")
|
|
|
|
au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
" Line numbers
|
|
|
|
set number
|
|
|
|
set relativenumber
|
2017-10-24 15:28:32 -04:00
|
|
|
|
2017-10-26 01:39:39 -04:00
|
|
|
" Syntax highlighting (for netrw)
|
|
|
|
syntax enable
|
|
|
|
filetype plugin on
|
|
|
|
|
|
|
|
" Syntax highlighting on buffer close bugfix
|
|
|
|
set hidden
|
|
|
|
|
|
|
|
" Fuzzy Finding
|
|
|
|
set path+=**
|
|
|
|
set wildmenu
|
|
|
|
|
|
|
|
""" NOTES:
|
|
|
|
" AUTOCOMPLETE:
|
|
|
|
" - ^x^n for JUST this file
|
|
|
|
" - ^x^f for filenames
|
|
|
|
" - ^n for anything specified by the 'complete' option
|
|
|
|
|
|
|
|
|
|
|
|
""" End vim.plug
|
|
|
|
call plug#end()
|