xtonhasvim.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. /* Copyright 2015-2017 Christon DeWan
  2. *
  3. * This program is free software: you can redistribute it and/or modify
  4. * it under the terms of the GNU General Public License as published by
  5. * the Free Software Foundation, either version 2 of the License, or
  6. * (at your option) any later version.
  7. *
  8. * This program is distributed in the hope that it will be useful,
  9. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. * GNU General Public License for more details.
  12. *
  13. * You should have received a copy of the GNU General Public License
  14. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  15. */
  16. #ifndef USERSPACE
  17. #define USERSPACE
  18. #include QMK_KEYBOARD_H
  19. #include "action_layer.h"
  20. #define X_____X KC_NO
  21. bool process_record_xtonhasvim(uint16_t keycode, keyrecord_t *record);
  22. enum xtonhasvim_keycodes {
  23. DUMMY = SAFE_RANGE,
  24. FIREY_RETURN, // kick off special effects
  25. VIM_START, // bookend for vim states
  26. VIM_A,
  27. VIM_B,
  28. VIM_C,
  29. VIM_CI,
  30. VIM_D,
  31. VIM_DI,
  32. VIM_E,
  33. VIM_H,
  34. VIM_G,
  35. VIM_I,
  36. VIM_J,
  37. VIM_K,
  38. VIM_L,
  39. VIM_O,
  40. VIM_P,
  41. VIM_S,
  42. VIM_U,
  43. VIM_V,
  44. VIM_VS, // visual-line
  45. VIM_VI,
  46. VIM_W,
  47. VIM_X,
  48. VIM_Y,
  49. VIM_PERIOD, // to support indent/outdent
  50. VIM_COMMA, // and toggle comments
  51. VIM_SHIFT, // avoid side-effect of supporting real shift.
  52. VIM_ESC, // bookend
  53. VIM_SAFE_RANGE // start other keycodes here.
  54. };
  55. // NOTE: YOU MUST DEFINE THIS
  56. extern uint8_t vim_cmd_layer(void);
  57. extern uint16_t vstate;
  58. #endif