海运的博客

Windows7右键菜单添加用Vim编辑

发布时间:February 7, 2013 // 分类:Vim // No Comments

WindowsGvim安装后会在右键菜单添加使用Vim编辑的选项,绿色版Gvim可自行添加:

;https://www.haiyun.me
reg.exe ADD HKEY_CLASSES_ROOT\*\shell\用Vim编辑\Command -d "D:\\Program Files\\Gvim\\vim73\\gvim.exe  \"%1\""

或导入以下注册表,Gvim目录自行替换。

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\*\shell\用Vim编辑\Command]
@="D:\\Program Files\\Gvim\\vim73\\gvim.exe \"%1\""

Gvim添加右键菜单.png

Vim配置文件的目录变量

发布时间:February 6, 2013 // 分类:Vim // No Comments

配置Gvim的时候经常要引用Gvim的安装和插件目录,保持Vim配置文件的简洁和可移值性可使用Gvim的目录变量。

$VIM vim安装目录
$VIMRUNTIME vim支持文件所在目录,也就是$VIM/vim73目录
$HOME 当前系统用户目录
~ 当前系统用户目录

Xshell4发布官方中文版了

发布时间:February 6, 2013 // 分类:Xshell // No Comments

XshellWindows下功能强大的SSH管理软件,家庭及学生用户可免费使用,Xshell最近更新增加了官方中文版。
Xsehll最近更新:

Xshell 4 Build 0123, Feb 05, 2013

        FIX: Resource cleanup, minor bug fixes, feature update

Xshell 4 Build 0122, Jan 29, 2013

        ADD: French, German, Japanese, Spanish, Simplified Chinese, Traditional Chinese UI
        ADD: Use user defined string for keep alive
        FIX: Only the last tab can be reconnected when network goes down
        FIX: Transferring large data via serial crashes Xshell
        FIX: Local shell command is not displayed properly in some languages
        FIX: Problem transferring large files via Zmodem
        FIX: Tab name changes to COM1
        FIX: Incorrect selection area when double clicked to make selection then moved mouse to change selection area
        FIX: Some meta keys send incorrect value
        FIX: Resource cleanup, minor bug fixes, feature update

Xshell4官方中文版效果图:
Xshell官方中文版.png

AutoHotkey自定快捷键启动程序及快速输入替换文字

发布时间:February 6, 2013 // 分类:AutoHotKey // No Comments

AutoHotkey快速输入替换文本,例输入ono后接空格、句号、TAB、Enter会自动将内容替换为https://www.haiyun.me

::ono::https://www.haiyun.me

也可以写成:

::ono::
SendInput https://www.haiyun.me
return

AutoHotkey输入特定字符发送按键:

::p::
Send ^!a
return
#输入P加空格发送Ctrl+Alt+A键

AutoHotkey自定快捷键启动程序,例Win+G启动CMD。

#g::
Run Cmd.exe
return

AutoHotkey快捷键对应:

#       Win
!     Alt
^     Control
+     Shift

StrokesPlus发送快捷键命令列表

发布时间:February 5, 2013 // 分类:StrokesPlus // No Comments

StrokesPlus可通过手势发送特定按键,以下为对应的快捷键列表。

