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

vim-alt-mappings corrupts Vim (Ubuntu) #9

Open
mcandre opened this issue Mar 23, 2019 · 1 comment
Open

vim-alt-mappings corrupts Vim (Ubuntu) #9

mcandre opened this issue Mar 23, 2019 · 1 comment

Comments

@mcandre
Copy link

mcandre commented Mar 23, 2019

When I use vim-alt-mappings in Ubuntu 18.04 Bionic Beaver, then my Vim 8.0.1453 session becomes corrupted at launch. Specifically, strange character sequences appear in the command area, and the first few characters of the buffer are overwritten. This happens, for example, when launching vim . or vim ~/.vimrc

Configuration:

https://github.com/mcandre/dotfiles/blob/0188e5850c251ede34a7d14b3c678ecf2fadf7da/.vimrc

@amariusz
Copy link

amariusz commented Feb 24, 2023

For anyone still using this plugin - I've used following modification in plugin/alt_mappings.vim to prevent this from happening:

this "range(92, 123)"

let ascii_nums = [33] + range(35, 61) + range(63, 78) + range(80, 90) + range(92, 123) + [125, 126]

to this "range(94, 123)"

let ascii_nums = [33] + range(35, 61) + range(63, 78) + range(80, 90) + range(94, 123) + [125, 126]

For some reason charaters 92 ('') and 93 ('[') started causing issues back in 2019.
93 is entering 'g' character in the file and 93 is entering some 'gibberish' sequence in command line.

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