clean up legacy files

This commit is contained in:
Ray Elliott 2025-12-06 19:44:54 +00:00
commit bc35923fe2
658 changed files with 196 additions and 1 deletions

1
legacy/ftplugin/css.vim Normal file
View file

@ -0,0 +1 @@
setlocal iskeyword+=-

View file

@ -0,0 +1,2 @@
nnoremap <buffer> <F5> :call ft#compileeruby#CompileEruby(0)<CR>
nnoremap <buffer> <F6> :call ft#compileeruby#CompileEruby(1)<CR>

1
legacy/ftplugin/fish.vim Normal file
View file

@ -0,0 +1 @@
:compiler fish

1
legacy/ftplugin/help.vim Normal file
View file

@ -0,0 +1 @@
setlocal keywordprg=:help

0
legacy/ftplugin/html.vim Normal file
View file

View file

@ -0,0 +1 @@
setlocal iskeyword+=$

View file

@ -0,0 +1,20 @@
setlocal spell
" markdown : jump to next heading
" https://gist.github.com/romainl/ac63e108c3d11084be62b3c04156c263
function! s:JumpToNextHeading(direction, count)
let col = col(".")
silent execute a:direction == "up" ? '?^#' : '/^#'
if a:count > 1
silent execute "normal! " . repeat("n", a:direction == "up" && col != 1 ? a:count : a:count - 1)
endif
silent execute "normal! " . col . "|"
unlet col
endfunction
nnoremap <buffer> <silent> ]] :<C-u>call <SID>JumpToNextHeading("down", v:count1)<CR>
nnoremap <buffer> <silent> [[ :<C-u>call <SID>JumpToNextHeading("up", v:count1)<CR>

View file

@ -0,0 +1,8 @@
function! StripSpecialM() abort
:%s/ $//e
endfunction
augroup RemoveSpecialM
autocmd BufWritePre <buffer> call StripSpecialM()
augroup END

2
legacy/ftplugin/ruby.vim Normal file
View file

@ -0,0 +1,2 @@
nnoremap <silent> <buffer> <F5> :call SaveAndExecute('ruby')<CR>

1
legacy/ftplugin/sass.vim Normal file
View file

@ -0,0 +1 @@
setlocal iskeyword+=$

2
legacy/ftplugin/sh.vim Normal file
View file

@ -0,0 +1,2 @@
setlocal makeprg=shellcheck\ -f\ gcc\ %
nnoremap <buffer> <F5> :w !sh<cr>

4
legacy/ftplugin/vim.vim Normal file
View file

@ -0,0 +1,4 @@
setlocal keywordprg=:help
setlocal iskeyword+=:
nnoremap <buffer> <F5> :w \| source %<cr>

8
legacy/ftplugin/vue.vim Normal file
View file

@ -0,0 +1,8 @@
setlocal includeexpr=substitute(substitute(v:fname,'^[\\~@]\/','./',''),'^[\\~@]','./node_modules/','')
setlocal suffixesadd=.js,.vue,.scss
setlocal complete=.,w,b,u,i
setlocal include=\\%(\\<require\\s*(\\s*\\\|\\<import\\>[^;\"']*\\)[\"']\\zs[^\"']*
setlocal foldnestmax=3