blob: 786fdf8110ef9fd25593265f66916e3a3cc5ba70 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
" ~/.vim/ftplugin/sh.vim
" Bourne shell scripts specific vim configuration
"
" Linters: sh, shellcheck
call matchadd('ColorColumn', '\%101v', 100)
setlocal textwidth=80
nnoremap <buffer> <leader>C :sp ~/.vim/ftplugin/sh/sh.vim<CR>
nnoremap <buffer> <leader>+x :!chmod 744 %<CR><CR>
nnoremap <buffer> <leader>x :w<CR>:!./%<Space>
nnoremap <buffer> <leader>e :Errors<CR>
inoremap <buffer> <leader>sh #!/bin/sh
inoremap <buffer> <leader>if if <+++>; then<CR><++><CR>fi<++><Esc>?<+++><CR>cf>
"inoremap <buffer> <leader>if <Esc>:read ~/.vim/ftplugin/sh/snippets/if.txt<CR>kdd/<+++><CR>cf>
|