是否有可能在不移动到开始的情况下就将整个元素拉出? [英] Is it possible to yank the entire element without moving to the beginning?

查看:61
本文介绍了是否有可能在不移动到开始的情况下就将整个元素拉出?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我的光标位于单词的中间,并且想拉整整个单词时,必须先按 b ,然后按 y w 拉动它.

When my cursor in middle of a word, and I want to yank the whole word, I must press b first, and press yw to yank it.

我想知道我是否可以在不先按 b 的情况下对单词进行修饰?

I want to know can I yank the word without hitting b first?

推荐答案

y a w 是围绕单词的,表示是否存在单词后面有一个空格,它也会抓住它(但前面没有空格).

yaw is yank around word, meaning if there is a space after the word, it will grab it too (but not a space before).

y i w 是在单词内部拉动的,只拉动单词字符.

yiw is yank inside word, which yanks just the word characters.

您可以看到 v a w v i kbd> w 选择相同的字符.然后,您还可以按 y 进行拉动.

You can see what will be yanked by vaw or viw to select the same characters. You could then also hit y to perform the yank.

ia当然适用于所有其他VIM组,例如W,它是任何非空格.

i and a of course apply to all the other VIM groups, like W, which is any non whitespace.

这篇关于是否有可能在不移动到开始的情况下就将整个元素拉出?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