 Insert::
 OpenWithVim()
 Return
-
-;Ctrl + s "saves" the current vim buffer by writing to clipboard and prompting user to close
-#IfWinActive, ahk_class Vim
-	^s::SendRaw gg"+yG:q!
-#IfWinActive

	{
		SendInput ^p
		Sleep, 100
		Run, "C:\Program Files (x86)\Vim\vim74\gvim.exe" "%clipboard%"
		clipboard = %oldClipboard%
	}
	Else
	{
		Run, "C:\Program Files (x86)\Vim\vim74\gvim.exe" +star, C:\users\nate
	}
}


run C:\Program Files (x86)\XYplorer\XYplorer.exe
return

;Ctrl + Alt + R -- reloads current script
^!r::Reload

;Alt + Win + E -- Opens this file
!#e::
EnvGet, HOME, HOMEPATH
run "gvim" "%HOME%\.dotfiles\autohotkey-scripts\my_keyboard_shortcuts.ahk"
Return

;shortcuts for Vim
