X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=vimrc;h=a585717b03e14bae75e5fd247ad315770c781e9a;hb=d37065a3aca383c1663ec416a25ea54ede925b1b;hp=72a19f770e2790ba84ca59844c638f739814392e;hpb=b33a673c7ed168beb3f280bf347412114b86d8b1;p=config%2Fdotfiles.git diff --git a/vimrc b/vimrc index 72a19f7..a585717 100644 --- a/vimrc +++ b/vimrc @@ -23,6 +23,9 @@ set nocompatible set runtimepath-=~/.vim set runtimepath^=~/.vim,~/.vim/runtime +" Don't store swap files in the same directory as the edited file. +set directory-=. + " Disable modelines as they may cause security problems. Instead use " securemodelines (Vim script #1876). set nomodeline @@ -111,6 +114,11 @@ set background=dark " Display line numbers. set number +" But use as little space as necessary for the numbers column. Thanks to James +" Vega (http://git.jamessan.com/?p=etc/vim.git;a=summary). +if v:version >= 700 + set numberwidth=1 +endif " Display the ruler with current line/file position. If 'statusline' is used " then this only affects . set ruler