Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inativate navigation using arrows #9268

Open
bkemmer opened this issue Sep 19, 2024 · 1 comment
Open

Inativate navigation using arrows #9268

bkemmer opened this issue Sep 19, 2024 · 1 comment

Comments

@bkemmer
Copy link

bkemmer commented Sep 19, 2024

Hi there,

I am trying to use vim biddings at its fullest but old habits die hard :-)

Is it possible to inactivate the navigations using the arrows?

My goal would be to replicate these commands from a .vimrc, if someone could point me in a direction, like showing one example I believe I can replicate to the rest.

" Do this in normal mode...
nnoremap <Left>  :echoe "Use h"<CR>
nnoremap <Right> :echoe "Use l"<CR>
nnoremap <Up>    :echoe "Use k"<CR>
nnoremap <Down>  :echoe "Use j"<CR>
" ...and in insert mode
inoremap <Left>  <ESC>:echoe "Use h"<CR>
inoremap <Right> <ESC>:echoe "Use l"<CR>
inoremap <Up>    <ESC>:echoe "Use k"<CR>
inoremap <Down>  <ESC>:echoe "Use j"<CR>
@yuanx749
Copy link

yuanx749 commented Oct 6, 2024

Have you tried enabling vimrc in the VSCode settings?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants