Hi Prot,
Hope you are doing well!
Recently I surprisingly find that you started to use evil. By
looking at
your source code I am really sorry to hear that you injured your
left
hand. I hope you could recover from it soon!
I highly recommends two packages (they are exclusive) in an effort
to
avoid control keys as much as possible.
The first is evil-escape
(https://github.com/syl20bnr/evil-escape),
which allows you to use "jk" to switch to normal mode (something
similar
to "nmap jk <ESC>") in vim. I never find "C-[" or "<ESC>" to
switch to
normal mode efficiently and they are harmful to my left hands,
either
you press control key which has the potential to exacerbate RSI or
I
have to move my lefthand off the homerow. BTW, "jk" in evil-escape
is
lagless.
Meow (https://github.com/meow-edit/meow) is yet another modal
editing
mode. I personally don't use this but with discussion with others
I
think meow has its advantage in integrating with vanilla emacs
much more
seamlessly.
The highlight for meow is you can use "SPC x f" to emulate "C-x
C-f"
automatically (no additional keybinding configuration needed), and
"SPC
x SPC o" to emulate "C-x o". I personally think this in some sense
even
eliminating ctrl keys even more than evil. You still have to use
"C-v",
"C-w" stuffs in vim occasionally. And meow doesn't need to
reconfigure
every keybindings you already have, they applied in a modal way
automatically.
I am inspired by your blogs a lot and I am really appreciate it
for your
post. Hope you could stay healthy and produce more high quality
contents!
> From: North Year <ny-ml@outlook.com>> Date: Thu, 8 Dec 2022 14:55:27 -0500>> Hi Prot,
Hello there!
> Hope you are doing well!
I am fine, thank you!
> Recently I surprisingly find that you started to use evil. By looking> at your source code I am really sorry to hear that you injured your> left hand. I hope you could recover from it soon!
My arm is getting better though it is not fully healed. No problem
though. It was just shock damage and will recover completely. I will
be using evil-mode until then. After that I am not sure.
> I highly recommends two packages (they are exclusive) in an effort to> avoid control keys as much as possible.>> The first is evil-escape (https://github.com/syl20bnr/evil-escape),> which allows you to use "jk" to switch to normal mode (something> similar to "nmap jk <ESC>") in vim. I never find "C-[" or "<ESC>" to> switch to normal mode efficiently and they are harmful to my left> hands, either you press control key which has the potential to> exacerbate RSI or I have to move my lefthand off the homerow. BTW,> "jk" in evil-escape is lagless.
Good to know!
> Meow (https://github.com/meow-edit/meow) is yet another modal editing> mode. I personally don't use this but with discussion with others I> think meow has its advantage in integrating with vanilla emacs much> more seamlessly.>> The highlight for meow is you can use "SPC x f" to emulate "C-x C-f"> automatically (no additional keybinding configuration needed), and> "SPC x SPC o" to emulate "C-x o". I personally think this in some> sense even eliminating ctrl keys even more than evil. You still have> to use "C-v", "C-w" stuffs in vim occasionally. And meow doesn't need> to reconfigure every keybindings you already have, they applied in a> modal way automatically.
I wanted to try Meow before, but could not access its tutorial so I did
not know how to perform the various motions. It's model is highly
promising and I think it will be better for me than evil-mode.
One problem I have with evil is that I do not know how to target the
symbol-at-point the way Emacs keys do. For example, if point is inside
this:
some-symbol-here)))
I want to delete "some-symbol-here" WITHOUT the parentheses. So I type
ciW, which does the wrong thing as it captures the parentheses. In Lisp
code, I end up unbalancing the expressions the whole time. This is a
problem I did not have with the Emacs keys.
There probably is a way to define word/symbol boundaries or something
like that, but I have not researched it yet.
> I am inspired by your blogs a lot and I am really appreciate it for> your post. Hope you could stay healthy and produce more high quality> contents!
Thank you! I will try to keep it this way and produce more relevant
content in the near future.
All the best,
Prot
--
Protesilaos Stavrou
https://protesilaos.com
Protesilaos Stavrou <info@protesilaos.com> writes:
>> some-symbol-here)))
It's "yio" or "yao" to select a symbol. Vim and emacs's word are
different things. Vim uses "iskeyword" to configure what forms a
word,
while emacs uses "modify-syntax-entry"
> From: North Year <ny-ml@outlook.com>> Date: Thu, 8 Dec 2022 23:05:14 -0500>> Protesilaos Stavrou <info@protesilaos.com> writes:>>>>> some-symbol-here)))>> It's "yio" or "yao" to select a symbol. Vim and emacs's word are> different things. Vim uses "iskeyword" to configure what forms a word,> while emacs uses "modify-syntax-entry"
Excellent! This works. Thank you!
--
Protesilaos Stavrou
https://protesilaos.com