mirror of
https://github.com/neovim/neovim.git
synced 2025-12-11 09:02:40 +00:00
runtime/zsh: 23515b4ef7580af8b9d3b964a558ab2007cacda5
port zsh ftplugin only.
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
" Language: Zsh shell script
|
" Language: Zsh shell script
|
||||||
" Maintainer: Christian Brabandt <cb@256bit.org>
|
" Maintainer: Christian Brabandt <cb@256bit.org>
|
||||||
" Previous Maintainer: Nikolai Weibull <now@bitwi.se>
|
" Previous Maintainer: Nikolai Weibull <now@bitwi.se>
|
||||||
" Latest Revision: 2020-01-10
|
" Latest Revision: 2020-09-01
|
||||||
" License: Vim (see :h license)
|
" License: Vim (see :h license)
|
||||||
" Repository: https://github.com/chrisbra/vim-zsh
|
" Repository: https://github.com/chrisbra/vim-zsh
|
||||||
|
|
||||||
@@ -19,20 +19,21 @@ setlocal comments=:# commentstring=#\ %s formatoptions-=t formatoptions+=croql
|
|||||||
let b:undo_ftplugin = "setl com< cms< fo< "
|
let b:undo_ftplugin = "setl com< cms< fo< "
|
||||||
|
|
||||||
if executable('zsh')
|
if executable('zsh')
|
||||||
if !has('gui_running') && executable('less')
|
if !has('gui_running') && executable('less')
|
||||||
command! -buffer -nargs=1 RunHelp silent exe '!zsh -ic "autoload -Uz run-help; run-help <args> 2>/dev/null | LESS= less"' | redraw!
|
command! -buffer -nargs=1 RunHelp silent exe '!MANPAGER= zsh -ic "autoload -Uz run-help; run-help <args> 2>/dev/null | LESS= less"' | redraw!
|
||||||
elseif has('terminal')
|
elseif has('terminal')
|
||||||
command! -buffer -nargs=1 RunHelp silent exe ':term zsh -ic "autoload -Uz run-help; run-help <args>"'
|
command! -buffer -nargs=1 RunHelp silent exe ':term zsh -ic "autoload -Uz run-help; run-help <args>"'
|
||||||
else
|
else
|
||||||
command! -buffer -nargs=1 RunHelp echo system('zsh -ic "autoload -Uz run-help; run-help <args> 2>/dev/null"')
|
command! -buffer -nargs=1 RunHelp echo system('zsh -ic "autoload -Uz run-help; run-help <args> 2>/dev/null"')
|
||||||
endif
|
endif
|
||||||
|
if !exists('current_compiler')
|
||||||
|
compiler zsh
|
||||||
|
endif
|
||||||
setlocal keywordprg=:RunHelp
|
setlocal keywordprg=:RunHelp
|
||||||
setlocal makeprg=zsh\ -n\ --\ %:S
|
let b:undo_ftplugin .= 'keywordprg<'
|
||||||
setlocal errorformat=%f:\ line\ %l:\ %m
|
|
||||||
let b:undo_ftplugin .= 'keywordprg< errorformat< makeprg<'
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
let b:match_words = ',\<if\>:\<elif\>:\<else\>:\<fi\>'
|
let b:match_words = '\<if\>:\<elif\>:\<else\>:\<fi\>'
|
||||||
\ . ',\<case\>:^\s*([^)]*):\<esac\>'
|
\ . ',\<case\>:^\s*([^)]*):\<esac\>'
|
||||||
\ . ',\<\%(select\|while\|until\|repeat\|for\%(each\)\=\)\>:\<done\>'
|
\ . ',\<\%(select\|while\|until\|repeat\|for\%(each\)\=\)\>:\<done\>'
|
||||||
let b:match_skip = 's:comment\|string\|heredoc\|subst'
|
let b:match_skip = 's:comment\|string\|heredoc\|subst'
|
||||||
|
|||||||
Reference in New Issue
Block a user