Skip to main content

All Questions

Filter by
Sorted by
Tagged with
2 votes
1 answer
311 views

How to assign a Python list to a vim variable and escape its strings correctly

Here is a Python list that I'm trying to assign to some Vim variable. lines = ['"""Something foo\'s thing."""', '', 'foo = "asdfasdf" \\', 'bar'] command = 'let l:corrected_lines = {lines}'.format(...
ColinKennedy's user avatar