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

Trying to work with shell script args is very annoying due to 'Insert Mode Remap' #767

Open
theralmackey-tc opened this issue Dec 27, 2024 · 1 comment

Comments

@theralmackey-tc
Copy link

Situation: I am editing simple shell scripts. They use command line arguments accessed via $1, $2, $3, etc. This pkg has remapped/aliased those such that trying to insert $1 instead inserts (), $2 inserts [], $3 inserts {} (as described in the README under 'Insert Mode Remaps'). I do not know why this is aliased this way, it is much quicker to simply insert those characters with normal keys (which this or another plugin will already auto-close). As it is, this needs to be disabled if working in Shell (probably perl and php and any other language using $ denoted variables), the current work-around I have is to insert a $, hit esc, re-enter insert mode and hit a number, very tedious and annoying and a frustrating surprise when it first happened. Ripping this out of my config is next, this is a bad default mapping.

@cmatKhan
Copy link

Bump. I don't use keyboard shortcuts extensively and figured I wasn't the target audience of this particular feature. But, I'd vote for this to be a feature to opt into, rather than on by default.

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