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

Extend mappings to Neovim's new Terminal mode #67

Open
snoblenet opened this issue Oct 5, 2017 · 2 comments
Open

Extend mappings to Neovim's new Terminal mode #67

snoblenet opened this issue Oct 5, 2017 · 2 comments

Comments

@snoblenet
Copy link

Is it possible to extend the mappings to Neovim's new Terminal mode?

I understand some of DWM's default key mappings like have an existing meaning the shell, but surely there is a solution...?

@delphinus
Copy link

I think the original Vim's :terminal has the same problem... ;(

@delphinus
Copy link

Finally, I got the (temporal) solution. I decided to set maps for <A-'s in addition to <C-'s. This probably works with Vim8 & NeoVim on many modern terminals.

tmap <A-j> <C-\><C-n><C-j>
tmap <A-k> <C-\><C-n><C-k>
nmap <A-j> <C-j>
nmap <A-k> <C-k>
" ... and other maps

" if the code above does not work, try below.
tmap ê <C-\><C-n><C-j>
tmap ë <C-\><C-n><C-k>
nmap ê <C-j>
nmap ë <C-k>
" ... and other maps

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