# -*- ledrc -*- # sample.ledrc # A sample rcfile for led. this file goes in ~/.led/ledrc. # # # set key bindings # # keybinding names and explainations, as well as default binding information # are available in the man page. In addition to the syntax # key commandname STRING # you may remove all the keybindings that may exist for a particular # key string with # keyclear STRING # and all the strings that may associate with a particular command # (for instance, the default bindings) with # cmdclear commandname # # # the following set up stuff for strings sent by # my terminal. they probably don't apply to yours, # but they should still give an example of how to # rebind keys. # key "home" "\33\133\61\176"; # Home key key "end" "\33\133\64\176"; # End key key "nextword" "\33\117\143"; # C+right key "prevword" "\33\117\144"; # C+left key "lineup" "\33\117\141"; # C+up key "linedn" "\33\117\142"; # C+down key "firstline" "\33[1^"; # C+home key "lastline" "\33[4^"; # C+End key "viewtop" "\33\133\65\136"; # C+Pgup key "viewbottom" "\33\133\66\136"; # C+Pgdn # # set various options # opt "tabwidth" "8"; opt "blanklinechar" "~"; opt "stickyhomekey" "true"; opt "chunkyscroll" "true"; opt "icasesearch" "false"; opt "highbitmeta" "false"; opt "autoindent" "true"; opt "parenflash" "true"; opt "printnlatend" "true"; # # when led starts operations that could take a while, it turns # the tty's ISIG flag on with the following character set to # do VINTR. Usually this should be set to your normal cancel # key, so that the change is transparent; for most users this # means either ^C (the default), or ^G (illustrated below). # #opt "intrchar" "\^G"; # # the following specifies the list of views (seperated by ':') that # the user wants stacked over the files specified on the command # line, in order. # opt "autoviews" "vhighlight:vtrailspace"; # # if you like keybindings that are radically different from the # default ones, it is probably easier to just turn off the default # ones rather than undefining each of them. use the clearallkeys # statement to do that. do this _before_ you define your own # keys. # #clearallkeys; # # colors work by specifying foreground, background, # and two attribute strings. the first attribute string # is used on color ttys and the second one is used on # noncolor ttys. # attr strings work by using special letters in them; not # all attributes work on all ttys, but most do at least bold # or standout. case is not important: # S - standout # U - underline # R - reverse video # L - blink # D - dim # B - bold # N - normal # # colors can be: # black # gray # red # green # brown # yellow # blue # magenta # cyan # lightgray # white # default - special color that does the default for the tty # # some colors affect the bold attribute; such as yellow is just bold brown. # any color string may have a "bright" in front of it to mean bold, like # "brightred". this is the same as "red" with "b" in the attr string. #