作者oversky0 (oversky0)
看板Editor
标题Re: [问题] 请问 Visual Studio 有 Vim mode 嘛?
时间Thu Jul 15 22:11:25 2010
不知你要的 vim mode 是要多少功能?
我有用 autohotkey 写了一个简单的 vim emulator
装好 autohotkey 後把下面的程式存成 vim.ahk 後执行,
按 Win 键切换,
我上下左右是用 ikjl ,
和 vim 的有些不同。
=========================================================
SysGet, Resolution, 16 ; Get the width of the main monitor
Center := Resolution/2
Width_tooltip := 150
Pos_tooltip := Center - Width_tooltip/2
running = false
Suspend
LWin::
Suspend
;Send, {Ins}
;;;;;;;;;;;;;;;;;;;;; Display tooltip on the screen
CoordMode, ToolTip, Screen
If running = true
{
ToolTip
running = false
}
else
{
ToolTip, Command mode active, Pos_tooltip, 0
running = true
}
;;;;;;;;;;;;;;;;;;;;;;
return
i::Up
k::Down
j::Left
l::Right
h::Home
`;::End
u::PgUp
9::PgUp
o::PgDn
x::Del
w::Send, ^{Right}
b::Send, ^{Left}
return
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 114.44.111.125