directory structure
This commit is contained in:
parent
0ce2bda366
commit
615f897310
47 changed files with 8100 additions and 0 deletions
1
ftplugin/css.vim
Normal file
1
ftplugin/css.vim
Normal file
|
|
@ -0,0 +1 @@
|
|||
set iskeyword+=-
|
||||
2
ftplugin/eruby.vim
Normal file
2
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>
|
||||
2
ftplugin/help.vim
Normal file
2
ftplugin/help.vim
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
setlocal keywordprg=:help
|
||||
setlocal relativenumber number
|
||||
1
ftplugin/javascript.vim
Normal file
1
ftplugin/javascript.vim
Normal file
|
|
@ -0,0 +1 @@
|
|||
set iskeyword+=$
|
||||
18
ftplugin/markdown.vim
Normal file
18
ftplugin/markdown.vim
Normal 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>
|
||||
1
ftplugin/php.vim
Normal file
1
ftplugin/php.vim
Normal file
|
|
@ -0,0 +1 @@
|
|||
set iskeyword+=$
|
||||
11
ftplugin/python.vim
Normal file
11
ftplugin/python.vim
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
set softtabstop=8
|
||||
set tabstop=4
|
||||
set shiftwidth=4
|
||||
|
||||
set textwidth=79
|
||||
|
||||
set foldmethod=indent
|
||||
set foldnestmax=1
|
||||
|
||||
nnoremap <silent> <buffer> <F5> :call SaveAndExecute('python')<CR>
|
||||
command! CTagsPython !ctags -R --fields=+l --languages=python --python-kinds=-iv -f ./.tags-py $(python -c "import os, sys; print(' '.join('{}'.format(d) for d in sys.path if os.path.isdir(d)))")
|
||||
2
ftplugin/ruby.vim
Normal file
2
ftplugin/ruby.vim
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
nnoremap <silent> <buffer> <F5> :call SaveAndExecute('ruby')<CR>
|
||||
|
||||
2
ftplugin/sass.vim
Normal file
2
ftplugin/sass.vim
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
set iskeyword+=$
|
||||
set foldmethod=syntax
|
||||
1
ftplugin/sh.vim
Normal file
1
ftplugin/sh.vim
Normal file
|
|
@ -0,0 +1 @@
|
|||
nnoremap <buffer> <F5> :w !sh<cr>
|
||||
4
ftplugin/vim.vim
Normal file
4
ftplugin/vim.vim
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
setlocal keywordprg=:help
|
||||
setlocal iskeyword+=:
|
||||
|
||||
nnoremap <buffer> <F5> :w \| source %<cr>
|
||||
6
ftplugin/vue.vim
Normal file
6
ftplugin/vue.vim
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
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[^\"']*
|
||||
Loading…
Add table
Add a link
Reference in a new issue