Update with changes in 2026.

This commit is contained in:
2026-06-19 15:58:41 -05:00
parent 70a803d6c7
commit abd53d2cc5
6 changed files with 233 additions and 79 deletions
+27 -18
View File
@@ -12,7 +12,7 @@ set softtabstop=0
set textwidth=79
set signcolumn=yes
set cursorline
set fo-=l fo+=rot
set fo-=l fo+=rotn
syntax enable
packadd matchit
@@ -22,16 +22,24 @@ filetype indent on
" Highlighiting fixes to avoid unreadable text
"highlight Folded term=standout ctermfg=3 ctermbg=256
highlight Folded term=standout ctermfg=5 ctermbg=0
" highlight Folded term=standout ctermfg=5 ctermbg=0
highlight Folded ctermfg=7 ctermbg=235
highlight SignColumn ctermbg=8
highlight Visual term=reverse ctermbg=7 ctermfg=1 guibg=LightGrey
hi SpellBad term=reverse ctermbg=1 ctermfg=7 gui=undercurl guisp=Red
hi DiffAdd ctermbg=22
hi DiffChange ctermbg=52
hi DiffDelete ctermbg=52 ctermfg=8
hi DiffText ctermfg=NONE ctermbg=22 cterm=NONE
let g:EditorConfig_max_line_indicator = 'exceeding'
" Diable ALE in-line error highlighting and rely on the markers in the gutter.
highlight clear ALEError
highlight link ALEError NONE
hi Search ctermfg=0 cterm=bold
let mapleader=" "
let g:markdown_recommended_style=0
@@ -40,20 +48,30 @@ autocmd BufRead,BufNewFile *.pco setlocal filetype=chordpro
autocmd BufRead,BufNewFile *.yaml setlocal fo=croqt
autocmd BufRead,BufNewFile *.nim setlocal fo=croqt
autocmd BufRead,BufNewFile *.ts setlocal fo=croqt
autocmd BufRead,BufNewFile *.vue setlocal comments=s:<!--,m:\ \ \ \ ,e:-->,lb://,sr:/*,mb:*,e:*/ foldmethod=marker
autocmd BufRead *.nim set foldmethod=manual
" Set/load the view when switching buffers. Used to use to preserve folding.
" Stopped because weirder things were happening.
" Stopped using this because weirder things were happening.
" autocmd BufEnter *.* silent loadview
" autocmd BufLeave *.* mkview!
autocmd BufRead *.java set foldnestmax=2
autocmd BufRead *.java set foldmethod=syntax
au BufNewFile,BufRead *.py
\ set tabstop=4
\ softtabstop=4
\ shiftwidth=4
\ textwidth=79
\ expandtab
\ autoindent
\ fileformat=unix
au BufRead */synced/tasks* set textwidth=70
inoremap <Nul> <C-x><C-o>
let g:copilot_filetypes = {
\ 'nim': v:false,
\}
" Search for selected text, forwards or backwards.
vnoremap <silent> * :<C-U>
@@ -93,6 +111,7 @@ let g:ale_linters = {
\ 'rst': [],
\ 'python': ['pylint'],
\ 'vue': ['prettier'],
\ 'nim': [],
\}
" default (as of time of writing) was:
" \ 'markdown': ['alex', 'cspell', 'languagetool', 'markdownlint', 'mdl', 'proselint', 'redpen', 'remark_lint', 'textlint', 'vale', 'writegood'],
@@ -117,6 +136,7 @@ let g:tsuquyomi_disable_quickfix = 1
let g:ale_set_loclist = 0
let g:ale_set_quickfix = 0
let g:localvimrc_persistent = 1
let g:localvimrc_whitelist = '/home/jdb/projects/probatem/*/.*'
nmap <Leader>wo :vsplit /home/jdbernard/projects/worklog/worklog.txt<CR><C-w>L200<C-w><43<C-w>>
@@ -131,7 +151,7 @@ vmap <Leader>qb :s/\v\s+(\d+)(\s+\|$)/ **\1**\2/g<CR>
nmap <Leader>ss :%s/\s\+$//<CR>
" check spelling
nmap <Leader>sp :!aspell -c %<CR>
nmap <Leader>sp :w<CR>:!aspell -c "%"<CR>
" Execute the current line (stripping leading `$`s)
nmap <Leader>r :.w !sed s/^\\s*[\\$\\#]\\s*//\|bash<CR>
@@ -142,14 +162,3 @@ nmap <Leader>R yyp!!sed s/^\\s*[\\$\\#]\\s*//\|bash<CR><Esc>
" Execute the selected text as a vim command.
vmap <Leader>e "zy@z<CR>
highlight Folded term=standout ctermfg=3 ctermbg=256
" Use a dark gray for highlighting 'spelling' errors (ALE uses this class for
" highlighting linting errors). Original value was 224
"highlight SpellBad ctermbg=236
"
" Actually, just diable ALE in-line error highlighting and just rely on the
" markers in the gutter.
" highlight clear ALEError
" highlight link ALEError NONE