Skip to content

Commit

Permalink
vim: minor adjustment
Browse files Browse the repository at this point in the history
  • Loading branch information
vicentebolea committed Sep 3, 2024
1 parent 0154bb2 commit 7190b9d
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions .vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -142,15 +142,18 @@ autocmd FileType sh,bash,csh setlocal makeprg=shellcheck\ %
" PEP8 compliant
autocmd! FileType python setlocal sw=4 ts=4 sts=4 expandtab textwidth=100 fileformat=unix autoindent makeprg=flake8\ %

" Vue development
autocmd! FileType typescript setlocal makeprg=npx\ eslint\ -f\ unix\ %
autocmd! FileType vue setlocal makeprg=npx\ eslint\ -f\ unix\ %

autocmd! FileType typescript setlocal makeprg=npx\ eslint\ -f\ unix\ %
autocmd! FileType vue setlocal makeprg=npx\ eslint\ -f\ unix\ %

autocmd FileType html,markdown,rst,txt,tex setlocal textwidth=79 colorcolumn=81 spell
" Technical writting
autocmd FileType html,markdown,rst,txt,tex setlocal textwidth=79 colorcolumn=80 spell
autocmd BufEnter,BufNew *.log setlocal nowrap

" Spec development
autocmd FileType spec setlocal makeprg=spec-cleaner\ -i\ %
autocmd FileType changes setlocal textwidth=67 colorcolumn=67 spell

augroup tabsPolicy
autocmd!
autocmd BufEnter,BufNew *.tsv setlocal noexpandtab tabstop=6 sw=6
Expand Down Expand Up @@ -280,12 +283,12 @@ set diffopt+=vertical
" }}}
" CtrlP {{{
let g:ctrlp_by_filename = 1
let g:ctrlp_cmd = 'CtrlPMixed'
let g:ctrlp_extensions = ['tag', 'quickfix']
let g:ctrlp_mruf_relative = 1
let g:ctrlp_show_hidden = 1
let g:ctrlp_working_path_mode = 'ra'
let g:ctrlp_mruf_case_sensitive = 0
let g:ctrlp_clear_cache_on_exit = 0
let g:ctrlp_cmd = 'CtrlPMixed'
" }}}
" Local Config {{{
if filereadable($HOME . "/.vimrc.local")
Expand Down

0 comments on commit 7190b9d

Please sign in to comment.