home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2007 September / PCWSEP07.iso / Software / Linux / Linux Mint 3.0 Light / LinuxMint-3.0-Light.iso / casper / filesystem.squashfs / usr / share / vim / vim70 / debian.vim
Encoding:
Text File  |  2007-05-22  |  2.4 KB  |  71 lines

  1.  
  2. " Debian system-wide default configuration Vim
  3.  
  4. set runtimepath=~/.vim,/var/lib/vim/addons,/usr/share/vim/addons,/usr/share/vim/vimfiles,/usr/share/vim/vim70,/usr/share/vim/vimfiles/after,/usr/share/vim/addons/after,/var/lib/vim/addons/after,~/.vim/after
  5.  
  6. " Normally we use vim-extensions. If you want true vi-compatibility
  7. " remove change the following statements
  8. if exists('g:debian_cp')  " vim-tiny was started as vi. don't set remaining options
  9. else
  10.   set nocompatible    " Use Vim defaults instead of 100% vi compatibility
  11.   set backspace=indent,eol,start    " more powerful backspacing
  12.  
  13.   " Now we set some defaults for the editor
  14.   " set autoindent        " always set autoindenting on
  15.   " set linebreak        " Don't wrap words by default
  16.   set textwidth=0        " Don't wrap lines by default
  17.   set nobackup
  18.   set viminfo='20,\"50    " read/write a .viminfo file, don't store more than
  19.               " 50 lines of registers
  20.   set history=50        " keep 50 lines of command line history
  21.   set ruler        " show the cursor position all the time
  22.  
  23.   " Suffixes that get lower priority when doing tab completion for filenames.
  24.   " These are files we are not likely to want to edit or read.
  25.   set suffixes=.bak,~,.swp,.o,.info,.aux,.log,.dvi,.bbl,.blg,.brf,.cb,.ind,.idx,.ilg,.inx,.out,.toc
  26.  
  27.   " We know xterm-debian is a color terminal
  28.   if &term =~ "xterm-debian" || &term =~ "xterm-xfree86"
  29.     set t_Co=16
  30.     set t_Sf=%dm
  31.     set t_Sb=%dm
  32.   endif
  33.  
  34.   if has("autocmd")
  35.    " Enabled file type detection
  36.    " Use the default filetype settings. If you also want to load indent files
  37.    " to automatically do language-dependent indenting add 'indent' as well.
  38.    filetype plugin on
  39.  
  40.   endif " has ("autocmd")
  41.  
  42.   " Some Debian-specific things
  43.   if has("autocmd")
  44.     " set mail filetype for reportbug's temp files
  45.     augroup debian
  46.       au BufRead reportbug.*        set ft=mail
  47.       au BufRead reportbug-*        set ft=mail
  48.     augroup END
  49.   endif
  50.  
  51.   " Set paper size from /etc/papersize if available (Debian-specific)
  52.   if filereadable("/etc/papersize")
  53.     try
  54.       let s:shellbak = &shell
  55.       let &shell="/bin/sh"
  56.       let s:papersize = matchstr(system("cat /etc/papersize"), "\\p*")
  57.       let &shell=s:shellbak
  58.       if strlen(s:papersize)
  59.         let &printoptions = "paper:" . s:papersize
  60.       endif
  61.     catch /^Vim\%((\a\+)\)\=:E145/
  62.     endtry
  63.   endif
  64.  
  65.   if has('gui_running')
  66.     " Make shift-insert work like in Xterm
  67.     map <S-Insert> <MiddleMouse>
  68.     map! <S-Insert> <MiddleMouse>
  69.   endif
  70. endif
  71.