autotyper/vimtyper.cpp

19 lines
339 B
C++
Raw Normal View History

2019-10-26 13:16:22 +00:00
#include "vimtyper.h"
#include <unistd.h>
void VimTyper::OnStart()
{
// Enter insert mode
m_keyHandler->Key(SpecialKey::ESCAPE);
usleep(500000);
// Disable autoindent
KeyString(":setl noai nocin nosi inde=");
KeyNewline();
usleep(300000);
// Enter insert mode
m_keyHandler->Key('A');
sleep(1);
}