开源 企业版 高校版 私有云 模力方舟 AI 队友
代码拉取完成,页面将自动刷新
捐赠
捐赠前请先登录
扫描微信二维码支付
取消
支付完成
支付提示
将跳转至支付宝完成支付
确定
取消
1 Star 0 Fork 0

killf/python-mode

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
已有帐号? 立即登录
文件
develop
分支 (4)
标签 (81)
develop
last-py2-support
master
gh-pages
0.13.0
0.12.0
0.11.0
last-py2-support
0.10.0
0.9.2
0.9.1
0.9.0
0.8.1
0.8.0
0.7.8b
0.7.7b
0.7.6b
0.7.5b
0.7.4b
0.7.3b
0.7.2b
0.7.1b
0.7.0b
0.6.19
develop
分支 (4)
标签 (81)
develop
last-py2-support
master
gh-pages
0.13.0
0.12.0
0.11.0
last-py2-support
0.10.0
0.9.2
0.9.1
0.9.0
0.8.1
0.8.0
0.7.8b
0.7.7b
0.7.6b
0.7.5b
0.7.4b
0.7.3b
0.7.2b
0.7.1b
0.7.0b
0.6.19
克隆/下载
克隆/下载
提示
下载代码请复制以下命令到终端执行
为确保你提交的代码身份被 Gitee 正确识别,请执行以下命令完成配置
初次使用 SSH 协议进行代码克隆、推送等操作时,需按下述提示完成 SSH 配置
1 生成 RSA 密钥
2 获取 RSA 公钥内容,并配置到 SSH公钥
在 Gitee 上使用 SVN,请访问 使用指南
使用 HTTPS 协议时,命令行会出现如下账号密码验证步骤。基于安全考虑,Gitee 建议 配置并使用私人令牌 替代登录密码进行克隆、推送等操作
Username for 'https://gitee.com': userName
Password for 'https://userName@gitee.com': # 私人令牌
develop
分支 (4)
标签 (81)
develop
last-py2-support
master
gh-pages
0.13.0
0.12.0
0.11.0
last-py2-support
0.10.0
0.9.2
0.9.1
0.9.0
0.8.1
0.8.0
0.7.8b
0.7.7b
0.7.6b
0.7.5b
0.7.4b
0.7.3b
0.7.2b
0.7.1b
0.7.0b
0.6.19
python-mode
/
plugin
/
pymode.vim
python-mode
/
plugin
/
pymode.vim
pymode.vim 9.78 KB
一键复制 编辑 原始数据 按行查看 历史
Diego Rabatone Oliveira 提交于 2020年10月09日 02:49 +08:00 . Bump version: 0.12.0 → 0.13.0
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316
" vi: fdl=1
let g:pymode_version = "0.13.0"
" Enable pymode by default :)
call pymode#default('g:pymode', 1)
call pymode#default('g:pymode_debug', 0)
" DESC: Disable script loading
if !g:pymode || &cp || &diff
" Update pymode status to prevent loading in other files and adding this
" condition to all of them.
let g:pymode = 0
finish
endif
" Pymode needs
filetype plugin on
" OPTIONS: {{{
" Vim Python interpreter. Set to 'disable' for remove python features.
if has("python3") && executable('python3')
call pymode#default('g:pymode_python', 'python3')
else
call pymode#default('g:pymode_python', 'disable')
endif
" Disable pymode warnings
call pymode#default('g:pymode_warning', 1)
" Additional python paths
call pymode#default('g:pymode_paths', [])
" Python documentation support
call pymode#default('g:pymode_doc', 1)
call pymode#default('g:pymode_doc_bind', 'K')
" Enable/Disable pymode PEP8 indentation
call pymode#default("g:pymode_indent", 1)
" TODO: currently folding suffers from a bad performance and incorrect
" implementation. This feature should be considered experimental.
" Enable/disable pymode folding for pyfiles.
call pymode#default("g:pymode_folding", 0)
" Maximum file length to check for nested class/def statements
call pymode#default("g:pymode_folding_nest_limit", 1000)
" Change for folding customization (by example enable fold for 'if', 'for')
call pymode#default("g:pymode_folding_regex", '^\s*\%(class\|def\|async\s\+def\) .\+\(:\s\+\w\)\@!')
" call pymode#default("g:pymode_folding_regex", '^\s*\%(class\|def\|async\s\+def\)')
" Enable/disable python motion operators
call pymode#default("g:pymode_motion", 1)
" Auto remove unused whitespaces on save
call pymode#default("g:pymode_trim_whitespaces", 1)
" Set recomended python options
call pymode#default("g:pymode_options", 1)
call pymode#default("g:pymode_options_max_line_length", 79)
call pymode#default("g:pymode_options_colorcolumn", 1)
" Enable/disable vertical display of python documentation
call pymode#default("g:pymode_doc_vertical", 0)
" Minimal height of pymode quickfix window
call pymode#default('g:pymode_quickfix_maxheight', 6)
" Maximal height of pymode quickfix window
call pymode#default('g:pymode_quickfix_minheight', 3)
" Height of preview window
call pymode#default('g:pymode_preview_height', &previewheight)
" Position of preview window
call pymode#default('g:pymode_preview_position', 'botright')
" LOAD VIRTUALENV {{{
"
" Enable virtualenv support
call pymode#default('g:pymode_virtualenv', 1)
" Get path to virtualenv (by default take from shell)
call pymode#default('g:pymode_virtualenv_path', $VIRTUAL_ENV)
" Service variable (don't set it manually)
call pymode#default('g:pymode_virtualenv_enabled', '')
" }}}
" RUN PYTHON {{{
"
" Enable code running support
call pymode#default('g:pymode_run', 1)
" Key's map for run python code
call pymode#default('g:pymode_run_bind', '<leader>r')
" }}}
" CHECK CODE {{{
"
" Code checking
call pymode#default('g:pymode_lint', 1)
" Check code asynchronously
call pymode#default('g:pymode_lint_async', 1)
call pymode#default('g:pymode_lint_async_updatetime', 1000)
" Check code every save if file has been modified
call pymode#default("g:pymode_lint_on_write", 1)
" Check code every save (every)
call pymode#default("g:pymode_lint_unmodified", 0)
" Check code on fly
call pymode#default("g:pymode_lint_on_fly", 0)
" Show message about error in command line
call pymode#default("g:pymode_lint_message", 1)
" Choices are: pylint, pyflakes, pep8, mccabe and pep257
call pymode#default("g:pymode_lint_checkers", ['pyflakes', 'pep8', 'mccabe'])
" Skip errors and warnings (e.g. E4,W)
call pymode#default("g:pymode_lint_ignore", [])
" Select errors and warnings (e.g. E4,W)
call pymode#default("g:pymode_lint_select", [])
" Auto open cwindow if any errors has been finded
call pymode#default("g:pymode_lint_cwindow", 1)
" If not emply, errors will be sort by defined relevance
" E.g. let g:pymode_lint_sort = ['E', 'C', 'I'] " Errors first 'E',
" after them 'C' and ...
call pymode#default("g:pymode_lint_sort", [])
" Place error signs
call pymode#default("g:pymode_lint_signs", 1)
" Symbol's definitions
call pymode#default("g:pymode_lint_todo_symbol", "WW")
call pymode#default("g:pymode_lint_docs_symbol", "DD")
call pymode#default("g:pymode_lint_comment_symbol", "CC")
call pymode#default("g:pymode_lint_visual_symbol", "RR")
call pymode#default("g:pymode_lint_error_symbol", "EE")
call pymode#default("g:pymode_lint_info_symbol", "II")
call pymode#default("g:pymode_lint_pyflakes_symbol", "FF")
" Code checkers options
" TODO: check if most adequate name name is pep8 or pycodestyle.
call pymode#default("g:pymode_lint_options_pep8",
\ {'max_line_length': g:pymode_options_max_line_length})
call pymode#default("g:pymode_lint_options_pylint",
\ {'max-line-length': g:pymode_options_max_line_length})
call pymode#default("g:pymode_lint_options_mccabe",
\ {'complexity': 12})
call pymode#default("g:pymode_lint_options_pep257", {})
call pymode#default("g:pymode_lint_options_pyflakes", { 'builtins': '_' })
" }}}
" SET/UNSET BREAKPOINTS {{{
"
" Create/remove breakpoints
call pymode#default('g:pymode_breakpoint', 1)
" Key's map for add/remove breakpoint
call pymode#default('g:pymode_breakpoint_bind', '<leader>b')
" Default pattern for making breakpoints. Leave this empty for auto search available debuggers (pdb, ipdb, ...)
call pymode#default('g:pymode_breakpoint_cmd', '')
" }}}
" ROPE (refactoring, codeassist) {{{
"
" Rope support
call pymode#default('g:pymode_rope', 0)
" System plugin variable
if g:pymode_rope
call pymode#default('g:pymode_rope_current', '')
" Configurable rope project root
call pymode#default('g:pymode_rope_project_root', '')
" Configurable rope project folder (always relative to project root)
call pymode#default('g:pymode_rope_ropefolder', '.ropeproject')
" If project hasnt been finded in current working directory, look at parents directory
call pymode#default('g:pymode_rope_lookup_project', 0)
" Enable Rope completion
call pymode#default('g:pymode_rope_completion', 1)
" Complete keywords from not imported modules (could make completion slower)
" Enable autoimport used modules
call pymode#default('g:pymode_rope_autoimport', 0)
" Offer to import object after complete (if that not be imported before)
call pymode#default('g:pymode_rope_autoimport_import_after_complete', 0)
" Autoimported modules
call pymode#default('g:pymode_rope_autoimport_modules', ['os', 'shutil', 'datetime'])
" Bind keys to autoimport module for object under cursor
call pymode#default('g:pymode_rope_autoimport_bind', '<C-c>ra')
" Automatic completion on dot
call pymode#default('g:pymode_rope_complete_on_dot', 1)
" Bind keys for autocomplete (leave empty for disable)
call pymode#default('g:pymode_rope_completion_bind', '<C-Space>')
" Bind keys for goto definition (leave empty for disable)
call pymode#default('g:pymode_rope_goto_definition_bind', '<C-c>g')
" set command for open definition (e, new, vnew)
call pymode#default('g:pymode_rope_goto_definition_cmd', 'new')
" Bind keys for show documentation (leave empty for disable)
call pymode#default('g:pymode_rope_show_doc_bind', '<C-c>d')
" Bind keys for find occurencies (leave empty for disable)
call pymode#default('g:pymode_rope_find_it_bind', '<C-c>f')
" Bind keys for organize imports (leave empty for disable)
call pymode#default('g:pymode_rope_organize_imports_bind', '<C-c>ro')
" Bind keys for rename variable/method/class in the project (leave empty for disable)
call pymode#default('g:pymode_rope_rename_bind', '<C-c>rr')
" Bind keys for rename module
call pymode#default('g:pymode_rope_rename_module_bind', '<C-c>r1r')
" Bind keys for convert module to package
call pymode#default('g:pymode_rope_module_to_package_bind', '<C-c>r1p')
" Creates a new function or method (depending on the context) from the selected lines
call pymode#default('g:pymode_rope_extract_method_bind', '<C-c>rm')
" Creates a variable from the selected lines
call pymode#default('g:pymode_rope_extract_variable_bind', '<C-c>rl')
" Inline refactoring
call pymode#default('g:pymode_rope_inline_bind', '<C-c>ri')
" Move refactoring
call pymode#default('g:pymode_rope_move_bind', '<C-c>rv')
" Generate function
call pymode#default('g:pymode_rope_generate_function_bind', '<C-c>rnf')
" Generate class
call pymode#default('g:pymode_rope_generate_class_bind', '<C-c>rnc')
" Generate package
call pymode#default('g:pymode_rope_generate_package_bind', '<C-c>rnp')
" Change signature
call pymode#default('g:pymode_rope_change_signature_bind', '<C-c>rs')
" Tries to find the places in which a function can be used and changes the
" code to call it instead
call pymode#default('g:pymode_rope_use_function_bind', '<C-c>ru')
" Regenerate project cache on every save
call pymode#default('g:pymode_rope_regenerate_on_write', 1)
endif
" }}}
" }}}
" Prepare to plugin loading
if &compatible
set nocompatible
endif
filetype plugin on
" UltiSnips Fixes
if !len(g:pymode_python)
if (exists('g:_uspy') && g:_uspy == ':py3') || has("python3")
let g:pymode_python = 'python3'
else
let g:pymode_python = 'disable'
endif
endif
if g:pymode_python == 'python3'
command! -nargs=1 PymodePython python3 <args>
let g:UltiSnipsUsePythonVersion = 3
else
let g:pymode_doc = 0
let g:pymode_lint = 0
let g:pymode_path = 0
let g:pymode_rope = 0
let g:pymode_run = 0
let g:pymode_virtualenv = 0
command! -nargs=1 PymodePython echo <args>
endif
command! PymodeVersion echomsg "Pymode version: " . g:pymode_version . " interpreter: " . g:pymode_python . " lint: " . g:pymode_lint . " rope: " . g:pymode_rope
augroup pymode
Loading...
举报
举报成功
我们将于2个工作日内通过站内信反馈结果给你!
请认真填写举报原因,尽可能描述详细。
请选择举报类型
取消
发送
误判申诉

此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。

如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。

取消
提交

简介

暂无描述
暂无标签
LGPL-3.0
使用 LGPL-3.0 开源许可协议
取消

发行版

暂无发行版

贡献者

全部

近期动态

不能加载更多了
编辑仓库简介
简介内容
主页
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/killf/python-mode.git
git@gitee.com:killf/python-mode.git
killf
python-mode
python-mode
develop
点此查找更多帮助

搜索帮助

评论
仓库举报
回到顶部
登录提示
该操作需登录 Gitee 帐号,请先登录后再操作。
立即登录
没有帐号,去注册

AltStyle によって変換されたページ (->オリジナル) /