Vim 文件配置
2024-10-26 14:41:01
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
最新文章
- AssetBundle系列——游戏资源打包(二)
- A+B问题 涉及EOF
- 第一个js程序
- 全局键盘钩子(WH_KEYBOARD)
- 基于visual Studio2013解决C语言竞赛题之0905文件读写显示
- 利用transform制作幻灯片
- 让你的python程序同时兼容python2和python3
- 一个简单小巧的CSV读取类
- AI零基础入门之人工智能开启新时代—下篇
- SQL Server Cast、Convert数据类型转换
- sql字符串包含单引号
- 一张图解释IaaS,PaaS,SaaS
- (7)Jquery1.8.3快速入门_内容过滤选择器
- [转]Linux下is not in the sudoers file解决方法
- C# 使用 protobuf 进行对象序列化与反序列化
- Jenkins安装以及邮件配置
- mono部分源码解析
- Sql-Server触发器,根据条件匹配另一个表中的字段
- yarn资源memory与core计算配置
- Linux根目录解析