Browse Source

vimrc new syntax & remaps, plus linenumbers

main
Noah Hall 4 years ago
parent
commit
cacc005424
1 changed files with 20 additions and 2 deletions
  1. +20
    -2
      .vimrc

+ 20
- 2
.vimrc View File

@ -15,6 +15,10 @@ set backspace=2
syntax on
filetype plugin on
" line numbers
set number
set relativenumber
" search settings
set hlsearch
set incsearch
@ -27,8 +31,6 @@ au InsertLeave * set hlsearch
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>
@ -42,9 +44,13 @@ source ~/.regexlist.vim
set ruler
set wildmenu
" 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 :(
@ -52,6 +58,12 @@ let g:syntastic_python_pylint_args = "--load-plugins django_pylint"
" 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']
" 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
@ -76,3 +88,9 @@ augroup END
" better vimdiff highlighting
colorscheme mycolorscheme
" deploy shortcut
command DW w | AsyncRun deploy water
nnoremap ; :
vnoremap ; :

Loading…
Cancel
Save