Skip to content

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

@theralmackey-tc

Description

@theralmackey-tc

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions