diff options
author | InigoGutierrez <inigogf.95@gmail.com> | 2019-12-04 17:42:12 +0100 |
---|---|---|
committer | InigoGutierrez <inigogf.95@gmail.com> | 2019-12-04 17:42:12 +0100 |
commit | c5fde9c69aa5c8c14fbe354a86f4835ab2869637 (patch) | |
tree | 7e9178ede55cde164cc672b9899d23a6d4b3bcf3 /files/vim/ftplugin/sh/sh.vim | |
parent | 54835a472f09615457b6fcbf093af497c5c714ec (diff) | |
download | configs-c5fde9c69aa5c8c14fbe354a86f4835ab2869637.tar.gz configs-c5fde9c69aa5c8c14fbe354a86f4835ab2869637.zip |
Added calcurse module to i3blocks and reorganized vim files.
Diffstat (limited to 'files/vim/ftplugin/sh/sh.vim')
-rw-r--r-- | files/vim/ftplugin/sh/sh.vim | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/files/vim/ftplugin/sh/sh.vim b/files/vim/ftplugin/sh/sh.vim new file mode 100644 index 0000000..202280d --- /dev/null +++ b/files/vim/ftplugin/sh/sh.vim @@ -0,0 +1,15 @@ +" ~/.vim/ftplugin/sh.vim +" Bourne shell scripts specific vim configuration +" +" Linters: sh, shellcheck + +call matchadd('ColorColumn', '\%101v', 100) + +nnoremap <leader>C :sp ~/.vim/ftplugin/sh/sh.vim<CR> +nnoremap <leader>+x :!chmod 744 %<CR><CR> +nnoremap <leader>x :w<CR>:!./%<Space> +nnoremap <leader>e :Errors<CR> + +inoremap <leader>sh #!/bin/sh +inoremap <leader>if if <+++>; then<CR><++><CR>fi<++><Esc>?<+++><CR>cf> +"inoremap <leader>if <Esc>:read ~/.vim/ftplugin/sh/snippets/if.txt<CR>kdd/<+++><CR>cf> |