mirror of
https://github.com/qmk/qmk_firmware
synced 2024-12-22 16:36:58 +00:00
Vim Layout for Ergodox-EZ (mac only) (#2112)
* ignore libs * Clang complete file * Add VIM_A, VIM_S, VIM_COMMAND_SHIFT_D, and VIM_COMMAND_SHIFT_A Add VIM_A, VIM_S, VIM_COMMAND_SHIFT_D, and VIM_COMMAND_SHIFT_A a s O * Comment blocks for minimap generated at http://patorjk.com/software/taag/#p=display&h=0&v=0&c=c&f=Banner&t=COMMENT * Be explicit * More Comment blocks * Add J * add A, C, D, J, S, O * Make h j k l explicitly vim commands (useful for JOIN) * add cb ce cw ch cj ck cl db de dw dh dj dk dl vb ve vh vj vk vl x ciw diw viw * debug messages for ci di vi * Var capitalized * Save bytes by disabling mouse keys * Add Y P * Be more explicit about which key was pressed * Be more explicit about which key was sent * Move project to new directory structure * Remove non-vim layout folder * Replace KC_TRNS with KC_NO on normal layer * Insert Mode as default * Try to prevent crashes * Put normal mode back * Revert "ignore libs" This reverts commit 4c5d7592d6c1b70e689c0b9400afca19c71970a7. * add rules.mk * Add mouse bindings * Checkout most recent keymap following rebase * Realign mouse button keys * Make a macro for TO(NORMAL_MODE)
This commit is contained in:
parent
eeb6443767
commit
98ac32b417
24
.clang_complete
Normal file
24
.clang_complete
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
|
||||||
|
-I.
|
||||||
|
-I./drivers
|
||||||
|
-I./drivers/avr
|
||||||
|
-I./keyboards/ergodox_ez
|
||||||
|
-I./keyboards/ergodox_ez/keymaps/vim
|
||||||
|
-I./lib
|
||||||
|
-I./lib/lufa
|
||||||
|
-I./quantum
|
||||||
|
-I./quantum/api
|
||||||
|
-I./quantum/audio
|
||||||
|
-I./quantum/keymap_extras
|
||||||
|
-I./quantum/process_keycode
|
||||||
|
-I./quantum/serial_link
|
||||||
|
-I./quantum/template
|
||||||
|
-I./quantum/tools
|
||||||
|
-I./quantum/visualizer
|
||||||
|
-I./tmk_core
|
||||||
|
-I./tmk_core/common
|
||||||
|
-I./tmk_core/common/debug.h
|
||||||
|
-I./tmk_core/protocol
|
||||||
|
-I./tmk_core/protocol/lufa
|
||||||
|
-I./util
|
||||||
|
-DQMK_KEYBOARD=\"$(KEYBOARD)\" -DQMK_KEYMAP=\"$(KEYMAP)\"
|
10
keyboards/ergodox_ez/keymaps/vim/config.h
Normal file
10
keyboards/ergodox_ez/keymaps/vim/config.h
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
#ifndef CONFIG_USER_H
|
||||||
|
#define CONFIG_USER_H
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#define NORMAL_MODE 0
|
||||||
|
#define INSERT_MODE 1
|
||||||
|
#define SYMB 2
|
||||||
|
#define MOUSE 3
|
||||||
|
|
||||||
|
#include "../../config.h"
|
384
keyboards/ergodox_ez/keymaps/vim/keymap.c
Normal file
384
keyboards/ergodox_ez/keymaps/vim/keymap.c
Normal file
File diff suppressed because it is too large
Load Diff
5
keyboards/ergodox_ez/keymaps/vim/readme.md
Normal file
5
keyboards/ergodox_ez/keymaps/vim/readme.md
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
# Vim-like keymap for macOS
|
||||||
|
|
||||||
|
This keymap adds vim emulation to the keyboard firmware. Layer 0 is 'normal mode', providing a number of commands like `w`, `e`, `a`, `dw`, etc.
|
||||||
|
|
||||||
|
The keymap works by using macOS text-editing shortcuts, so currently it only chooches on macOS.
|
1
keyboards/ergodox_ez/keymaps/vim/rules.mk
Normal file
1
keyboards/ergodox_ez/keymaps/vim/rules.mk
Normal file
@ -0,0 +1 @@
|
|||||||
|
MOUSEKEY_ENABLE = yes
|
756
keyboards/ergodox_ez/keymaps/vim/vim.h
Normal file
756
keyboards/ergodox_ez/keymaps/vim/vim.h
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user