da4393
if v:lang =~ "utf8$" || v:lang =~ "UTF-8$"
da4393
   set fileencodings=ucs-bom,utf-8,latin1
da4393
endif
da4393
da4393
set nocompatible	" Use Vim defaults (much better!)
da4393
set bs=indent,eol,start		" allow backspacing over everything in insert mode
da4393
"set ai			" always set autoindenting on
da4393
"set backup		" keep a backup file
da4393
set history=50		" keep 50 lines of command line history
da4393
set ruler		" show the cursor position all the time
da4393
da4393
" Only do this part when compiled with support for autocommands
da4393
if has("autocmd")
da4393
  augroup fedora
da4393
  autocmd!
da4393
  " In text files, always limit the width of text to 78 characters
da4393
  " autocmd BufRead *.txt set tw=78
da4393
  " When editing a file, always jump to the last cursor position
da4393
  autocmd BufReadPost *
da4393
  \ if line("'\"") > 0 && line ("'\"") <= line("$") |
da4393
  \   exe "normal! g'\"" |
da4393
  \ endif
da4393
  " don't write swapfile on most commonly used directories for NFS mounts or USB sticks
da4393
  autocmd BufNewFile,BufReadPre /media/*,/run/media/*,/mnt/* set directory=~/tmp,/var/tmp,/tmp
da4393
  " start with spec file template
da4393
  autocmd BufNewFile *.spec 0r /usr/share/vim/vimfiles/template.spec
da4393
  augroup END
da4393
endif
da4393
da4393
da4393
if &term=="xterm"
da4393
     set t_Co=8
da4393
     set t_Sb=?[4%dm
da4393
     set t_Sf=?[3%dm
da4393
endif