X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=vimrc;h=9c3833a734067cd47e2f92b1014417daeabde6b9;hb=8cfa49a8e2ffcc459afe1c6765c34d2f5aae96f4;hp=7bf163f4bc2ab40f0a110e34f974414c98eee8a3;hpb=d37c09370e06f84c73e9e0c4750da5ef1c3d4bf9;p=config%2Fdotfiles.git diff --git a/vimrc b/vimrc index 7bf163f..9c3833a 100644 --- a/vimrc +++ b/vimrc @@ -51,7 +51,7 @@ set runtimepath^=~/.vim,~/.vim/runtime " Don't store swap files in the same directory as the edited file. set directory-=. -" But store them in ~/.tmp if available. +" But store them in ~/.tmp if available or ~/tmp (used by default). set directory^=~/.tmp " Disable modelines as they may cause security problems. Instead use @@ -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) @@ -572,9 +576,9 @@ endif if has('eval') " Use pathogen which allows one 'runtimepath' entry per plugin. This makes " installing/removing/updating plugins simple. (Used for plugins with more -" than one file.) +" than one file.) Ignore errors in case pathogen is not installed. if v:version >= 700 - execute 'call pathogen#runtime_append_all_bundles()' + silent! execute 'call pathogen#runtime_append_all_bundles()' endif " Settings for the NERD commenter. @@ -634,6 +638,12 @@ if has('autocmd') autocmd QuickFixCmdPre * write endif +" Don't ignore case while in insert mode, but ignore case in all other modes. +" This causes / to honor the case and thus only complete matching +" capitalization. But while searching (/) 'ignorecase' is used. + autocmd InsertEnter * set noignorecase + autocmd InsertLeave * set ignorecase + " AFTER/FTPLUGIN AUTO COMMANDS " Disable spell checking for files which don't need it.