我想知道Vim中是否有任何键映射允许我缩进某些代码行(这些代码行是在视觉模式下 Select 的,还是在当前光标位置上方/下方n行).
所以基本上可以将以下内容转换为
def my_fun(x, y):
return x + y
到
#def my_fun(x, y):
# return x + y
I am okay with using either #
or """
for commenting out the relevant lines. Ideally, I would also like the same keymapping 到 uncomment the lines if the given lines have been commented out.