Update vim settings
This commit is contained in:
parent
ee0e9d636a
commit
28c2be1a35
6
vim/ftplugin/go.vim
Normal file
6
vim/ftplugin/go.vim
Normal file
@ -0,0 +1,6 @@
|
||||
|
||||
set noexpandtab " noexpandtab keeps tabs
|
||||
set shiftwidth=4 " unify
|
||||
set softtabstop=4 " Pressing backspace works like tabs
|
||||
set tabstop=4
|
||||
|
||||
9
vimrc
9
vimrc
@ -55,10 +55,11 @@ let NERDTreeDirArrows=1
|
||||
|
||||
" Prep some variables for use with syntastic syntax checker
|
||||
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_javascript_checker = "jshint"
|
||||
let g:syntastic_jslint_conf = "~/.jshintrc"
|
||||
let g:syntastic_json_checker = "jsonlint"
|
||||
|
||||
" Close all open buffers on entering a window if the only
|
||||
" 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 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 listchars=tab:▹\ ,trail:… " show tabs and trailing whitespace
|
||||
set listchars=tab:𝅔\ ,trail:… " show tabs and trailing whitespace
|
||||
|
||||
" ~\file[+] [type] [line,column] [number of lines]
|
||||
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 FileType go autocmd BufWritePre <buffer> Fmt
|
||||
|
||||
augroup json
|
||||
au! BufRead,BufNewFile *.json set syntax=javascript
|
||||
augroup END
|
||||
@ -160,6 +163,8 @@ augroup END
|
||||
|
||||
augroup 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 coffee
|
||||
|
||||
Loading…
Reference in New Issue
Block a user