 GroupAdd Terminal, ahk_class mintty ; cygwin
 GroupAdd Terminal, ahk_class TMobaXtermForm
 GroupAdd Terminal, ahk_class TFormDetachedTab
+GroupAdd Terminal, ahk_class ConsoleWindowClass
+GroupAdd Terminal, ahk_exe powershell.exe
+GroupAdd Terminal, ahk_exe vim.exe
 GroupAdd TerminalVim, ahk_group Terminal
 GroupAdd TerminalVim, ahk_class Vim
 


; Paste
#IfWInActive, ahk_group Terminal
!v::
  ;StringSplit, strout, clipboard, `n
  ;If(strout0>1 or InStr(clipboard, "sudo")>0) {
  ;  MsgBox, 308, Clipboard, %clipboard%`n`n Do you want to paste?
  ;  IfMsgBox, No
  ;  {
  ;    Return
  ;  }
  ;}
  Sleep,200
  MouseClick, Right, 50, 50, 1
  Return
#IfWInActive
#IfWInActive, ahk_class Vim
!v::Send,{Alt}ep
#IfWInActive

; Other than Terminal/Vim
#IfWInNotActive, ahk_group TerminalVim

#IfWInActive
; }}} Everything

; Fiefox {{{
;#IfWinActive ahk_exe firefox.exe
;^j::Send ^j
