|
|
@ -55,10 +55,11 @@ let NERDTreeDirArrows=1
|
|
|
|
|
|
|
|
|
|
|
|
" Prep some variables for use with syntastic syntax checker
|
|
|
|
" Prep some variables for use with syntastic syntax checker
|
|
|
|
let g:syntastic_phpcs_disable=1
|
|
|
|
let g:syntastic_phpcs_disable=1
|
|
|
|
let g:syntastic_auto_loc_list=0
|
|
|
|
let g:syntastic_auto_loc_list=1
|
|
|
|
let g:syntastic_stl_format = '[%E{Err: %fe #%e}%B{, }%W{Warn: %fw #%w}]'
|
|
|
|
let g:syntastic_stl_format = '[%E{Err: %fe #%e}%B{, }%W{Warn: %fw #%w}]'
|
|
|
|
let g:syntastic_javascript_checker = "jshint"
|
|
|
|
let g:syntastic_javascript_checker = "jshint"
|
|
|
|
let g:syntastic_jslint_conf = "~/.jshintrc"
|
|
|
|
let g:syntastic_jslint_conf = "~/.jshintrc"
|
|
|
|
|
|
|
|
let g:syntastic_json_checker = "jsonlint"
|
|
|
|
|
|
|
|
|
|
|
|
" Close all open buffers on entering a window if the only
|
|
|
|
" Close all open buffers on entering a window if the only
|
|
|
|
" buffer that's left is the NERDTree buffer
|
|
|
|
" buffer that's left is the NERDTree buffer
|
|
|
@ -120,7 +121,7 @@ set incsearch " BUT do highlight as you type you search phrase
|
|
|
|
set scrolloff=5 " Keep 5 lines (top/bottom) for scope
|
|
|
|
set scrolloff=5 " Keep 5 lines (top/bottom) for scope
|
|
|
|
set sidescrolloff=5 " Keep 5 lines at the size
|
|
|
|
set sidescrolloff=5 " Keep 5 lines at the size
|
|
|
|
set list " we do what to show tabs, to ensure we get them out of my files
|
|
|
|
set list " we do what to show tabs, to ensure we get them out of my files
|
|
|
|
set listchars=tab:▹\ ,trail:… " show tabs and trailing whitespace
|
|
|
|
set listchars=tab:𝅔\ ,trail:… " show tabs and trailing whitespace
|
|
|
|
|
|
|
|
|
|
|
|
" ~\file[+] [type] [line,column] [number of lines]
|
|
|
|
" ~\file[+] [type] [line,column] [number of lines]
|
|
|
|
set statusline=%F%m%r%h%w\ [%Y]\ [%03l,%03v]\ [%L]
|
|
|
|
set statusline=%F%m%r%h%w\ [%Y]\ [%03l,%03v]\ [%L]
|
|
|
@ -138,6 +139,8 @@ set completeopt=menu,longest,preview " improve the way autocomplete works
|
|
|
|
|
|
|
|
|
|
|
|
autocmd WinEnter * call s:CloseIfOnlyNerdTreeLeft()
|
|
|
|
autocmd WinEnter * call s:CloseIfOnlyNerdTreeLeft()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
autocmd FileType go autocmd BufWritePre <buffer> Fmt
|
|
|
|
|
|
|
|
|
|
|
|
augroup json
|
|
|
|
augroup json
|
|
|
|
au! BufRead,BufNewFile *.json set syntax=javascript
|
|
|
|
au! BufRead,BufNewFile *.json set syntax=javascript
|
|
|
|
augroup END
|
|
|
|
augroup END
|
|
|
@ -160,6 +163,8 @@ augroup END
|
|
|
|
|
|
|
|
|
|
|
|
augroup mustache
|
|
|
|
augroup mustache
|
|
|
|
au! BufRead,BufNewFile *.mustache set filetype=mustache
|
|
|
|
au! BufRead,BufNewFile *.mustache set filetype=mustache
|
|
|
|
|
|
|
|
au! BufRead,BufNewFile *.mu set filetype=mustache
|
|
|
|
|
|
|
|
au! BufRead,BufNewFile *.hjs set filetype=mustache
|
|
|
|
augroup END
|
|
|
|
augroup END
|
|
|
|
|
|
|
|
|
|
|
|
augroup coffee
|
|
|
|
augroup coffee
|
|
|
|