[root@guolicheng ~]# cat  /etc/vimrc
if v:lang =~ "utf8$" || v:lang =~ "UTF-8$"
set fileencodings=ucs-bom,utf-,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= " 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=
" When editing a file, always jump to the last cursor position
autocmd BufReadPost *
\ if line("'\"") > && 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/*,/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 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"
[root@guolicheng ~]#

最新文章

  1. js中Window 对象及其的方法
  2. 用Java操作树莓派!pi4j简介与安装
  3. Java实验五报告——TCP传输及加解密
  4. Java 集合深入理解(11):LinkedList
  5. 从投影的角度理解pca:向量,投影,基,内积,坐标,维数,分散程度,方差,协方差矩阵,对角化,特征值分解,主成分分析PCA
  6. 从a站点跳转到b站点,通过url的参数判断是否让该用户选择身份
  7. WebService开发步骤
  8. java编码详解
  9. ubuntu指令记录
  10. java+testng接口测试入门
  11. vue本地项目设置通过手机访问
  12. 如何让你的 React Native 应用在键盘弹出时优雅地响应
  13. 剑指offer(一):二维数组中的查找
  14. 【xsy2818】 最近点 动态树分治+可持久化线段树
  15. 利用https实现站点的访问
  16. 随机取出数组中的某些值,并删除它们array_splice,array_slice
  17. AssetBundleMaster
  18. 最简单的GLSL,Shader
  19. [LeetCode]3Sum Closest题解
  20. VBScript开发Excel常见问题

热门文章

  1. jmeter遇到的问题:java.net.ConnectException: Connection refused: connect
  2. NIO 详解
  3. 应用上云新模式,Aliware 全家桶亮相杭州云栖大会
  4. 树上思维题——cf1060E
  5. Docker系列(四):Docker容器互联
  6. Django2.0+小程序技术打造微信小程序助手✍✍✍
  7. USACO 2008 November Gold Cheering up the Cows /// MST oj24381
  8. Lost&#39;s revenge HDU - 3341 AC自动机+DP(需要学会如何优雅的压缩状态)
  9. 面试系列24 dubbo负载均衡策略和集群容错策略
  10. java_Collections工具