#include QMK_KEYBOARD_H
#ifdef USE_BABBLEPASTE
# include "babblePaste.h"
# ifdef BABL_VI
bool babblePaste_vi(uint16_t keycode) {
# ifdef BABL_MOVE
BABLM(BABL_GO_LEFT_1C, "h");
BABLM(BABL_GO_RIGHT_1C, "l");
BABLM(BABL_GO_LEFT_WORD, "b");
BABLM(BABL_GO_RIGHT_WORD, "w");
BABLM(BABL_GO_START_LINE, IMSFT(X_6));
BABLM(BABL_GO_END_LINE, IMSFT(X_4));
BABLM(BABL_GO_START_DOC, "gg");
BABLM(BABL_GO_END_DOC, IMSFT(X_G));
BABLM(BABL_GO_NEXT_LINE, "j");
BABLM(BABL_GO_PREV_LINE, "k");
BABLM(BABL_GO_PARA_START, IMSFT(X_LBRACKET));
BABLM(BABL_GO_PARA_END, IMSFT(X_RBRACKET));
BABLM(BABL_PGDN, SS_LCTRL("f"));
BABLM(BABL_PGUP, SS_LCTRL("b"));
BABLM(BABL_DEL_RIGHT_1C, "x");
BABLM(BABL_DEL_LEFT_WORD, "dge");
BABLM(BABL_DEL_RIGHT_WORD, "dw");
BABLM(BABL_DEL_TO_LINE_END, "d" IMSFT(X_4));
BABLM(BABL_DEL_TO_LINE_START, "d" IMSFT(X_6));
BABLM(BABL_MODE, "Vi ");
# endif
# ifdef BABL_OSKEYS
BABLM(BABL_UNDO, "h");
BABLM(BABL_REDO, SS_LCTRL("r"));
BABLM(BABL_CUT, "x");
BABLM(BABL_COPY, "y");
BABLM(BABL_PASTE, "p");
BABLM(BABL_SELECT_ALL, IMSFT(X_SCOLON) SS_TAP(X_5) "y"); BABLM(BABL_FIND, SS_TAP(X_SLASH));
BABLM(BABL_FIND_NEXT, "n");
BABLM(BABL_FIND_PREV, IMSFT(X_N));
BABLM(BABL_FIND_REPLACE, OMALT(IMSFT(X_5)));
BABLM(BABL_RUNAPP, ":split"); BABLM(BABL_SWITCH_APP_NEXT, IMCTL(X_DOWN)); BABLM(BABL_SWITCH_APP_NEXT, IMCTL(X_UP)); BABLM(BABL_CLOSE_APP, IMCTL(X_SCOLON) "q");
BABLM(BABL_HELP, SS_LSFT(SS_TAP(X_SCOLON)) "h"); # endif
# ifdef BABL_BROWSER
# endif
# ifdef BABL_APP
BABLM(BABL_APP_SAVE, SS_TAP(X_ESCAPE) ":w");
BABLM(BABL_APP_SET_MARK, SS_TAP(X_ESCAPE) "ma"); # ifdef BABL_APP_WINDOWSPLITTING
BABLM(BABL_SPLIT_FRAME_VERT, SS_TAP(X_ESCAPE) ":vsplit");
BABLM(BABL_UNSPLIT_FRAME_VERT, SS_TAP(X_ESCAPE) ":hide"); BABLM(BABL_SPLIT_FRAME_HORIZONTAL, SS_TAP(X_ESCAPE) ":vsplit");
BABLM(BABL_UNSPLIT_FRAME_HORIZONTAL, SS_TAP(X_ESCAPE) ":hide");
BABLM(BABL_NEXT_FRAME, SS_LCTRL("w") "w");
BABLM(BABL_PREV_FRAME, SS_LCTRL("w") SS_LSFT("w"));
# endif
# endif return false;
}
# endif #endif