Windows下的gvim简单配置python运行
set guifont=Consolas:h14 ? ? ? ?"设置字体的
function CheckPythonSyntax()
???? let mp? = ?&makeprg
???? let ef? = ?&errorformat
???? let exeFile? = ?expand( "%:t" )
???? setlocal makeprg = python? - u?
???? set ?efm = % C? % . % #,%A File "%f", line %l%.%#,%Z%[%^ ]%@=%m
???? silent make? %
???? copen
"??? set ?efm 是设置quickfix的errorformat,以便vim识别?
"? makeprg 是vim内置的编译命令,可以通过更改来实现编译对应类型文件。具体可参考vim官方说明文件。
"? copen是打开quickfix,n用来设置quichfix窗口大小,如 cope5。在错误描述上回车,可以直接跳转到错误行。
???? let &makeprg????? = ?mp?
???? let &errorformat? = ?ef?
endfunction
"一个是普通模式下,一个是插入模式下
au filetype python? map ?<f5>? :w <cr>:call CheckPythonSyntax() <cr>
au filetype python imap <f5> <esc> :w <cr>:call CheckPythonSyntax() <cr>< / cr>< / cr>< / esc>< / f5>< / cr>< / cr>< / f5>
? 配色下载地址 ?https://github.com/altercation/vim-colors-solarized/tree/master/colors,将下载的solarized.vim放到.Vimvim81colors中 (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
- Windows Server 2008忽略具有较低度量标准的持久路由
- windows-8 – 在Windows 8应用程序中保存List的最佳方法是什
- x86 – 如何在Windows上解决GHC错误“Unknown PEi386 secti
- Windows Defender – 好还是坏?
- leetcode-hard-array-76. Minimum Window Substring -NO
- active-directory – 如何找出我所属的AD组?
- windows-server-2008 – 如何在Windows Server 2008上将流量
- Windows MIrror驱动程序远程显示驱动程序VNC服务器窗口8
- windows-phone-7 – 针对不同版本的Windows Phone OS
- windows-server-2003 – 无法访问网络或打印机共享
- windows – mathematica中便携式笔记本电脑的相对
- (转)如何禁用Windows 10系统的触摸屏
- windows-7 – InnoSetup – 编译签名工具失败,退
- windows-server-2008 – 安装Windows Server 200
- 部署 – 为x86 windows系统捆绑的JavaFX exe
- windows-explorer – 如何阻止explorer.exe保持文
- 如何在每个用户的安装程序中使用WiX安装程序将应
- windows-server-2008 – 查找连接到网络共享的用
- windows-server-2008-r2 – Windows Server 2008
- 如果正在卸载已安装的功能,如何在WiX中执行自定义