Schim
Classes | Namespaces | Macros | Typedefs | Functions
vim.h File Reference
#include <QKeyEvent>
Include dependency graph for vim.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Vim::Count
 Representation of a vim-count. More...
 
class  Vim::Action
 An action in vim-mode. More...
 

Namespaces

 Vim
 Everything related to vim-mode inside schim.
 

Macros

#define vimdo(N)
 

Typedefs

typedef Count Vim::N
 Convenience typedef.
 

Functions

void Vim::enable (bool enable)
 Enable/Disable vim-mode throughout the application instance.
 
bool Vim::enabled ()
 Is vim-mode enabled?
 
Count Vim::n ()
 The vim-count from the current key sequence.
 
void Vim::addBinding (const QString &sequence, const QString &action)
 Register a keybinding with Vim-mode. More...
 
void Vim::addBindings (const QMap< QString, QString > &map)
 Convenient alternative to multiple calls of Vim::addBinding. More...
 
void Vim::registerKeyPress (QKeyEvent *event, std::function< bool(const Action &action)> callback, bool allowCount=true)
 Process a key press in vim-mode. More...
 
void Vim::resetStroke ()
 Discard the current key sequence and reset vim status indicator.
 
QString Vim::getStatusText ()
 Get the vim status text for the current key sequence.
 

Macro Definition Documentation

◆ vimdo

#define vimdo (   N)
Value:
for (int Intentionally_Long_Unlikely_Name = 0;\
Intentionally_Long_Unlikely_Name < N; ++Intentionally_Long_Unlikely_Name)
Count N
Convenience typedef.
Definition: vim.h:68

Repeat a command N times.

Usage:

vimdo(N) single_command
vimdo(N) { multiple_commands }
Note
This is a convenience macro.