X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=etc%2Fskel%2F.vimrc;h=7ef9a4297533d3bacea07836a0068542bd875857;hb=dbb49d444f52afd54c0a5b11705a769a0f801e32;hp=9da75832f17a889a4026e057ea1381569698d37f;hpb=fdc8e8a0089fc457478464f8cbe4b89a813b27fc;p=grml-etc-core.git diff --git a/etc/skel/.vimrc b/etc/skel/.vimrc index 9da7583..7ef9a42 100644 --- a/etc/skel/.vimrc +++ b/etc/skel/.vimrc @@ -3,7 +3,6 @@ " 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: Mon Jun 05 16:30:29 CEST 2006 [mika] "############################################################################### " Thanks to Sven Guckes for his template! "############################################################################### @@ -11,28 +10,35 @@ " be no-compatible with vi set nocp " turn these ON: - set digraph ek hidden ruler sc vb wmnu + set ek hidden ruler sc vb wmnu +" set digraph " turn these OFF ("no" prefix): - set noeb noet nosol + set nodigraph noeb noet nosol " non-toggles: - set bs=2 fo=cqrt ls=2 shm=at tw=72 ww=<,>,h,l + set bs=2 fo=cqrt ls=2 shm=at ww=<,>,h,l +" set bs=2 fo=cqrt ls=2 shm=at tw=72 ww=<,>,h,l set comments=b:#,:%,fb:-,n:>,n:) " set list listchars=tab:»·,trail:· set listchars=eol:$,precedes:«,extends:»,tab:»·,trail:· set viminfo=%,'50,\"100,:100,n~/.viminfo + set tags=./tags,./TAGS,tags,TAGS,../tags,../../tags,../../../tags,../../../../tags " autocommands: " when the file type is "mail" then set the textwidth to "70": - au FileType mail set tw=70 + if has("autocmd") + au FileType mail set tw=70 " When editing a file, always jump to the last cursor position " au BufReadPost * if line("'\"") | exe "'\"" | endif - autocmd BufReadPost * if line("'\"") && line("'\"") <= line("$") | exe "normal `\"" | endif + autocmd BufReadPost * if line("'\"") && line("'\"") <= line("$") | exe "normal `\"" | endif + endif " some colors - as an example "white on black" [use bold fonts]: " hi normal ctermfg=white ctermbg=black guifg=white guibg=black " hi nontext ctermfg=blue ctermbg=black guifg=blue guibg=black -" switch on syntax coloring!! "bunt ist meine lieblingsfarbe!" :-) - syn on + if has("syntax") + syn on + endif +" set t_Co=256 " number of colors " some useful mappings: set pastetoggle= @@ -72,6 +78,16 @@ " Kill quote spaces (when quoting a quote) map ,kqs mz:%s/^> >/>>/ +" Interface to Mercurial Version Control + if filereadable( "/usr/share/doc/mercurial/examples/vim/hg-menu.vim" ) + source /usr/share/doc/mercurial/examples/vim/hg-menu.vim + endif + +" source local configuration file + if filereadable(expand("$HOME/.vimrc.local")) + source $HOME/.vimrc.local + endif + " Vim 7 brings cool new features - see ':he version7'! " The coolest features of Vim7 by mika " ==================================== @@ -104,7 +120,7 @@ if version >= 700 map :set spell!:echo "Spell Check: " . strpart("OffOn", 3 * &spell, 3) set spellfile=~/.vim/spellfile.add " change language - get spell files from http://ftp.vim.org/pub/vim/runtime/spell/ => - " cd ~/.vim/spell && wget http://ftp.vim.org/pub/vim/runtime/spell/de.latin1.spl + " cd ~/.vim/spell && wget http://ftp.vim.org/pub/vim/runtime/spell/de.{latin1,utf-8}.spl " change to german: " set spelllang=de " highlight spelling correction: