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

Tab and C-h interacting? #49

Closed
mlhetland opened this issue May 25, 2015 · 1 comment
Closed

Tab and C-h interacting? #49

mlhetland opened this issue May 25, 2015 · 1 comment

Comments

@mlhetland
Copy link

Is <Tab> somehow using <C-h>? If I try to map <C-h> to something (specifically with imap), it works, but the tab key starts acting up in julia-vim (but nowhere else). As an example, I'll start out with a .vimrc with just the minimal Vundle setup for including julia-vim, and no other mappings or code.

Then I add the following (before the Vundle block):

imap <C-h> Hello, world!

Starting vim with this .vimrc, if I edit a non-Julia file, pressing <Tab> (in insert mode) will insert a tab, and pressing <C-h> will insert Hello, world!.

If I edit a Julia file, <C-h> also does its job, but pressing <Tab> will now insert:

<91>Hello, world!

where there is a tab character after Hello, world!. If I start the line with, say, \alph and then press tab, I get the completion:

\alpha

I press it again, and get:

α<91>Hello, world!

This time without a tab at the end.

The <91> is a Unicode "PRIVATE USE ONE".

It seems to me that this behavior is a bug, and that it is a bug in julia-vim – but I may very well be mistaken…

@carlobaldassi
Copy link
Contributor

Thanks for the detailed report. It was an oversight: <C-H> is the backspace, which is what was being called.

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