allow for vim to surface an existing vim session

This commit is contained in:
David Alexander Majnemer 2010-08-31 12:06:28 -05:00
parent 147ec89447
commit e207390016
2 changed files with 8 additions and 3 deletions

View file

@ -0,0 +1,5 @@
if v:version < 700
finish
endif
runtime! macros/editexisting.vim

View file

@ -41,7 +41,7 @@ myLayoutHook = tiled ||| Mirror tiled ||| Grid ||| simpleTabbed
delta = 3/100
main = do
xmproc <- spawnPipe "xmobar"
xmproc <- spawnPipe "~/xmobar/bin/xmobar"
xmonad $ defaultConfig
{ manageHook = manageDocks <+> myFloatHook <+> manageHook defaultConfig <+> scratchpadManageHook (W.RationalRect 0.25 0.25 0.5 0.5)
, layoutHook = avoidStruts $ smartBorders $ myLayoutHook
@ -50,12 +50,12 @@ main = do
, ppUrgent = xmobarColor "#cc0000" "" . wrap "**" "**"
, ppTitle = xmobarColor "#8AE234" ""
}
, terminal = "lxterm"
}
`additionalKeysP`
[ ("M-p", shellPrompt defaultXPConfig { position = Top })
, ("M-S-a", windowPromptGoto defaultXPConfig { position = Top })
, ("M-a", windowPromptBring defaultXPConfig { position = Top })
, ("M-x", sendMessage ToggleStruts)
, ("M-S-l", spawn "~/bin/lock")
, ("M-<Left>", moveTo Prev HiddenNonEmptyWS)
, ("M-S-<Left>", shiftToPrev)
@ -68,5 +68,5 @@ main = do
, ("M-`", toggleWS)
, ("M-s", moveTo Next EmptyWS)
, ("M-S-s", shiftTo Next EmptyWS)
, ("M-g", scratchpadSpawnAction defaultConfig)
, ("M-g", scratchpadSpawnAction defaultConfig { terminal = "lxterm" })
]