You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

111 lines
2.7 KiB

" statusline & pathogen loading
set statusline =%f\ %h%m%r\ -\ buf#:\ %n\ %=%{fugitive#statusline()}\ \ line:\ %l/%L\ -\ col:\ %c%V\ \
execute pathogen#infect()
set binary " tbh don't remember why
" indentation
set autoindent
set smartindent
set tabstop=4
set et
set shiftwidth=4
set backspace=2
" syntax basics
syntax on
filetype plugin on
" line numbers
set number
set relativenumber
" search settings
set hlsearch
set incsearch
set ignorecase
set smartcase
au InsertEnter * set nohlsearch
au InsertLeave * set hlsearch
"split location defaults
set splitbelow
set splitright
" enforce hjkl movement
noremap <Up> <NOP>
noremap <Down> <NOP>
noremap <Left> <NOP>
noremap <Right> <NOP>
" lagniappe
set laststatus=2
set t_Co=256
source ~/.regexlist.vim
set ruler
set wildmenu
au Filetype html setlocal tabstop=2 shiftwidth=2
" au BufRead,BufNewFile *.less set filetype=css "only if no less highlighting :P
au BufRead,BufNewFile *.swig set filetype=htmldjango
" django/mybox specific
au Filetype htmldjango setlocal tabstop=2 shiftwidth=2
au Filetype css setlocal tabstop=2 shiftwidth=2
au Filetype scss setlocal tabstop=2 shiftwidth=2
au Filetype javascript setlocal tabstop=2 shiftwidth=2
" pylint chokes a bit on django :(
" let g:syntastic_python_pylint_args = "--load-plugins django_pylint"
"let g:ale_python_pylint_options = '--load-plugins pylint_django'
" always populate error list for :lnext, :lprev
" let g:syntastic_always_populate_loc_list = 1
" correctly highlight JSX in .js files
let g:jsx_ext_required = 0
" use eslint, not jshint
" let g:syntastic_javascript_checkers = ['eslint']
let g:ale_linters = {
\ 'javascript': ['eslint'],
\ 'python': ['flake8'],
" Tell vim to remember certain things when we exit
" '20 : marks will be remembered for up to 20 previously edited files
" "100 : will save up to 100 lines for each register
" :20 : up to 20 lines of command-line history will be remembered
" % : saves and restores the buffer list
" n... : where to save the viminfo files
set viminfo='20,\"100,:20,%,n~/.viminfo
" actual stuff that does the cursor-position mambo
function! ResCur()
if line("'\"") <= line("$")
normal! g`"
return 1
" do the cursor-position mambo
augroup resCur
autocmd BufWinEnter * call ResCur()
augroup END
set background=light
colorscheme solarized
" deploy shortcut
command DW w | AsyncRun deploy water
nnoremap ; :
vnoremap ; :
" aurora/vesper specific - notebook md template
au BufNewFile /home/noah/projects/notebook/**.md r /home/noah/.vim/templates/
" vimwiki settings
au Filetype vimwiki setlocal tabstop=2 shiftwidth=2 background=dark
au Filetype vimwiki colorscheme gruvbox
let g:vimwiki_list = [{'path':'~/wiki/','path_html':'~/wiki_export/','syntax':'markdown'}]