" Authors: grml-team (grml.org), (c) Michael Prokop <mika@grml.org>
" Bug-Reports: see http://grml.org/bugs/
" License: This file is licensed under the GPL v2.
-" Latest change: Sam Feb 10 11:07:20 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
" 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 <Esc>:let current_reg = @"<CR>gvdi<C-R>=current_reg<CR><Esc>
-
" Vim5 and later versions support syntax highlighting.
" Just load the main syntax file when Vim was compiled with "+syntax".
if has("syntax")
syntax on
- fi
+ endif
" Debian uses compressed helpfiles. We must inform vim that the main
" helpfiles is compressed. Other helpfiles are stated in the tags-file.
" When switching between different buffers you can't use undo without 'set hidden':
set hidden " Hide buffers when they are abandoned
" set mouse=a " Enable mouse usage (all modes) in terminals
+ set wildmenu " command-line completion operates in an enhanced mode
set pastetoggle=<f11> " 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')
+ set t_ts=\ek
+ set t_fs=\e\
+ 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")