Groups
Groups
Sign in
Groups
Groups
Vim.cn
Conversations
About
Send feedback
Help
请教,如何映射方向键
396 views
Skip to first unread message
Wu Liang
unread,
Nov 19, 2009, 11:14:40 PM
11/19/09
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...@googlegroups.com
我以前都是将F2和F3映射为tabprevious和tabnext
但一直觉得将这两个健映射掉,不太合理
所以就想把tabprevious和tabnext映射为ctrl-方向键左键和ctrl-方向键右键
尝试了<C-Left>和<C-Right>好像都不行
请问,大家知道该怎么映射方向键吗?
谢谢
闲耘(tm)
unread,
Nov 19, 2009, 11:33:16 PM
11/19/09
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...@googlegroups.com
最近好像很多RP问题 :D 我试过没有问题的
nmap <C-Left> :tabprevious<cr>
nmap <C-Right> :tabnext<cr>
--
闲耘™ (@hotoo,
xianyun.org
)
Sent from Hangzhou, 33, China
2009/11/20 Wu Liang
<
garcia...@gmail.com
>
Cyril.Liu
unread,
Nov 20, 2009, 5:41:18 AM
11/20/09
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...@googlegroups.com
应该不会有问题, 难道是冲突了?
你是怎么映射的? 命令发上来看看
2009/11/20 Wu Liang
<
garcia...@gmail.com
>
--
About Cyril.Liu
-----------------------------------
Cyril
是一个程序员,
现在是个穷光蛋,
他常常跟自己说:"我喺一個有理想嘅蝸牛仔仔"
http://blog.liuciyong.cn/
闲耘(tm)
unread,
Nov 20, 2009, 5:45:05 AM
11/20/09
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...@googlegroups.com
。。。你有没有在看,上面不是给出代码了吗。
你可以在启动Vim后,命令模式下设置,这样就可以避免重映射了。如果这样没有问题,那应该就是被重映射了。
--
闲耘™ (@hotoo,
xianyun.org
)
Sent from Hangzhou, 33, China
2009/11/20 Cyril.Liu
<
terr...@gmail.com
>
Ricky
unread,
Nov 20, 2009, 5:58:08 AM
11/20/09
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...@googlegroups.com
看看:map <C-Right>是啥就知道有没有问题了
---------------
闲耘(tm)
unread,
Nov 20, 2009, 6:04:50 AM
11/20/09
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...@googlegroups.com
我在Windows是试过没有问题的,不论在写在vimrc或者直接在命令模式下执行。
<C-Left> <C-Right> 本身有映射没有错,但是你可以重映射,用上面给出的代码就可以了。
--
闲耘™ (@hotoo,
xianyun.org
)
Sent from Hangzhou, 33, China
2009/11/20 Ricky
<
rich...@live.com
>
Cyril.Liu
unread,
Nov 20, 2009, 6:27:36 AM
11/20/09
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...@googlegroups.com
我是说楼主没有给出映射命令.... -_-|||
Kevin.Gu
unread,
Nov 20, 2009, 1:59:54 AM
11/20/09
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...@googlegroups.com
呵呵,我试了一下,也没有问题。
Reply all
Reply to author
Forward
0 new messages