Blame SOURCES/vimrc

d6ba96
if v:lang =~ "utf8$" || v:lang =~ "UTF-8$"
d6ba96
   set fileencodings=ucs-bom,utf-8,latin1
d6ba96
endif
d6ba96
d6ba96
set nocompatible	" Use Vim defaults (much better!)
d6ba96
set bs=indent,eol,start		" allow backspacing over everything in insert mode
d6ba96
"set ai			" always set autoindenting on
d6ba96
"set backup		" keep a backup file
d6ba96
set viminfo='20,\"50	" read/write a .viminfo file, don't store more
d6ba96
			" than 50 lines of registers
d6ba96
set history=50		" keep 50 lines of command line history
d6ba96
set ruler		" show the cursor position all the time
d6ba96
d6ba96
" Only do this part when compiled with support for autocommands
d6ba96
if has("autocmd")
d6ba96
  augroup redhat
d6ba96
  autocmd!
d6ba96
  " In text files, always limit the width of text to 78 characters
d6ba96
  " autocmd BufRead *.txt set tw=78
d6ba96
  " When editing a file, always jump to the last cursor position
d6ba96
  autocmd BufReadPost *
d6ba96
  \ if line("'\"") > 0 && line ("'\"") <= line("$") |
d6ba96
  \   exe "normal! g'\"" |
d6ba96
  \ endif
d6ba96
  " don't write swapfile on most commonly used directories for NFS mounts or USB sticks
d6ba96
  autocmd BufNewFile,BufReadPre /media/*,/run/media/*,/mnt/* set directory=~/tmp,/var/tmp,/tmp
d6ba96
  " start with spec file template
d6ba96
  autocmd BufNewFile *.spec 0r /usr/share/vim/vimfiles/template.spec
d6ba96
  augroup END
d6ba96
endif
d6ba96
d6ba96
if has("cscope") && filereadable("/usr/bin/cscope")
d6ba96
   set csprg=/usr/bin/cscope
d6ba96
   set csto=0
d6ba96
   set cst
d6ba96
   set nocsverb
d6ba96
   " add any database in current directory
d6ba96
   if filereadable("cscope.out")
d6ba96
      cs add $PWD/cscope.out
d6ba96
   " else add database pointed to by environment
d6ba96
   elseif $CSCOPE_DB != ""
d6ba96
      cs add $CSCOPE_DB
d6ba96
   endif
d6ba96
   set csverb
d6ba96
endif
d6ba96
d6ba96
" Switch syntax highlighting on, when the terminal has colors
d6ba96
" Also switch on highlighting the last used search pattern.
d6ba96
if &t_Co > 2 || has("gui_running")
d6ba96
  syntax on
d6ba96
  set hlsearch
d6ba96
endif
d6ba96
d6ba96
filetype plugin on
d6ba96
d6ba96
if &term=="xterm"
d6ba96
     set t_Co=8
d6ba96
     set t_Sb=?[4%dm
d6ba96
     set t_Sf=?[3%dm
d6ba96
endif
d6ba96
d6ba96
" Don't wake up system with blinking cursor:
d6ba96
" http://www.linuxpowertop.org/known.php
d6ba96
let &guicursor = &guicursor . ",a:blinkon0"