retext-project / retext

ReText: Simple but powerful editor for Markdown and reStructuredText
GNU General Public License v2.0
1.88k stars 196 forks source link

[Feature Request] VIM Bindings #219

Closed moorepants closed 8 years ago

moorepants commented 8 years ago

I'd be more apt to use the software if it had it had optional vim bindings for basic text input.

mitya57 commented 8 years ago

There is already a FakeVim mode, though maybe it's not very easy to set up…

@hluk If you are still interested in it, maybe you could write a wiki page explaining how to use it?

hluk commented 8 years ago

List of available emulated commands are at https://github.com/hluk/FakeVim/blob/master/README.md .

I'm not sure if there is anything specific for the library that needs clarification from user point of view.

Perhaps it's worth mentioning that the plugin here tries to parse configuration at start from $HOME/.vimrc (%HOMEPATH%\.vimrc on Windows) so you can put some key bindings and commands there.

moorepants commented 8 years ago

It isn't clear how I would use FakeVim. Do I need to compile retext with support for it or something?

hluk commented 8 years ago

To install Python bindings for FakeVim you need to run following commands.

(You may need to install additional development packages on your system.)

git clone https://github.com/hluk/FakeVim.git
cd FakeVim
qmake && make
cd python && ./configure.py && qmake && make install

After successful installation you should be able to import FakeVim in python interpreter.

mitya57 commented 8 years ago

I would add to @hluk's comment that to build FakeVim, you need to have PyQt5 development files installed. On Debian/Ubuntu, install pyqt5-dev package for that.

mitya57 commented 8 years ago

I have just created a wiki page about the FakeVim mode and pushed some fixed to master to make it work with the latest FakeVim.

So closing this issue.