cat ~/.vimrc
syntax on
set nu
set encoding=utf-8
set ts=4
set fileencodings=ucs-bom,utf-8,cp936
set fileencoding=gb2312
set termencoding=utf-8 """""""""""""""""""""" "Quickly Run """"""""""""""""""""""
map <F5> :call CompileRunGcc()<CR>
func! CompileRunGcc()
exec "w"
if &filetype == 'c'
exec "!g++ % -o %<"
exec "!time ./%<"
elseif &filetype == 'cpp'
exec "!g++ % -o %<"
exec "!time ./%<"
elseif &filetype == 'java'
exec "!javac %"
exec "!time java %<"
elseif &filetype == 'sh'
:!time bash %
elseif &filetype == 'python'
exec "!time python2.7 %"
elseif &filetype == 'html'
exec "!firefox % &"
elseif &filetype == 'go'
" exec "!go build %<"
exec "!time go run %"
elseif &filetype == 'mkd'
exec "!~/.vim/markdown.pl % > %.html &"
exec "!firefox %.html &"
endif
endfunc
"""""""""""syntastic""""""""""""""""
execute pathogen#infect()
set statusline+=%#warningmsg#
set statusline+=%{SyntasticStatuslineFlag()}
set statusline+=%* let g:syntastic_always_populate_loc_list = 1
let g:syntastic_auto_loc_list = 1
let g:syntastic_check_on_open = 1
let g:syntastic_check_on_wq = 0

最新文章

  1. Axure原型制作规范
  2. 解决Entity Framework中DateTime类型字段异常
  3. Upload files to aliyunOSS with bootstrap-fileinput
  4. Zabbix监控解决方案
  5. Swift--基础(二)元组 断言 错误处理
  6. Tomcat集群+Nginx+Redis服务搭建
  7. CodeVS1344 线型网络
  8. 使用shutdown命令实现局域网内远程关机、重启整蛊他人
  9. 爬虫(scrapy--豆瓣TOP250)
  10. 深入理解Java NIO
  11. zabbix3.0 agent安装配置
  12. 4.4清北学堂Day1 主要内容:数论,数学
  13. PCA和PCoA
  14. 使用 Kafka 和 Spark Streaming 构建实时数据处理系统
  15. Java读取并下载网络文件
  16. HTML5拖动
  17. php7 引用成为一种类型
  18. ksh函数
  19. matlab转python
  20. DEP脚本

热门文章

  1. LeetCode--008--字符串转换整数 (atoi)(java)
  2. php的抓取
  3. php 递归删除文件夹
  4. 正睿 2018 提高组十连测 Day4 T3 碳
  5. Kindergarten CodeForces - 484D (贪心,好题)
  6. UVALive - 7041 G - The Problem to Slow Down You
  7. stl中常用的排序算法
  8. leetcode-algorithms-14 Longest Common Prefix
  9. Git将本地项目上传到GitHub
  10. 函数使用十一:FTP