Groups
Groups
Sign in
Groups
Groups
Vim-Taiwan
Conversations
About
Send feedback
Help
问一个简单的功能,如何选中当前光标所在单词的整个单词?
3,442 views
Skip to first unread message
Ash
unread,
Mar 23, 2012, 4:03:18 AM
3/23/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Vim-Taiwan
比如我光标停留在单词interesting中的r上,我想快速将整个单词选中,
方法一:鼠标双击
方法二:bvw
还有没有更快速的方法呢???
Meng-Han Lee
unread,
Mar 23, 2012, 4:05:43 AM
3/23/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to vim-t...@googlegroups.com
viw?
雖然和 bvw 一樣要按三個鍵,不過似乎比較好按
Ash hui
unread,
Mar 23, 2012, 4:06:38 AM
3/23/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to vim-t...@googlegroups.com
viw是什么原理呢???
Meng-Han Lee
unread,
Mar 23, 2012, 4:13:01 AM
3/23/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to vim-t...@googlegroups.com
iw = "inner word"
可以 :help iw
pingooo
unread,
Mar 23, 2012, 10:49:05 AM
3/23/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to vim-t...@googlegroups.com
我都按 * 用來標示和搜尋當前字。
2012/3/23 Meng-Han Lee
<
sunri...@gmail.com
>
小畢
unread,
Mar 23, 2012, 12:14:23 PM
3/23/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to vim-t...@googlegroups.com
我也會選擇用 viw。
不過我不會這麼用...因為如果我特別要選某個字,都是要對他做某些事,例如複製、剪下、或選取。所以直接用相對應的 command 會更快。:)
也許你也可以把你選取後要做的事提出來討論,說不定有更方便的作法~
--
小畢/CrBoy
A member of open source communities in Taiwan
Ash hui
unread,
Mar 23, 2012, 9:46:41 PM
3/23/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to vim-t...@googlegroups.com
通常情况是,我想把某行中的某个词替换或者复制给另外一行中的某个词。
Sonyu
unread,
Mar 23, 2012, 10:15:23 PM
3/23/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Vim-Taiwan
" */# jump to the next, use N to jump back (the origin one)
nnoremap * *Nzz
nnoremap # #Nzz
nnoremap g* g*zz
nnoremap g# g#zz
Chu-Siang, Lai
unread,
Mar 24, 2012, 10:53:23 AM
3/24/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to vim-t...@googlegroups.com
bvw? 在下覺得 bve 會比要適合 :P
不過 viw 似乎也很棒!!
小畢
unread,
Mar 25, 2012, 12:42:17 PM
3/25/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to vim-t...@googlegroups.com
直接用 ciw 如何呢?
pingooo
unread,
Mar 25, 2012, 9:00:55 PM
3/25/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to vim-t...@googlegroups.com
要替換那個詞:bcw = back-change-word,開始填詞。
要複製那個詞:byw = back-yank-word。
我覺得這兩個都很好懂也很好記。
2012/3/26 小畢
<
crazys...@gmail.com
>
小畢
unread,
Mar 26, 2012, 1:11:27 PM
3/26/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to vim-t...@googlegroups.com
這個作法也滿不錯,不過有個小小差異,就是會多砍掉一個空白(之後要多輸入)。不過這不太礙事啦,只要用得順手即可。
倒是讓我想到一個我一直不知道該怎麼做比較好的問題,待會發信向大家請益!<(_ _)>
賴楚翔 (Chu-Siang Lai)
unread,
Mar 26, 2012, 1:23:24 PM
3/26/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to vim-t...@googlegroups.com
把 w 改成 e 就不會多那個空白了!
(上面有發過都沒人理)
----
jonny@gmail:~$ cat profile.conf
- 賴楚翔 (凍仁翔)
-
http://jonny.ubuntu-tw.net
小畢
unread,
Mar 26, 2012, 1:31:54 PM
3/26/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to vim-t...@googlegroups.com
pingooo 應該是要拿 vim command 的語意跟英文的語意做結合,所以用 e 就會有點怪怪的了。(back-change-end? back-yank-end?)
Reply all
Reply to author
Forward
0 new messages