前言

直接可以把这个配置覆盖掉现在安装目录Vim底下的"_vimrc"文件

效果图

Code:

set number
set tabstop=4
set softtabstop=4
set shiftwidth=4
set mouse=a
set smartindent
set nu
set textwidth=0 set guifont=Courier_New:h14:cANSI colorscheme evening map <F9> : !g++ % -o %<.exe -g -Wall -Wextra -Wconversion && size %<.exe <CR>
map <F12> : !python % <CR>
map <F5> : !gdb %< <CR>
map <F11> : !javac % <CR>
map <F10> : !java %< <CR> source $VIMRUNTIME/vimrc_example.vim
source $VIMRUNTIME/mswin.vim
behave mswin set diffexpr=MyDiff()
function MyDiff()
let opt = '-a --binary '
if &diffopt =~ 'icase' | let opt = opt . '-i ' | endif
if &diffopt =~ 'iwhite' | let opt = opt . '-b ' | endif
let arg1 = v:fname_in
if arg1 =~ ' ' | let arg1 = '"' . arg1 . '"' | endif
let arg1 = substitute(arg1, '!', '\!', 'g')
let arg2 = v:fname_new
if arg2 =~ ' ' | let arg2 = '"' . arg2 . '"' | endif
let arg2 = substitute(arg2, '!', '\!', 'g')
let arg3 = v:fname_out
if arg3 =~ ' ' | let arg3 = '"' . arg3 . '"' | endif
let arg3 = substitute(arg3, '!', '\!', 'g')
if $VIMRUNTIME =~ ' '
if &sh =~ '\<cmd'
if empty(&shellxquote)
let l:shxq_sav = ''
set shellxquote&
endif
let cmd = '"' . $VIMRUNTIME . '\diff"'
else
let cmd = substitute($VIMRUNTIME, ' ', '" ', '') . '\diff"'
endif
else
let cmd = $VIMRUNTIME . '\diff'
endif
let cmd = substitute(cmd, '!', '\!', 'g')
silent execute '!' . cmd . ' ' . opt . arg1 . ' ' . arg2 . ' > ' . arg3
if exists('l:shxq_sav')
let &shellxquote=l:shxq_sav
endif
endfunction

-----------------------------------------------------------THE END-------------------------------------------------------

最新文章

  1. 注解:【基于外键的】Hibernate双向1-&gt;1关联
  2. 第三节 构造一个简单的Linux系统MenuOS——20135203齐岳
  3. WebApi 使用PUT和DELETE时报405的问题
  4. php访问mysql工具类
  5. Android——显示单位px和dip以及sp的区别
  6. Json-lib - java.util.Date 转换问题
  7. bzoj 1922 [Sdoi2010]大陆争霸(最短路变形)
  8. 10.21_Nutz批量插入顺序,POI,wiki持续关注,POI,SSH,数据库优先
  9. c#字符串驻留机制
  10. Sql Server索引(转载)
  11. 深入理解Scala的隐式转换系统
  12. FastReport的再次使用
  13. golang的linux安装
  14. BM25和Lucene Default Similarity比较 (原文标题:BM25 vs Lucene Default Similarity)
  15. C#多线程的用法5-线程间的协作Monitor
  16. 大数据 --&gt; CAP原理和最终一致性
  17. jenkins centos slave起不来报错The SSH key presented by the remote host does not match the key saved in the Known Hosts file against this host. Connections to this host will be denied until the two keys mat
  18. 20. Valid Parentheses ★
  19. UVA208-Firetruck(并查集+dfs)
  20. 20172328《程序设计与数据结构》实验四 Android程序设计报告

热门文章

  1. bit/byte/ascii/unicode
  2. tf.nn.bias_add 激活函数
  3. 自己总结 :并发队列ConcurrentLinkedQueue、阻塞队列AraayBlockingQueue、阻塞队列LinkedBlockingQueue 区别 和 使用场景总结
  4. [一起读源码]走进C#并发队列ConcurrentQueue的内部世界 — .NET Core篇
  5. JUC强大的辅助类讲解---&gt;&gt;&gt;CountDownLatchDemo (减少计数)
  6. HttpWebRequest在Post的时候,遇到特殊符号+号(加号)变成空格了
  7. 阿里Canal框架数据库同步-实战教程
  8. Persona &amp; User Scenario
  9. 利用浏览器的console篡改cookie
  10. 带权值的图 BFS