Skip to main content

Home/ Python Programming/ Group items tagged vim

Rss Feed Group items tagged

reckoner reckoner

Debugging Python in VIM- Peter's Blog - 0 views

  • Following my thoughts yesterday, here are some VIM python scripts to add python breakpoint and debugging features to VIM. With this set up the F7 key will set a breakpoint on a line of code, Shift-F7 will remove all breakpoints and Shift-F12 will execute a script in the python debugger. This only runs on windows as far as I know, because it uses the 'start' command to launch the debugger in a seperate process without VIM waiting for it to finish. This allows you to look through the source code (and fix it) while the debugging is still in progress.
reckoner reckoner

taglist.vim - Source code browser (supports C/C++, java, perl, python, tcl, sql, php, e... - 0 views

  • The "Tag List" plugin is a source code browser plugin for Vim and provides an overview of the structure of source code files and allows you to efficiently browse through source code files for different programming languages.  You can visit the taglist plugin home page for more information
reckoner reckoner

python_match.vim - Extend the % motion and define g%, [%, and ]% motions for Python fil... - 0 views

  •  
    This script redefines the % motion so that (in addition to its usual behavior) it cycles through if/elif/else, try/except/catch, for/continue/break, and while/continue/break structures. The script also defines g% to cycle in the opposite direction. Two ot
chao wang

Notes on using Vim with Python - 0 views

    • chao wang
       
  •  
    aracter instead of spaces because it makes it easier when pressing BACKSPACE or DELETE, since if the indent is using spaces it will take 4 keystrokes to delete the indent. Using this setting, however, makes VIM see multiple space characters as tabstops, and so does the right thing and will delete four spaces (assuming 4 is your setting).
reckoner reckoner

Preexisting code indentation - Vim Tips Wiki - a Wikia wiki - 0 views

  • lternative: if your file has indent 4 and you want an indent of 3 and gg=G is not working as expected, try :set inde=indent(v:lnum)/4*3 then go ahead with the well known gg=G use tabs or spaces, doesn't matter
reckoner reckoner

How can I work on VIM for python code such as cscope for C code? - 0 views

  • Change to the top level directory that contains your python source files, and do find -name '*.py' > cscope.files cscope -b
  • How can I work on VIM for python code such as cscope for C code?
reckoner reckoner

vimpdb - Google Code - 0 views

  • Tired of debugging Python using print statements? Don't like the cumbersome PDB (Python debugger) console? Prefer using Vim for coding your Python programs? VimPdb is the solution - allows debugging Python in an IDE-fashion, right within the Vim editor.
fanhaipeng

git 使用简易指南 - 0 views

  • 可以把 master 换成你想要推送的任何分支。
  • 如果你还没有克隆现有仓库,并欲将你的仓库连接到某个远程服务器
  • 以在你的工作目录中 获取(fetch) 并 合并(merge) 远端的改动。 要合并其他分支到你的当前分支(例如 master),执行:
    • fanhaipeng
       
      1.用远程的进度更新自己的项目 2.但是自己本地也更新了 3.如果双方改的地方不一样,自动合并 4,如果不幸,本地改的和远程改的地方一样 5.先git diff 看不同,vim手动打开文件,修改冲突,然后,git add
  • ...12 more annotations...
  • ,自动合并并非次次都能成功,并可能导致 冲突(conflicts)。 这时候就需要你修改这些文件来人肉合并这些 冲突(conflicts) 了。
  • 自动
  • 在合并改动之前,也可以使用如下命令查看:
  • 工作目录中的文件
  • 你也可以用该提交 ID 的少一些的前几位,只要它是唯一的。
  • git checkout -- <filename>
    • fanhaipeng
       
      和切换分支的命令,前段是一样的
  • HEAD 中的最新内容
  • 已添加到缓存区的改动,以及新文件,都不受影响。
  • 1.0.0 1b2e1d63ff
  • git fetch origin
    • fanhaipeng
       
      1.fetch:取。远程。
  • git reset --hard origin/master
    • fanhaipeng
       
      指向远程最新的?
  • gitk
1 - 16 of 16
Showing 20 items per page