X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=vimrc;h=7d1f0aef93967db3d0904d25770e50477755116d;hb=63c87697a4eafe134ae1196021afd8441c6b4e33;hp=612ebd98a3ff65841e8f4abba48eac4655d9d302;hpb=c778ff27e474ceea3dbae546c5c62d28f1b13ebd;p=config%2Fdotfiles.git diff --git a/vimrc b/vimrc index 612ebd9..7d1f0ae 100644 --- a/vimrc +++ b/vimrc @@ -4,7 +4,7 @@ " EDITOR SETTINGS " Prevent editing as root as it may cause security problems. Use sudoedit -" instead. Thanks to godlygeek in #vim on Freenode (2009-06-19 22:21). +" instead. Thanks to godlygeek in #vim on Freenode (2009-06-19 22:21 CEST). if $HOME == '/root' || exists('$SUDO_USER') echomsg 'Running as root is forbidden! Use sudoedit.' qall @@ -206,7 +206,7 @@ cmap cmap " Use Ctrl-P/Ctrl-N as replacement for / in command mode. Thanks to -" abstrakt and grayw in #vim on Freenode (2010-04-12 21:20). +" abstrakt and grayw in #vim on Freenode (2010-04-12 21:20 CEST). cnoremap cnoremap @@ -214,8 +214,13 @@ cnoremap nnoremap nnoremap - +" Behave like 'scrolloff' but only while searching. Thanks to "Benjamin R. +" Haskell" from the Vim mailing list (2010-10-26). +nnoremap n nzv3j3k +nnoremap N Nzv3k3j + " Go to next and previous buffer. Thanks to elik in #vim on Freenode -" (2010-05-16 18:38) for this idea. +" (2010-05-16 18:38 CEST) for this idea. nnoremap gb :bnext nnoremap gB :bprev