mirror of
https://github.com/vim/vim.git
synced 2025-07-04 23:07:33 -04:00
15 lines
522 B
VimL
15 lines
522 B
VimL
|
" String
|
||
|
|
||
|
echo 'It''s a string'
|
||
|
echo 'tab: \t, new line: \n, backslash: \\'
|
||
|
echo "tab: \t, new line: \n, backslash: \\"
|
||
|
|
||
|
" String interpolation
|
||
|
|
||
|
echo 'Don''t highlight interpolation: {{ {1 + 2} }}'
|
||
|
echo "Don't highlight interpolation: {{ {1 + 2} }}"
|
||
|
echo $'Highlight interpolation:\t{{ { string({'foo': 'bar'}) } }}'
|
||
|
echo $'Highlight interpolation:\t{{ { $'nested: {{ {1 + 2} }}' } }}'
|
||
|
echo $"Highlight interpolation:\t{{ { string({"foo": "bar"}) } }}"
|
||
|
echo $"Highlight interpolation:\t{{ { $"nested: {{ {1 + 2} }}" } }}"
|