@ = WINKEY
+ = SHIFT
^ = CTRL
% = ALT
{ADD} = VK_ADD
{APPS} = VK_APPS
{AT} = @
{BACKSPACE} = VK_BACK
{BKSP} = VK_BACK
{BREAK} = VK_CANCEL
{BROWSERBACK} = VK_BROWSER_BACK
{BROWSERFAVORITES} = VK_BROWSER_FAVORITES
{BROWSERFORWARD} = VK_BROWSER_FORWARD
{BROWSERHOME} = VK_BROWSER_HOME
{BROWSERREFRESH} = VK_BROWSER_REFRESH
{BROWSERSEARCH} = VK_BROWSER_SEARCH
{BROWSERSTOP} = VK_BROWSER_STOP
{BS} = VK_BACK
{CAPSLOCK} = VK_CAPITAL
{CARET} = ^
{CLEAR} = VK_CLEAR
{DECIMAL} = VK_DECIMAL
{DEL} = VK_DELETE
{DELETE} = VK_DELETE
{DIVIDE} = VK_DIVIDE
{DOWN} = VK_DOWN
{END} = VK_END
{ENTER} = VK_RETURN
{ESC} = VK_ESCAPE
{ESCAPE} = VK_ESCAPE
{F10} = VK_F10
{F11} = VK_F11
{F12} = VK_F12
{F13} = VK_F13
{F14} = VK_F14
{F15} = VK_F15
{F16} = VK_F16
{F_1} = VK_F1
{F_2} = VK_F2
{F_3} = VK_F3
{F_4} = VK_F4
{F_5} = VK_F5
{F_6} = VK_F6
{F_7} = VK_F7
{F_8} = VK_F8
{F_9} = VK_F9
{HELP} = VK_HELP
{HOME} = VK_HOME
{INS} = VK_INSERT
{LBRACE} = {
{LEFT} = VK_LEFT
{LPAREN} = (
{LWIN} = VK_LWIN
{MEDIANEXTTRACK} = VK_MEDIA_NEXT_TRACK
{MEDIAPLAYPAUSE} = VK_MEDIA_PLAY_PAUSE
{MEDIAPREVTRACK} = VK_MEDIA_PREV_TRACK
{MEDIASTOP} = VK_MEDIA_STOP
{MULTIPLY} = VK_MULTIPLY
{NUMLOCK} = VK_NUMLOCK
{NUMPAD0} = VK_NUMPAD0
{NUMPAD1} = VK_NUMPAD1
{NUMPAD2} = VK_NUMPAD2
{NUMPAD3} = VK_NUMPAD3
{NUMPAD4} = VK_NUMPAD4
{NUMPAD5} = VK_NUMPAD5
{NUMPAD6} = VK_NUMPAD6
{NUMPAD7} = VK_NUMPAD7
{NUMPAD8} = VK_NUMPAD8
{NUMPAD9} = VK_NUMPAD9
{PERCENT} = %
{PGDN} = VK_NEXT
{PGUP} = VK_PRIOR
{PLUS} = +
{PRTSC} = VK_PRINT
{RBRACE} = }
{RIGHT} = VK_RIGHT
{RPAREN} = )
{RWIN} = VK_RWIN
{SCROLL} = VK_SCROLL
{SEPARATOR} - VK_SEPARATOR
{SLEEP} - VK_SLEEP
{SNAPSHOT} = VK_SNAPSHOT
{SUBTRACT} - VK_SUBTRACT
{TAB} = VK_TAB
{TILDE} = ~
{UP} = VK_UP
{VOLDOWN} = VK_VOLUME_DOWN
{VOLMUTE} = VK_VOLUME_MUTE
{VOLUP} = VK_VOLUME_UP
{WIN} = VK_LWIN 

示例,如果发送ctrl+tab刚填写为:

acSendKeys("^{TAB}")

发送shirt+tab为:

acSendKeys("+{TAB}")
分类
最新文章
最近回复
  • 杰迪武士: 此文甚好甚强巨,依照此文在树莓派2 + Rasbian上部署成功 感谢博主美文共赏
  • 海运: ups不知有没选项可设置此参数,不过你可以在另外一台电脑上安装nut客户端自动关机。
  • kgami: 想请教一下,设置了的电脑自动关机之后,几秒后UPS怎么也跟着关机了,导致另外一台电脑没关机就断...
  • 海运: 写的很详细了啊,/etc/nut/hosts.conf用以nut-cgi连接nut服务器参数,...
  • ryan: 请问下nginx配置好了,怎么和这个nut链接呢?最后可视化管理这块能给个详细一点的教程么?谢谢。
  • 1: /etc/config/fstab配置文件 https://openwrt.org/zh/do...
  • 听雨看雪: 找了好久,终于找到UP主,给出的正确解决方案,太感谢了,困扰大半年的问题,重装了N道PVE系统...
  • zr: 大佬,这个bash-completion是从哪个源搞到的
  • 姚生: 要要下载
  • 阿东: 我在编译树莓派的时候也遇到同样的问题,后来发现是make menuconfig 的时候忘了带环...