TI重新打造SimpleLink,欲简化IoT控制与连接
6 questions
6
votes
2
answers
4k
views
How does VIM know to NOT interpret this .html file as html?
I've been working on an SGML/XML/HTML parser, and part of proof testing it is running through every last .html and .xml file on my system.
One file I came across was this:
vim "/var/lib/snapd/...
1
vote
2
answers
181
views
How to remove incorrect red background for the correct code?
In modern Perl the concept of function signature was introduced. I looks like this:
# old style:
sub my_sub {
my $param = shift;
# ...
}
# new style:
sub my_sub ($param) {
# ...
}
When I ...
0
votes
1
answer
899
views
How to parse a string to a list?
Is there a way in Vim to do the following:
let S = '[''123'', ''456'', ''789'']'
let L = parseStringToList(S)
" L is a list containing the string '123', '456', and '789'
2
votes
2
answers
2k
views
Operate on a visual selection by looping through the lines
I'm looking for an approach, in Vimscript, to operate on the text lines of a buffer by looping through lines of a visual selection.
Specifically, my goal is very simple: I have a (vertical) list of ...
1
vote
1
answer
46
views
Get literal character from printable character
Is it possible to convert a character from printable to literal? (like "<c-o>" to "\<c-o>", or "<F1>" to "\<F1>"), other than by using a dicionary with all special characters. ...
4
votes
1
answer
387
views
Parsing a valid normal-mode command (possibly with regex)? (for Vim-like Word add-in)
I am writing a VBA routine so I can use normal-mode commands in Microsoft Word. (Yes, I am! Edit And here you go!) I am only going to support the d, c, and y operators initially, and only char/word/...