clean up legacy files
This commit is contained in:
parent
638ff2812f
commit
bc35923fe2
658 changed files with 196 additions and 1 deletions
1
legacy/ftplugin/css.vim
Normal file
1
legacy/ftplugin/css.vim
Normal file
|
|
@ -0,0 +1 @@
|
|||
setlocal iskeyword+=-
|
||||
2
legacy/ftplugin/eruby.vim
Normal file
2
legacy/ftplugin/eruby.vim
Normal 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
1
legacy/ftplugin/fish.vim
Normal file
|
|
@ -0,0 +1 @@
|
|||
:compiler fish
|
||||
1
legacy/ftplugin/help.vim
Normal file
1
legacy/ftplugin/help.vim
Normal file
|
|
@ -0,0 +1 @@
|
|||
setlocal keywordprg=:help
|
||||
0
legacy/ftplugin/html.vim
Normal file
0
legacy/ftplugin/html.vim
Normal file
1
legacy/ftplugin/javascript.vim
Normal file
1
legacy/ftplugin/javascript.vim
Normal file
|
|
@ -0,0 +1 @@
|
|||
setlocal iskeyword+=$
|
||||
20
legacy/ftplugin/markdown.vim
Normal file
20
legacy/ftplugin/markdown.vim
Normal 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>
|
||||
8
legacy/ftplugin/octobercms.vim
Normal file
8
legacy/ftplugin/octobercms.vim
Normal 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
2
legacy/ftplugin/ruby.vim
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
nnoremap <silent> <buffer> <F5> :call SaveAndExecute('ruby')<CR>
|
||||
|
||||
1
legacy/ftplugin/sass.vim
Normal file
1
legacy/ftplugin/sass.vim
Normal file
|
|
@ -0,0 +1 @@
|
|||
setlocal iskeyword+=$
|
||||
2
legacy/ftplugin/sh.vim
Normal file
2
legacy/ftplugin/sh.vim
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
setlocal makeprg=shellcheck\ -f\ gcc\ %
|
||||
nnoremap <buffer> <F5> :w !sh<cr>
|
||||
4
legacy/ftplugin/vim.vim
Normal file
4
legacy/ftplugin/vim.vim
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
setlocal keywordprg=:help
|
||||
setlocal iskeyword+=:
|
||||
|
||||
nnoremap <buffer> <F5> :w \| source %<cr>
|
||||
8
legacy/ftplugin/vue.vim
Normal file
8
legacy/ftplugin/vue.vim
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue