[gnome-builder] vim: Add capital letter movement aliases
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] vim: Add capital letter movement aliases
- Date: Sun, 12 Oct 2014 22:17:27 +0000 (UTC)
commit 21b32f1dd73cd0faf9ea91158631ca8fd68b1b47
Author: Hashem Nasarat <hashem riseup net>
Date: Sun Oct 12 18:09:17 2014 -0400
vim: Add capital letter movement aliases
Even though we don't properly support these movements, it's more jarring
to press 'W' and have nothing happen than to press 'W' and have 'w'
happen.
My muscles are trained to press the capital letters. :(
https://bugzilla.gnome.org/show_bug.cgi?id=738420
src/editor/gb-editor-vim.c | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
---
diff --git a/src/editor/gb-editor-vim.c b/src/editor/gb-editor-vim.c
index 44385de..7dbaedd 100644
--- a/src/editor/gb-editor-vim.c
+++ b/src/editor/gb-editor-vim.c
@@ -4583,6 +4583,10 @@ gb_editor_vim_class_init (GbEditorVimClass *klass)
GB_EDITOR_VIM_COMMAND_FLAG_NONE,
GB_EDITOR_VIM_COMMAND_CHANGE,
gb_editor_vim_cmd_insert_after);
+ gb_editor_vim_class_register_command (klass, 'B',
+ GB_EDITOR_VIM_COMMAND_FLAG_MOTION_EXCLUSIVE,
+ GB_EDITOR_VIM_COMMAND_MOVEMENT,
+ gb_editor_vim_cmd_backward_word);
gb_editor_vim_class_register_command (klass, 'b',
GB_EDITOR_VIM_COMMAND_FLAG_MOTION_EXCLUSIVE,
GB_EDITOR_VIM_COMMAND_MOVEMENT,
@@ -4605,6 +4609,10 @@ gb_editor_vim_class_init (GbEditorVimClass *klass)
GB_EDITOR_VIM_COMMAND_FLAG_NONE,
GB_EDITOR_VIM_COMMAND_CHANGE,
gb_editor_vim_cmd_delete_to_end);
+ gb_editor_vim_class_register_command (klass, 'E',
+ GB_EDITOR_VIM_COMMAND_FLAG_NONE,
+ GB_EDITOR_VIM_COMMAND_MOVEMENT,
+ gb_editor_vim_cmd_forward_word_end);
gb_editor_vim_class_register_command (klass, 'e',
GB_EDITOR_VIM_COMMAND_FLAG_NONE,
GB_EDITOR_VIM_COMMAND_MOVEMENT,
@@ -4685,6 +4693,10 @@ gb_editor_vim_class_init (GbEditorVimClass *klass)
GB_EDITOR_VIM_COMMAND_FLAG_NONE,
GB_EDITOR_VIM_COMMAND_NOOP,
gb_editor_vim_cmd_select);
+ gb_editor_vim_class_register_command (klass, 'W',
+ GB_EDITOR_VIM_COMMAND_FLAG_MOTION_EXCLUSIVE,
+ GB_EDITOR_VIM_COMMAND_MOVEMENT,
+ gb_editor_vim_cmd_forward_word);
gb_editor_vim_class_register_command (klass, 'w',
GB_EDITOR_VIM_COMMAND_FLAG_MOTION_EXCLUSIVE,
GB_EDITOR_VIM_COMMAND_MOVEMENT,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]