X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=vimrc;h=e8f19ff6c6cc38cd93b3b37e64384306e2443f1a;hb=b0086513fce699422e101d079820316b1a7a438d;hp=49ccdfe41a784401b41b709f8a116455cecf710e;hpb=cb06ad5988e1b0d06f851e0de56507323c6f42fa;p=config%2Fdotfiles.git diff --git a/vimrc b/vimrc index 49ccdfe..e8f19ff 100644 --- a/vimrc +++ b/vimrc @@ -1,6 +1,6 @@ " Vim main configuration file. -" Copyright (C) 2008-2013 Simon Ruderich +" Copyright (C) 2008-2016 Simon Ruderich " " This file is free software: you can redistribute it and/or modify " it under the terms of the GNU General Public License as published by @@ -46,6 +46,11 @@ set nocompatible " precaution just in case somebody enables 'exrc'. set secure +" Try to use pipes instead of temporary files. Prevents some auto commands +" from running for temporary files but also prevents the file's content to be +" written to disk. +set noshelltemp + " Use UTF-8 for all internal data (buffers, registers, etc.). This doesn't " affect reading files in different encodings, see 'fileencodings' for that. set encoding=utf-8 @@ -526,6 +531,11 @@ cmap cnoremap cnoremap +" Use :tjump to lookup tags (instead of :tag) which lists all available tags +" if there's more than one match. This is really helpful in larger projects +" where tags may occur multiple times. +nnoremap g + if has('eval') " Don't move the cursor to the first column for certain scroll commands (, , ). Thanks to jamessan in #vim on Freenode (2011-08-31 @@ -885,6 +895,7 @@ if has('syntax') " 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: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 @@ -912,6 +923,10 @@ if has('eval') \ 'sw', 'sts', 'noet'] endif +" Settings for gnupg. + " Don't use temporary files for sensitive data. + let g:GPGUsePipes = 1 + " Settings for the NERD commenter. " Don't create any mappings I don't want to use. let g:NERDCreateDefaultMappings = 0