看板 Editor 關於我們 聯絡資訊
不知你要的 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