migrate vim configuration files

This commit is contained in:
Ray Elliott 2020-03-19 15:47:31 +00:00
commit b4ae067792
59 changed files with 10296 additions and 0 deletions

1
ftplugin/css.vim Normal file
View file

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

2
ftplugin/eruby.vim Normal file
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
ftplugin/fish.vim Normal file
View file

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

1
ftplugin/help.vim Normal file
View file

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

1
ftplugin/javascript.vim Normal file
View file

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

18
ftplugin/markdown.vim Normal file
View file

@ -0,0 +1,18 @@
" 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
ftplugin/octobercms.vim Normal file
View file

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

1
ftplugin/php.vim Normal file
View file

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

2
ftplugin/ruby.vim Normal file
View file

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

1
ftplugin/sass.vim Normal file
View file

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

1
ftplugin/sh.vim Normal file
View file

@ -0,0 +1 @@
nnoremap <buffer> <F5> :w !sh<cr>

4
ftplugin/vim.vim Normal file
View file

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

8
ftplugin/vue.vim Normal file
View file

@ -0,0 +1,8 @@
set 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