]> ruderich.org/simon Gitweb - config/dotfiles.git/commitdiff
vimrc: Add Shell syntax settings.
authorSimon Ruderich <simon@ruderich.org>
Sat, 7 Apr 2012 18:50:14 +0000 (20:50 +0200)
committerSimon Ruderich <simon@ruderich.org>
Sat, 7 Apr 2012 18:50:14 +0000 (20:50 +0200)
vimrc

diff --git a/vimrc b/vimrc
index 7716d8c467fe2ba4e7a9695c0a82e67d9d293a2f..11ee374f06113a46e716e2aa9204483c021bdaa0 100644 (file)
--- a/vimrc
+++ b/vimrc
@@ -559,6 +559,10 @@ if has('syntax')
     let g:perl_include_pod = 1 " syntax coloring for PODs
     " Python.
     let g:python_highlight_all = 1
+    " Shell.
+    let g:sh_noisk = 1        " don't add . to 'iskeyword'
+    let g:sh_is_posix = 1     " POSIX shell (e.g. dash) is compatible enough
+    let g:sh_fold_enabled = 7 " functions (1), heredoc (2) and if/do/for (4)
     " Vim.
     let g:vimsyn_embed = 0      " don't highlight embedded languages
     let g:vimsyn_folding = 'af' " folding for autogroups (a) and functions (f)