Skip to content

Instantly share code, notes, and snippets.

@LeetCodes
Forked from markrwilliams/.screenrc
Created August 11, 2021 06:50
Show Gist options
  • Save LeetCodes/3ecd258fda3928a6cbfec47c2c1e1ef9 to your computer and use it in GitHub Desktop.
Save LeetCodes/3ecd258fda3928a6cbfec47c2c1e1ef9 to your computer and use it in GitHub Desktop.
# # emacs keybindings for navigation in copy mode
# markkeys ^B=Y:^F=V:h=^B:l=^F:0=^A:$=^E
# # C-space sets mark. markkeys does it in screen 4.0 and higher, but 3.9x
# # needs the bindkey command. (note the ^@ escape sequence for C-space.)
# markkeys ' '=^@
# # bindkey -m ^@ stuff ' '
# # page up and page down
# bindkey -m -k kP stuff Y
# bindkey -m -k kN stuff V
# # failed attempt to make C-space work in i-search too
# # bindkey -m ^@ eval "stuff \033" "stuff ^@"
# # special hack for C-e, since it should go *past*
# # the last char. -m means this is for copy mode only.
# bindkey -m ^e stuff "$^f"
# # C-g and other keys just quit copy mode. Esc does nothing.
# markkeys \033=\015=^G=^D=h=j=k=l=H=M=L=G=g=y=c=v=a=x=b=e=B=E=w
# markkeys @=\033
# # control arrows move by words. (set B, e, and w to F keys so that i can
# # use them to move by words, but they themselves still quit copy mode.)
# markkeys B=[:E=]:b={:e=}:w=>
# bindkey -m ^[Od stuff { #"[[}"
# bindkey -m ^[Oc stuff ] #"}]^f"
#caption always "%n(%t) : %C"
#caption always "%{= kw}%?%-Lw%?%{+b kw}%n*%t%f %?(%u)%?%{= kw}%?%+Lw%?"
#caption always "%{=r wk}%-w%{=b wb}%50>%n%f* %{-}%+Lw%<%{- Wk}"
startup_message off
# caption always "%{=r wk}%-w%{=b wb}%50>%n%f %t%{-}%+Lw%<%{- Wk}"
shelltitle ""
caption always "%{=b .}%-w%{=r .} %n %{-}%+w"
# termcapinfo xterm|xterms|xs|rxvt ti@:te@
termcapinfo xterm|mlterm 'hs:ts=\E]2;:fs=\007:ds=\E]2;mlterm\007'
defhstatus "^Et: ^En"
hardstatus off
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment