X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=vimrc;h=644b59c1ac9aa2fe93f40dea0dda31842b9b915f;hb=2f291940dcca8ae31d4c5c523ad254e75169f56f;hp=a6ea6aef32087b76efd8867cc47e82774614ccaa;hpb=51937524f49e7ce03cff2a5005359a5448a27151;p=config%2Fdotfiles.git diff --git a/vimrc b/vimrc index a6ea6ae..644b59c 100644 --- a/vimrc +++ b/vimrc @@ -11,6 +11,10 @@ set nocompatible set runtimepath-=~/.vim set runtimepath^=~/.vim,~/.vim/plugins,~/.vim/runtime +" Disable modelines as they may cause security problems. Instead use +" securemodelines (Vim script #1876). +set nomodeline + " When completing paths first use the longest path then display a list of all " possible files. set wildmode=longest,list @@ -118,6 +122,18 @@ set listchars=trail:-,nbsp:!,extends:> nnoremap nnoremap - +" Fast access to buffers. +nnoremap 1 :1b +nnoremap 2 :2b +nnoremap 3 :3b +nnoremap 4 :4b +nnoremap 5 :5b +nnoremap 6 :6b +nnoremap 7 :7b +nnoremap 8 :8b +nnoremap 9 :9b +nnoremap 0 :10b + " Maps to change spell language between English and German and disable it. if v:version >= 700 map sn :set nospell