Browse Source

section-delineating comments, django filetypes, remember more marks

main
Noah Hall 5 years ago
parent
commit
edc5475bbf
1 changed files with 26 additions and 7 deletions
  1. +26
    -7
      .vimrc

+ 26
- 7
.vimrc View File

@ -1,32 +1,51 @@
set statusline +=%f\ %h%m%r\ -\ buf#:\ %n\ %=%{fugitive#statusline()}\ \ line:\ %l/%L\ -\ col:\ %c%V\ \
" statusline & pathogen loading
set statusline =%f\ %h%m%r\ -\ buf#:\ %n\ %=%{fugitive#statusline()}\ \ line:\ %l/%L\ -\ col:\ %c%V\ \
execute pathogen#infect()
set binary
set binary " tbh don't remember why
" indentation
set autoindent
set smartindent
set tabstop=4
set et
set shiftwidth=4
set backspace=2
set ruler
set wildmenu
" syntax basics
syntax on
filetype plugin on
" search settings
set hlsearch
set incsearch
set ignorecase
set smartcase
set splitbelow
set splitright
au InsertEnter * set nohlsearch
au InsertLeave * set hlsearch
"split location defaults
set splitbelow
set splitright
" au BufRead,BufNewFile *.less set filetype=css "only if no less highlighting :P
" 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
" django/mybox specific
au Filetype htmldjango setlocal tabstop=2 shiftwidth=2
au Filetype css 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"
@ -34,7 +53,7 @@ let g:syntastic_python_pylint_args = "--load-plugins django_pylint"
let g:syntastic_always_populate_loc_list = 1
" Tell vim to remember certain things when we exit
" '10 : marks will be remembered for up to 10 previously edited files
" '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


Loading…
Cancel
Save