Drop the rvim sudoedit setup and replace pylint with ruff/mypy. Ruff's EXE001 check is turned off for sudoedit's temporary copies in /var/tmp.
97 lines
2.1 KiB
VimL
97 lines
2.1 KiB
VimL
filetype on
|
|
filetype plugin on
|
|
filetype indent on
|
|
syntax on
|
|
set nocompatible
|
|
set number
|
|
set shiftwidth=4
|
|
set tabstop=4
|
|
set expandtab
|
|
set backup
|
|
set backupdir=~/.vim/backup/
|
|
set directory=/tmp
|
|
set scrolloff=10
|
|
set incsearch
|
|
set showcmd
|
|
set showmode
|
|
set showmatch
|
|
set hlsearch
|
|
set wildmenu
|
|
set wildmode=list:longest
|
|
set wildignore=*.docx,*.jpg,*.png,*.gif,*.pdf,*.pyc,*.exe,*.flv,*.img,*.xlsx,*.mp4,*.zip,*.iso,*.odt,*.tar,*.gz,*.xz,*.bz2,*.zst,*.rar,*.m4a,*.bmp,*.ogg,*.mp3,*.flv
|
|
set background=dark
|
|
set grepprg=grep\ -nH\ $*
|
|
|
|
|
|
|
|
" PLUGINS ---------------------------------------------------------------- {{{
|
|
|
|
call plug#begin()
|
|
|
|
Plug 'catppuccin/vim', { 'as': 'catppuccin' }
|
|
Plug 'ghifarit53/tokyonight-vim'
|
|
|
|
call plug#end()
|
|
|
|
let g:ale_linters = {'python': ['ruff', 'mypy'], 'c': ['cc'], 'sh': ['shellcheck'], 'tex': ['lacheck'], 'haskell': ['stack_ghc', 'hlint']}
|
|
let g:ale_linters_explicit = 1
|
|
let g:ale_enabled = 1
|
|
|
|
" sudoedit's copies in /var/tmp aren't executable
|
|
let g:ale_pattern_options = {'^/var/tmp/': {'ale_python_ruff_options': '--extend-ignore EXE001'}}
|
|
|
|
let g:ale_fixers = {
|
|
\ 'haskell': ['ormolu', 'remove_trailing_lines', 'trim_whitespace'],
|
|
\ 'c': ['astyle', 'remove_trailing_lines', 'trim_whitespace'],
|
|
\ 'python': ['autopep8', 'remove_trailing_lines', 'trim_whitespace']
|
|
\}
|
|
let g:ale_haskell_ormolu_options = '--no-cabal --no-dot-ormolu'
|
|
|
|
let g:rainbow_active = 1
|
|
let g:tex_flavor = 'latex'
|
|
|
|
" }}}
|
|
|
|
|
|
|
|
" MAPPINGS --------------------------------------------------------------- {{{
|
|
|
|
" Mappings code goes here.
|
|
|
|
" }}}
|
|
|
|
|
|
|
|
" VIMSCRIPT -------------------------------------------------------------- {{{
|
|
|
|
" This will enable code folding.
|
|
" Use the marker method of folding.
|
|
augroup filetype_vim
|
|
autocmd!
|
|
autocmd FileType vim setlocal foldmethod=marker
|
|
augroup END
|
|
|
|
|
|
if has('termguicolors')
|
|
set termguicolors
|
|
endif
|
|
|
|
|
|
au BufRead /tmp/mutt-* set tw=144
|
|
|
|
" }}}
|
|
|
|
|
|
|
|
" STATUS LINE ------------------------------------------------------------ {{{
|
|
|
|
" Status bar code goes here.
|
|
|
|
" }}}
|
|
|
|
colorscheme dracula
|
|
|
|
"if &diff
|
|
" colorscheme dracula
|
|
"endif
|