vim-utils / vim-alt-mappings

(experimental!) Enables ALT key mappings in terminal vim
MIT License
38 stars 5 forks source link

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

Open mcandre opened 5 years ago

mcandre commented 5 years ago

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 commented 1 year ago

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.