在vim中按第一个字母在行之间移动

2 vim

有没有办法像我们通常在当前行中使用“f +字母”那样在vim中按第一个字母在行之间移动,例如:

 din          (tuple_hash_ack_data),       
 wr_en        (tuple_hash_ack_wr),        
 dout         (ack_fifo_data),       
 rd_en        (ack_fifo_rd),       
 empty        (ack_fifo_empty),        
 data_count   (tuple_hash_count),      
 almost_full  (tuple_hash_almost_full)  
Run Code Online (Sandbox Code Playgroud)

首先光标停在第一行:

   din          (tuple_hash_ack_data),  
Run Code Online (Sandbox Code Playgroud)

我想跳到这一行:

   almost_full  (tuple_hash_almost_full)   
Run Code Online (Sandbox Code Playgroud)

我想输入“fa”之类的东西,这可能吗?

小智 6

/^a将带您到以“a”开头的下一行 - 在正则表达式语法中,^匹配行的开头,因此/^a搜索行的开头,紧接着是 a。