开源 企业版 高校版 私有云 模力方舟 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
pymode.vim 8.56 KB
一键复制 编辑 原始数据 按行查看 历史
Diego Rabatone Oliveira 提交于 2020年05月17日 01:32 +08:00 . Update warning message
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
if !g:pymode || pymode#default('b:pymode', 1)
finish
endif
if g:pymode_python == 'disable'
if g:pymode_warning
call pymode#error("Pymode requires vim compiled with +python3 (exclusively). Most of features will be disabled.")
endif
finish
else
let b:pymode_modified = &modified
" Init paths
if !pymode#default('g:pymode_init', 1)
call pymode#init(expand('<sfile>:p:h:h:h'), g:pymode_paths)
call pymode#virtualenv#init()
call pymode#breakpoint#init()
PymodePython from pymode.utils import patch_paths
PymodePython patch_paths()
endif
endif
command! -buffer -nargs=1 PymodeVirtualenv call pymode#virtualenv#activate(<args>)
" Setup events for pymode
au! pymode BufWritePre <buffer> call pymode#buffer_pre_write()
au! pymode BufWritePost <buffer> call pymode#buffer_post_write()
" Run python code
if g:pymode_run
command! -buffer -nargs=0 -range=% PymodeRun call pymode#run#code_run(<f-line1>, <f-line2>)
exe "nnoremap <silent> <buffer> " g:pymode_run_bind ":PymodeRun<CR>"
exe "vnoremap <silent> <buffer> " g:pymode_run_bind ":PymodeRun<CR>"
endif
" Add/remove breakpoints
if g:pymode_breakpoint
exe "nnoremap <silent> <buffer> " g:pymode_breakpoint_bind ":call pymode#breakpoint#operate(line('.'))<CR>"
endif
" Python folding
if g:pymode_folding
setlocal foldmethod=expr
setlocal foldexpr=pymode#folding#expr(v:lnum)
setlocal foldtext=pymode#folding#text()
endif
" Remove unused whitespaces
if g:pymode_trim_whitespaces
au BufWritePre <buffer> call pymode#trim_whitespaces()
endif
" Custom options
if g:pymode_options
setlocal complete+=t
setlocal formatoptions-=t
if v:version > 702 && !&relativenumber
setlocal number
endif
setlocal nowrap
exe "setlocal textwidth=" . g:pymode_options_max_line_length
if g:pymode_options_colorcolumn && exists('+colorcolumn')
setlocal colorcolumn=+1
endif
setlocal commentstring=#%s
setlocal define=^\s*\\(def\\\\|class\\)
endif
if g:pymode_lint
command! -buffer -nargs=0 PymodeLintAuto :call pymode#lint#auto()
command! -buffer -nargs=0 PymodeLintToggle :call pymode#lint#toggle()
command! -buffer -nargs=0 PymodeLint :call pymode#lint#check()
if v:version > 703 || (v:version == 703 && has('patch544'))
au! QuitPre <buffer> call pymode#quit()
else
au! pymode BufWinLeave * silent! lclose
endif
let b:pymode_error_line = -1
if g:pymode_lint_on_fly
au! pymode InsertLeave <buffer> PymodeLint
endif
if g:pymode_lint_message
au! pymode CursorMoved <buffer>
au! pymode CursorMoved <buffer> call pymode#lint#show_errormessage()
endif
" Disabled for current release
if g:pymode_lint_async
" let &l:updatetime = g:pymode_lint_async_updatetime
" au! BufEnter <buffer> call pymode#lint#start()
" au! BufLeave <buffer> call pymode#lint#stop()
endif
endif
" Show python documentation
if g:pymode_doc
" Set commands
command! -buffer -nargs=1 PymodeDoc call pymode#doc#show("<args>")
" Set keys
exe "nnoremap <silent> <buffer> " g:pymode_doc_bind ":call pymode#doc#find()<CR>"
exe "vnoremap <silent> <buffer> " g:pymode_doc_bind ":<C-U>call pymode#doc#show(@*)<CR>"
endif
" Rope support
if g:pymode_rope
if g:pymode_rope_goto_definition_bind != ""
exe "noremap <silent> <buffer> " . g:pymode_rope_goto_definition_bind . " :call pymode#rope#goto_definition()<CR>"
endif
if g:pymode_rope_show_doc_bind != ""
exe "noremap <silent> <buffer> " . g:pymode_rope_show_doc_bind . " :call pymode#rope#show_doc()<CR>"
endif
if g:pymode_rope_find_it_bind != ""
exe "noremap <silent> <buffer> " . g:pymode_rope_find_it_bind . " :call pymode#rope#find_it()<CR>"
endif
if g:pymode_rope_organize_imports_bind != ""
exe "noremap <silent> <buffer> " . g:pymode_rope_organize_imports_bind . " :call pymode#rope#organize_imports()<CR>"
endif
if g:pymode_rope_rename_bind != ""
exe "noremap <silent> <buffer> " . g:pymode_rope_rename_bind . " :call pymode#rope#rename()<CR>"
endif
if g:pymode_rope_rename_module_bind != ""
exe "noremap <silent> <buffer> " . g:pymode_rope_rename_module_bind . " :call pymode#rope#rename_module()<CR>"
endif
if g:pymode_rope_extract_method_bind != ""
exe "vnoremap <silent> <buffer> " . g:pymode_rope_extract_method_bind . " :call pymode#rope#extract_method()<CR>"
endif
if g:pymode_rope_extract_variable_bind != ""
exe "vnoremap <silent> <buffer> " . g:pymode_rope_extract_variable_bind . " :call pymode#rope#extract_variable()<CR>"
endif
if g:pymode_rope_inline_bind != ""
exe "noremap <silent> <buffer> " . g:pymode_rope_inline_bind . " :call pymode#rope#inline()<CR>"
endif
if g:pymode_rope_move_bind != ""
exe "noremap <silent> <buffer> " . g:pymode_rope_move_bind . " :call pymode#rope#move()<CR>"
endif
if g:pymode_rope_change_signature_bind != ""
exe "noremap <silent> <buffer> " . g:pymode_rope_change_signature_bind . " :call pymode#rope#signature()<CR>"
endif
if g:pymode_rope_use_function_bind != ""
exe "noremap <silent> <buffer> " . g:pymode_rope_use_function_bind . " :call pymode#rope#use_function()<CR>"
endif
if g:pymode_rope_generate_function_bind != ""
exe "noremap <silent> <buffer> " . g:pymode_rope_generate_function_bind . " :call pymode#rope#generate_function()<CR>"
endif
if g:pymode_rope_generate_package_bind != ""
exe "noremap <silent> <buffer> " . g:pymode_rope_generate_package_bind . " :call pymode#rope#generate_package()<CR>"
endif
if g:pymode_rope_generate_class_bind != ""
exe "noremap <silent> <buffer> " . g:pymode_rope_generate_class_bind . " :call pymode#rope#generate_class()<CR>"
endif
if g:pymode_rope_module_to_package_bind != ""
exe "noremap <silent> <buffer> " . g:pymode_rope_module_to_package_bind . " :call pymode#rope#module_to_package()<CR>"
endif
if g:pymode_rope_autoimport_bind != ""
exe "noremap <silent> <buffer> " . g:pymode_rope_autoimport_bind . " :PymodeRopeAutoImport<CR>"
endif
if g:pymode_rope_completion && g:pymode_rope_complete_on_dot
inoremap <silent> <buffer> . .<C-R>=pymode#rope#complete_on_dot()<CR>
endif
command! -buffer -nargs=? PymodeRopeNewProject call pymode#rope#new(<f-args>)
command! -buffer PymodeRopeUndo call pymode#rope#undo()
command! -buffer PymodeRopeRedo call pymode#rope#redo()
command! -buffer PymodeRopeRenameModule call pymode#rope#rename_module()
command! -buffer PymodeRopeModuleToPackage call pymode#rope#module_to_package()
command! -buffer PymodeRopeRegenerate call pymode#rope#regenerate()
if g:pymode_rope_autoimport
command! -buffer PymodeRopeAutoImport call pymode#rope#autoimport(expand('<cword>'))
endif
endif
if g:pymode_debug
" Redefine functions to be debugged here functions here.
" NOTE: The redraw seems to be necessary to force messages to get echoed to
" the screen. See:
" https://groups.google.com/forum/#!topic/vim_use/EfcXOjq_rKE
" for details.
" silent! redraw!
" TODO: when loading with 'vim -u ./debug.vim' the messages shown in vim
" are unduly cleared. Need a fix.
" Start debbuging environment. {{{
if ! &verbosefile
" Get a system independent temporary filename. The 'marker' variable is
" used to get rid of a null character getting inserted at position.
" substitute() was not able to remove it.
" TODO: see https://superuser.com/questions/935574/get-rid-of-null-character-in-vim-variable
let g:pymode_debug_tempfile=matchstr(
\ execute(
\ g:pymode_python
\ . " import os;import tempfile; marker='|';"
\ . " print(marker, tempfile.gettempdir(), os.sep, "
\ . "'pymode_debug_file.txt', marker, sep='', end='')"),
\ '|\zs.*\ze|')
execute "set verbosefile=" . g:pymode_debug_tempfile
endif
call pymode#debug('Starting debug on: '
\ . strftime("\%Y-\%m-\%d \%H:\%M:\%S")
\ . ' with file ' . &verbosefile)
" }}}
" Redefine folding expression. {{{
if g:pymode_folding
setlocal foldexpr=pymode#debug#foldingexpr(v:lnum)
endif
call pymode#debug#sysinfo()
" }}}
" Define auto commands for vim. {{{
augroup augroup_save_issue_commands
autocmd!
autocmd VimLeave *.py | call pymode#debug('Session history:') | silent! history
augroup END
" }}}
endif
Loading...
举报
举报成功
我们将于2个工作日内通过站内信反馈结果给你!
请认真填写举报原因,尽可能描述详细。
请选择举报类型
取消
发送
误判申诉

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

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

取消
提交

简介

暂无描述
取消

发行版

暂无发行版

贡献者

全部

近期动态

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

搜索帮助

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

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