FM

//etc UP

if v:lang =~ "utf8$" || v:lang =~ "UTF-8$"
   set fileencodings=ucs-bom,utf-8,latin1
endif

set nocompatible	" Use Vim defaults (much better!)
set bs=indent,eol,start		" allow backspacing over everything in insert mode
"set ai			" always set autoindenting on
"set backup		" keep a backup file
set viminfo='20,\"50	" read/write a .viminfo file, don't store more
			" than 50 lines of registers
set history=50		" keep 50 lines of command line history
set ruler		" show the cursor position all the time

" Only do this part when compiled with support for autocommands
if has("autocmd")
  augroup redhat
  autocmd!
  " In text files, always limit the width of text to 78 characters
  " autocmd BufRead *.txt set tw=78
  " When editing a file, always jump to the last cursor position
  autocmd BufReadPost *
  \ if line("'\"") > 0 && line ("'\"") <= line("$") |
  \   exe "normal! g'\"" |
  \ endif
  " don't write swapfile on most commonly used directories for NFS mounts or USB sticks
  autocmd BufNewFile,BufReadPre /media/*,/run/media/*,/mnt/* set directory=~/tmp,/var/tmp,/tmp
  " start with spec file template
  autocmd BufNewFile *.spec 0r /usr/share/vim/vimfiles/template.spec
  augroup END
endif

if has("cscope") && filereadable("/usr/bin/cscope")
   set csprg=/usr/bin/cscope
   set csto=0
   set cst
   set nocsverb
   " add any database in current directory
   if filereadable("cscope.out")
      cs add $PWD/cscope.out
   " else add database pointed to by environment
   elseif $CSCOPE_DB != ""
      cs add $CSCOPE_DB
   endif
   set csverb
endif

" Switch syntax highlighting on, when the terminal has colors
" Also switch on highlighting the last used search pattern.
if &t_Co > 2 || has("gui_running")
  syntax on
  set hlsearch
endif

filetype plugin on

if &term=="xterm"
     set t_Co=8
     set t_Sb=[4%dm
     set t_Sf=[3%dm
endif

" Don't wake up system with blinking cursor:
" http://www.linuxpowertop.org/known.php
let &guicursor = &guicursor . ",a:blinkon0"
DIR_COLORS4536V
aliases1529V
alternatives-
bash_completion.d-
bashrc2917V
cl.nodejs-
cl.php.d-
cl.python-
cl.selector-
cl.selector.conf.d-
crypto-policies-
default-
environment36V
environment-modules-
fonts-
gcrypt-
group380V
host.conf9V
hosts1814V
inputrc942V
ld.so.cache46099V
ld.so.conf28V
ld.so.conf.d-
localtime127V
mail-
mc-
modulefiles-
motd.d-
my.cnf3377V
my.cnf.d-
nsswitch.conf2120V
odbc.ini0V
odbcinst.ini230V
openldap-
pam.d-
passwd974V
php.d-
php.ini62125V
pki-
profile2123V
profile.d-
protocols6568V
resolv.conf125V
rpc1634V
sasl2-
scl-
security-
services692816V
shadow740V
skel-
ssh-
ssl-
subversion-
sysconfig-
trusted-key.key375V
vimrc1982V
virc1204V
wgetrc4925V
Blog - Page 501 of 508 - My Melon - Digital Marketing & Creative Agency
Skip to content Skip to footer