我的复制操作符的源代码编写如下.
foo = rhs.foo;
foobar = rhs.foobar;
bar = rhs.bar;
toto = rhs.toto;
Run Code Online (Sandbox Code Playgroud)
我想按照以下方式排列(更具人性化,不是吗?).
foo = rhs.foo;
foobar = rhs.foobar;
bar = rhs.bar;
toto = rhs.toto;
Run Code Online (Sandbox Code Playgroud)
是否有一个VIM魔术插入到列N,或类似的东西,这将允许我使用每行几次击键排队?
有没有办法将字符放在vim中的特定行,即使该行很短?
例如,我正在为一个项目做出贡献,该项目具有79列宽的注释块样式,在任一端都有注释字符,例如
!--------------!
! Comment !
! More Comment !
!--------------!
Run Code Online (Sandbox Code Playgroud)
但即使猜测大数字(35i <SPACE> <ESC>),空间也很烦人
是否有一个简单的命令可以为我,或宏或我能写的东西?
我想在Vim中创建一个宏或脚本来执行以下操作:
例如:
<html>
<head></head>
<body>
<h1>High Score Server</h1>
<table>
ROWS
</table>
</body>
</html>
Run Code Online (Sandbox Code Playgroud)
会成为:
"<html> "
"<head></head> "
"<body> "
"<h1>High Score Server</h1>"
"<table> "
"ROWS "
"</table> "
"</body> "
"</html> ";
Run Code Online (Sandbox Code Playgroud)
我能够通过宏实现这一点,但没有右侧引号的垂直对齐.任何人都可以帮我这个吗?