. syntax to
 for property access. So, I wanted to make a mapping for this. Manually, I place my cursor on the
. (in normal mode) and then type
lysiw"ysa"]hx but I can’t get this to work in my vimrc. I’m sure there’s something I’m missing about how to define the mappings. So far, here’s what I tried:
nnoremap <leader>[ lysiw"ysa"]hx
It appears that the
inner word dumps me to insert mode and the rest of the mapping gets plopped in as a string literal. Anyone able to point me in the right direction for making this mapping work?