Skip to content

Getting Keyvalue working with 1-line variable assignment #3

@sunnypp

Description

@sunnypp

Fantastic Plugin! Seems @vimtaku is also working with Perl so it may be easier to say what I want to do!

Let's say I have a line like this: (And I temporarily :set ft= to use = as splitter)
$a{"asdf"} = '';

  1. dak deletes $a{"asdf"} which is ok. (Though it'd be better to delete those in quotes or brackets!)
  2. dav deletes ''; which I would have expected '' (not deleting the ;, because I want to use cav to make a String becomes an Arrayref sometimes)
  3. dik deletes the first space. (If 1 could work, I would expect $a{"asdf"} -> $a{""} and $a{asdf} -> $a)
  4. div deletes asdf"} = ' which means only $a{"'; is left. Expected to have no change (since there is no value between the '')

Just as a side-note, it'd be nice if Perl's splitter is =>? or I can define a let g:splitter_map_perl = '=>?' that overrides the s:splitter_map['perl'] so I don't have to set ft= before I want to play with variable assignment.

Many thanks in advance!

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