VIM跳转到程序中的下一个逻辑块

时间:2013-11-15 21:16:28

标签: vim plugins

VIM或VIM插件中是否有功能允许用户跳转到下一个空白行(程序内的“逻辑块”)?

示例:

// cursor is originally here
-> means the next location of jump
#include<stdio.h>
->
main()
{
   -> 
   int n;
   ->
   printf("Enter an integer\n");
   scanf("%d",&n);
   ->
   if ( n & 1 == 1 )
      printf("Odd\n");
   else
      printf("Even\n");
   ->
   return 0;
}

谢谢!

1 个答案:

答案 0 :(得分:3)

一个非常简单的方法是使用段落动作}向前跳,{向后跳。