30 lines
804 B
VimL
30 lines
804 B
VimL
"""
|
|
" To get your own vim to read this .vimrc file from any subdirectory of this
|
|
" repository, add the following to your own ~/.vimrc file:
|
|
"
|
|
" " Look for .vimrc in the current directory or parent directories
|
|
" let s:local_vimrc = findfile('.vimrc', expand('%:p:h').';')
|
|
"
|
|
" " Source the file if it exists and is not the global ~/.vimrc
|
|
" if !empty(s:local_vimrc) && s:local_vimrc != expand('~/.vimrc')
|
|
" execute 'source' s:local_vimrc
|
|
" endif
|
|
"
|
|
" You should also install the [ale plugin](https://github.com/dense-analysis/ale)
|
|
|
|
"""
|
|
" Leave the rest of this unchanged.
|
|
|
|
" -- Prefer tabs to spaces
|
|
set noexpandtab
|
|
set tabstop=2
|
|
set shiftwidth=2
|
|
set softtabstop=2
|
|
set colorcolumn=80
|
|
|
|
let g:ale_fixers = {
|
|
\ 'javascript': ['eslint'],
|
|
\}
|
|
" -- automatically fix files on save
|
|
let g:ale_fix_on_save=1
|