[Qt-creator] [fakevim] Using <space> for move right (patch included)

Bart van Deenen bart at vandeenensupport.com
Mon Feb 9 16:20:13 CET 2009


I love fakevim :-)

The one thing I was missing was moving right with the spacebar. Here's the 
patch.

diff --git a/src/plugins/fakevim/fakevimhandler.cpp 
b/src/plugins/fakevim/fakevimhandler.cpp
index 057cf21..54bf094 100644
--- a/src/plugins/fakevim/fakevimhandler.cpp
+++ b/src/plugins/fakevim/fakevimhandler.cpp
@@ -1027,7 +1027,7 @@ bool FakeVimHandler::Private::handleCommandMode(int 
key, int unmodified,
         }
         finishMovement();
         m_desiredColumn = savedColumn;
-    } else if (key == 'l' || key == Key_Right) {
+    } else if (key==' ' || key == 'l' || key == Key_Right) {
         m_moveType = MoveExclusive;
         moveRight(qMin(count(), rightDist()));
         finishMovement();

Also my great thanks for using git for QtCreator. What an awesome tool!

Bart
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-creator-old/attachments/20090209/7033890a/attachment.html 


More information about the Qt-creator-old mailing list