+" In many terminal emulators the mouse works just fine. By enabling it you
+" can position the cursor, Visually select and scroll with the mouse.
+"
+" | We prefer to disable the mouse usage though and use what we're used
+" | from older Vim versions.
+" |
+" | if has('mouse')
+" | set mouse=a
+" | endif
+if has('mouse')
+ set mouse=
+endif
+
+" Switch syntax highlighting on when the terminal has colors or when using the
+" GUI (which always has colors).
+if &t_Co > 2 || has("gui_running")
+ " Revert with ":syntax off".
+ syntax on
+
+ " I like highlighting strings inside C comments.
+ " Revert with ":unlet c_comment_strings".
+ let c_comment_strings=1
+endif
+
+" Only do this part when Vim was compiled with the +eval feature.
+if 1
+
+ " Enable file type detection.
+ " Use the default filetype settings, so that mail gets 'tw' set to 72,
+ " 'cindent' is on in C files, etc.
+ " Also load indent files, to automatically do language-dependent indenting.
+ " Revert with ":filetype off".
+ filetype plugin indent on
+
+ " Put these in an autocmd group, so that you can revert them with:
+ " ":augroup vimStartup | au! | augroup END"
+ augroup vimStartup
+ au!
+
+ " When editing a file, always jump to the last known cursor position.
+ " Don't do it when the position is invalid, when inside an event handler
+ " (happens when dropping a file on gvim) and for a commit message (it's
+ " likely a different one than last time).
+ autocmd BufReadPost *
+ \ if line("'\"") >= 1 && line("'\"") <= line("$") && &ft !~# 'commit'
+ \ | exe "normal! g`\""
+ \ | endif
+
+ augroup END
+
+endif
+
+" Convenient command to see the difference between the current buffer and the
+" file it was loaded from, thus the changes you made.
+" Only define it when not defined already.
+" Revert with: ":delcommand DiffOrig".
+if !exists(":DiffOrig")
+ command DiffOrig vert new | set bt=nofile | r ++edit # | 0d_ | diffthis
+ \ | wincmd p | diffthis
+endif
+
+if has('langmap') && exists('+langremap')
+ " Prevent that the langmap option applies to characters that result from a
+ " mapping. If set (default), this may break plugins (but it's backward
+ " compatible).
+ set nolangremap
+endif
+
+" | End of defaults.vim related stuff }
+
+" Begin of custom Grml configuration {
+" The Grml-Team believes that the options and configuration values which override
+" the Vim defaults are useful and helpful for our users.
+"
+" A lot of options are Grml defaults since the very start and we cleaned up as
+" much as possible but if you do not like any of these settings feel free to
+" change them back in your user vimrc or file a bug and tell us to change the
+" default.
+"
+" The idea behind commented out options and configuration values is to show
+" you interesting settings you should know about but we did not set them by
+" default because they might have to much of an impact for everyone.
+"
+" If a commented option precedes an option set by us it usually shows the
+" Vim default.
+
+ set autoindent " always set autoindenting on
+ set dictionary=/usr/share/dict/words " used with CTRL-X CTRL-K
+ set esckeys " recognize keys that start with <Esc> in insert mode
+ set formatoptions=cqrt " list of flags that tell how automatic formatting works
+ set laststatus=2 " when to use a status line for the last window
+ set nobackup " don't keep a backup file
+ set noerrorbells " don't ring the bell (beep or screen flash) for error messages
+ set nostartofline " keep cursor in the same column (if possible) when moving cursor
+ set pastetoggle=<f11> " don't change text when copy/pasting
+ set shortmess=at " list of flags to make messages shorter
+ set showmatch " show matching brackets.
+ set textwidth=0 " don't wrap lines by default
+ set viminfo=%,'100,<100,s10,h " what to store in .viminfo file
+ set visualbell " use a visual bell instead of beeping
+ set whichwrap=<,>,h,l " list of flags specifying which commands wrap to another line
+
+" set expandtab " Use appropriate number of spaces to insert a <Tab>
+" set linebreak " Don't wrap words by default
+ set ignorecase " Do case insensitive matching
+ set smartcase " Do smart case matching
+" set autowrite " Automatically save before commands like :next and :make
+" set nodigraph " enter characters that normally cannot be entered by an ordinary keyboard
+
+" list of strings used for list mode
+" set list listchars=eol:$
+ set listchars=eol:$,precedes:«,extends:»,tab:»·,trail:·
+
+" list of file names to search for tags
+" set tags=./tags,tags
+ set tags=./tags,./TAGS,tags,TAGS,../tags,../../tags,../../../tags,../../../../tags