     ; Calculate new position.
     newx := restore_x != "" ? restore_x : Round(monLeft + (sideX+1) * (monWidth  - neww)/2)
     newy := restore_y != "" ? restore_y : Round(monTop  + (sideY+1) * (monHeight - newh)/2)
-    return
+return
 
 CalcMonitorStats:
     ; Get work area (excludes taskbar-reserved space.)
     SysGet, mon, MonitorWorkArea, %m%
     monWidth  := monRight - monLeft
     monHeight := monBottom - monTop
-    return
+return
 }
 
 ; Get/set window property. type should be int, uint or float.
 GetWindowProperty(hwnd, property_name, type="int") {
     return DllCall("GetProp", "uint", hwnd, "str", property_name, type)
 }
+
 SetWindowProperty(hwnd, property_name, data, type="int") {
     return DllCall("SetProp", "uint", hwnd, "str", property_name, type, data)
 }

    vim.SetAction("<end>", "end键")
    vim.SetAction("<Gen_InsertMode>", "插入模式")
    vim.SetAction("<Gen_NormalMode>", "浏览模式")
    vim.SetAction("<Gen_Toggle>", "启用/禁用vim热键(General插件)")
    vim.SetAction("<Reload>", "重新加载")
    vim.SetAction("<Suspend>", "禁用")
    vim.SetAction("<WindowMoveDown>", "窗口移动到下方")

<WindowMoveDown>:
    WindowPadMove("0, +1, 1.0, 0.5")
Return

<WindowMoveUp>:
    WindowPadMove("0, -1, 1.0, 0.5")
Return

<WindowMoveLeft>:
    WindowPadMove("-1, 0, 0.5, 1.0")
Return

<WindowMoveRight>:
    WindowPadMove("+1, 0, 0.5, 1.0")
Return

<WindowMoveCenter>:
    WindowPadMove("0, 0, 0.5, 0.7")
return

<WindowMax>:
    WinMaximize, A
return

<WindowMaxNoTitle>:
    WinMaximize, A
    WinSet, Style, -0xc00000, A
return

<WindowMin>:
    WinMinimize, A
return

<WindowRestore>:
    WinRestore, A
return

; 全屏当前程序
<FullScreen>:
    WinGet, windowID, ID, A
    WindowState := FullScreenID[windowID]
    If Strlen(windowState) = 0
