1
0
Fork 0
numbers/nvim/ftplugin/sh.vim

15 lines
322 B
VimL

if !exists("b:sh_indent_options")
let b:sh_indent_options = {}
endif
let b:sh_indent_options['continuation-line'] = 2
if executable('shfmt')
let &l:formatprg='shfmt -i ' . &l:shiftwidth . ' -ln posix -sr -ci -s'
endif
nnoremap <buffer> D :Man <c-r><c-w><CR>
" allow for commands with - in the name
set iskeyword+=-