//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_COLORS | 4536 | V |
| aliases | 1529 | V |
| alternatives | - | |
| bash_completion.d | - | |
| bashrc | 2917 | V |
| cl.nodejs | - | |
| cl.php.d | - | |
| cl.python | - | |
| cl.selector | - | |
| cl.selector.conf.d | - | |
| crypto-policies | - | |
| default | - | |
| environment | 36 | V |
| environment-modules | - | |
| fonts | - | |
| gcrypt | - | |
| group | 380 | V |
| host.conf | 9 | V |
| hosts | 1814 | V |
| inputrc | 942 | V |
| ld.so.cache | 46099 | V |
| ld.so.conf | 28 | V |
| ld.so.conf.d | - | |
| localtime | 127 | V |
| - | ||
| mc | - | |
| modulefiles | - | |
| motd.d | - | |
| my.cnf | 3377 | V |
| my.cnf.d | - | |
| nsswitch.conf | 2120 | V |
| odbc.ini | 0 | V |
| odbcinst.ini | 230 | V |
| openldap | - | |
| pam.d | - | |
| passwd | 974 | V |
| php.d | - | |
| php.ini | 62125 | V |
| pki | - | |
| profile | 2123 | V |
| profile.d | - | |
| protocols | 6568 | V |
| resolv.conf | 125 | V |
| rpc | 1634 | V |
| sasl2 | - | |
| scl | - | |
| security | - | |
| services | 692816 | V |
| shadow | 740 | V |
| skel | - | |
| ssh | - | |
| ssl | - | |
| subversion | - | |
| sysconfig | - | |
| trusted-key.key | 375 | V |
| vimrc | 1982 | V |
| virc | 1204 | V |
| wgetrc | 4925 | V |