vimrc icon indicating copy to clipboard operation
vimrc copied to clipboard

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

Open theralmackey-tc opened this issue 1 year ago • 1 comments

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.

theralmackey-tc avatar Dec 27 '24 21:12 theralmackey-tc

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.

cmatKhan avatar Dec 30 '24 15:12 cmatKhan