纯Python实现的一个Vim克隆:pyvim

jopen 9年前

pyvim是用纯Python实现的一个Vim克隆。

这个编辑器完全采用Python开发(没有C扩展)。这使得开发变得快很多。它易于创建原型和集成新的特性。

它已经拥有的特性:

  • Syntax highlighting of files, using the Pygments lexers.
  • Horizontal and vertical splits, as well as tab pages. (Similar to Vim.)
  • All of the functionality of prompt_toolkit. This includes a lot of Vi key bindings, it's platform independent and runs on every Python version from python 2.6 up to 3.4. It also runs on Pypy with a noticable performance boost.
  • Several:set ...commands have been implemented, likeincsearch,number,ignorecase,wildmenu,expandtab,hlsearch,ruler,pasteandtabstop.
  • Other working commands:vsplit,tabnew,only,badd, and many others.
  • For Python source code, auto completion uses the amazing Jedi library, and code checking in done (asynchronously) through Pyflakes.
  • Colorschemes can be changed at runtime.

一些截图

Editing its own source code:

纯Python实现的一个Vim克隆:pyvim

Window layouts (horizontal and vertical splits + tab pages.)

纯Python实现的一个Vim克隆:pyvim

Pyflakes for Python code checking and Jedi for autocompletion:

纯Python实现的一个Vim克隆:pyvim

Other colorschemes:

纯Python实现的一个Vim克隆:pyvim

Chinese input (double width characters):

纯Python实现的一个Vim克隆:pyvim

项目主页:http://www.open-open.com/lib/view/home/1430106993834