Open EricEWeir opened 1 year ago
Have a try as below:
nmap H ^
nmap L $
imap jj <Esc>
for this mapping:
map jj <ESC>
perfectly work this one
imap jj <Esc>
I have these:
nmap H ^
nmap L $
imap jj <ESC>
nmap H ^
Takes cursor to top of file.
nmap L $
Takes cursor to bottom of file.
imap jj <ESC>
Enters jj
I have vimrc-support plugin enabled. Also Obsidian vim key bindings.
If anybody has a clue about why these key bindings aren't working for me I'd greatly appreciate help. I gather they work for others.Especially miss the
Again, Obsidian's vim key bindings and the vimrc-support plugin are enabled on all devices.
If anybody has a clue about why these key bindings aren't working for me I'd greatly appreciate help. I gather they work for others.Especially miss the binding on my mobile devices.
Again, Obsidian's vim key bindings and the vimrc-support plugin are enabled on all devices.
Hello, try this:
.obsidian.vimrc
imap jj <Esc>
nmap H gg
nmap L G
Thanks. I tried it. Same results.
gg
and G
don't need to be mapped. It seems they're already provided for in Obsidians native vim mode
Hi @EricEWeir, I had a similar issue, and I cannot reproduce how I fixed it, but I will share my experience. I had a .obsidian.vimrc with:
nmap j gj
nmap k gk, both worked
a few lines below, I had
imap jk <Esc>, and jk in insert mode didn't work.
I had a combination of issues: I wrote originally "ESC" instead of "Esc", corrected and no changes. My configuration started to work once I moved the imap jk
I have Obsidian v1.1.15 installed with Vimrc support plugin 0.9.0
I'm a noncoder trying to implement simple vim-mode mappings. They are:
The
H
andL
remaps don't work. Neither does the<ESC>
. remap.I started with I also
noremap
mappings. On suggestions encountered here I also triedimap
andmap
. Withtried inoremap
I'm guessing none of the is right for<ESC>
.Help appreciated.