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

How can I change default mapping in lh-brackets? #29

Open
pBlasiak opened this issue Aug 5, 2021 · 3 comments
Open

How can I change default mapping in lh-brackets? #29

pBlasiak opened this issue Aug 5, 2021 · 3 comments

Comments

@pBlasiak
Copy link

pBlasiak commented Aug 5, 2021

Hi,
i have a problem because e.g. Ctrl+J mapping is already defined in Latex-Suite
and there is an error:
Cannot define imap toMarkersJumpFin (:source):{(unset )}: a previous global mapping on was defined in /home/przemek/.vim/bundl e/vim-latex-suite/plugin/imaps.vim.

I read the documentation about Brackets-default but I did not find how to change default
mappings e.g. into Ctrl+G.
Can you help me?

@LucHermitte
Copy link
Owner

Hi,

Sorry for the late answer. You should be able to fix it with

imap <C-G>      <Plug>MarkersJumpF
 map <C-G>      <Plug>MarkersJumpF

See :h <Plug>MarkersJumpF

As I try to be compatible with vim-latex, I should have detected this situation. Also, you can safely override vim-latex <c-j> with lh-bracket one as vim-latex mapping is a simplification of lh-bracket mapping. (a lot of things have been shared at the time :))

@pBlasiak
Copy link
Author

Thank you it helped :)
One more question. How can I override vim-latex <c-j>?

@LucHermitte
Copy link
Owner

If I'm not mistaken,

" Not sure about the use of <nop> here. Use a key sequence you're sure to never use, something you could find in ":h digraph" maybe?
imap <Nop> <Plug>IMAP_JumpForward
   
imap <C-J>      <Plug>MarkersJumpF
 map <C-J>      <Plug>MarkersJumpF

in your .vimrc should be enough.

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