X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=etc%2Fvim%2Fvimrc;h=2a7dd0ff6868d1c8cc0432f2c5894bdf36e28a78;hb=26ec56414ddaa420642dc857bfb224386632023a;hp=3ec9b039c75922a0b83f048af6cfa432097b373d;hpb=031ad3ac7432514b0ddbf1c10c9f1a99ba21a335;p=grml-etc-core.git diff --git a/etc/vim/vimrc b/etc/vim/vimrc index 3ec9b03..2a7dd0f 100644 --- a/etc/vim/vimrc +++ b/etc/vim/vimrc @@ -3,7 +3,7 @@ " Authors: grml-team (grml.org), (c) Michael Prokop " Bug-Reports: see http://grml.org/bugs/ " License: This file is licensed under the GPL v2. -" Latest change: Fre Mär 09 15:33:45 CET 2007 [mika] +" Latest change: Mon Dez 24 21:07:04 CET 2007 [mika] """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " All system-wide defaults are set in $VIMRUNTIME/debian.vim (usually just @@ -46,9 +46,6 @@ " These are files we are not likely to want to edit or read. set suffixes=.bak,~,.swp,.o,.info,.aux,.log,.dvi,.bbl,.blg,.brf,.cb,.ind,.idx,.ilg,.inx,.out,.toc -" Make p in Visual mode replace the selected text with the "" register. - vnoremap p :let current_reg = @"gvdi=current_reg - " Vim5 and later versions support syntax highlighting. " Just load the main syntax file when Vim was compiled with "+syntax". if has("syntax") @@ -98,6 +95,15 @@ set pastetoggle= " don't change text when copy/pasting set dictionary=/usr/share/dict/word " used with CTRL-X CTRL-K +""" set the screen hardstatus to vim(filename.ext) + if ((&term =~ '^screen') && ($VIM_PLEASE_SET_TITLE =~ '^yes$') || has('gui_running')) + set t_ts=k + set t_fs=\ + set title + autocmd BufEnter * let &titlestring = "vim(" . expand("%:t") . ")" + let &titleold = fnamemodify(&shell, ":t") + endif + " Source a global configuration file if available " Deprecated by Debian but still supported by grml if filereadable("/etc/vim/vimrc.local")