Closed alexzanderr closed 2 years ago
Please use $
which represents the end-of-line.
call lexima#add_rule({'char': '"', 'at': '\%#$', 'input_after': '"'})
By the way, are you going to edit vim script? "
will be expanded always except vim script because "
is treated as a comment.
thanks for idea. yes, my bad, i forgot to mention that i was writing in vim script, but i realized later.
On Fri, Jul 30, 2021, 06:19 cohama @.***> wrote:
Please use $ which represents the end-of-line.
call lexima#add_rule({'char': '"', 'at': '\%#$', 'input_after': '"'})
By the way, are you going to edit vim script? " will be expanded always except vim script because " is treated as a comment.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/cohama/lexima.vim/issues/118#issuecomment-889598838, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANB4F4AN5AQJ4F2YEN4LULDT2IK53ANCNFSM5BGG2WAA .
i want to tell lexima to add double quotes when the cursor if right before end of line, because normally:
before inserting double quotes:
after inserting double quotes:
ony this happens...
expectation (after inserting double quotes):
this is my rule
thanks in advance.