" vim: ft=vim foldmarker={{{,}}} tw=80 " Last edit 2011-01-22 " Information " {{{ " File: ~/.pentadactylrc " " Author: Bahtiar `kalkin` Gadimov " " Homepage: http://blog.blase16.de/ " " Purpose: This is a configuration file for Pentadactyl. Pentadactyl is a free " browser add-on for Firefox, which makes it look and behave like " the Vim text editor. " " Version: This file was used and written for the Pentadactyl 1.0b5 " " Structure: " There are three kinds of things which are defined in this file: " - Settings affect the behaviour of Pentadactyl " - Mappings map a key or a sequence of keys to a command " - Abbreviations most often useful for correcting spelling of " commonly mistyped words, as well as shortening the typing of " oft-typed but long words or phrases. " " The settings are sorted alphabetically to make it easier to access " a specific item and basically the simplest way to sort data :-) I " think I mentioned all possible settings, if i miss something, " please mail me. " " Every setting has a short and a long name. It doesn't matter which " one you use for the sake of completeness both are documented. " " The long name set in |' '| and the short is used by me in the set " command. " " Settings which you only can turn on or off (boolean) are unset " with an no Prefix. For example: " ,------ " | |'hlfind'| Highlight previous find pattern matches. " | set hlf " `------ " Or of couse you can use the negated short form " ,------ " | set nohlf " `------ " " If I commented out a setting, than the default values are listed " and of course used. " " Pentadactyl has a number of internal variables and switches which " can be set to achieve special effects. These options come in 8 " forms: " " ,------------------------------------------------------------------ " | " | boolean Can only be on or off " | " | number A numeric value " | " | string A string value charlist " | " | charlist A string containing a discrete set of distinct " | characters " | " | stringlist A comma-separated list of strings. Any comma " | appearing within single or double quotes, or " | prefixed with a \, will not be treated as an item " | separator. " | " | stringmap A comma-separated list of key-value pairs, e.g., " | key:val,foo:bar " | " | regexplist A comma-separated list of regular expressions. " | Expressions may be prefixed with a !, in which case " | the match will be negated. A literal ! at the " | beginning of the expression may be matched with [!] " | or by placing the regular expression in quotes. " | Generally, the first matching regular expression is " | used. Any comma appearing within single or double " | quotes, or prefixed with a \, will not be treated as " | an item separator. " | " | regexpmap A combination of a stringmap and a regexplist. Each " | key in the {key}:{value} pair is a regexp. If the " | regexp begins with a !, the sense of the match is " | negated, such that a non-matching expression will be " | considered a match and vice versa. The first {key} " | to match yields value. " " | " `------------------------------------------------------------------ " " Some options may be given format strings containing macro " replacements in the form of <{name}>. These tokens are replaced by " the parameter {name} as specified in the relevant documentation. If " the token is in the form , the value of the parameter is " automatically quoted. If it is in the form of , its value " is never shown but may be used to test whether the given parameter " is empty. " " Any substring enclosed by <{ and }> is automatically elided if any " of the contained macros aren't currently valid. A literal < or > " character may be included with the special escape sequences or " respectively. " " For example, given the format string <{(cmd: ) }><{line: " }>, where line=32 and file=Lieder eines fahrenden " Gesellen.txt, the result is formatted as line: 32 'Lieder eines " fahrenden Gesellen.txt'} " " Lines starting with an inverted comma (") are comments. " " Vimperator allows to give special characters by writing them in a " special notation. The notation encloses descriptive words in " angle brackets " (<>). The most common characters are: " - for the escape character. " - where n is an integer from 1 to 12 " - where n is a character " - for space :) " " Warning: To provide the most authentic Vim experience, the Firefox menubar " and toolbar were hidden. If you really need them, type :set " guioptions+=mT to get them back. If you don't like Vimperator at " all, type :addons and remove/disable it. If you like it, but can't " remember the shortcuts, enter :help to get the help window. " " Help: If you having trouble just enter :help and browse the documentation. " You can also check tha FAQ with :help faq " " More information about Pentadactyl is available here: " ,------ " | " | Homepage http://dactyl.sourceforge.net/pentadactyl/index " | " | Mailinglist http://groups.google.com/group/pentadactyl " | " | Wiki http://code.google.com/p/dactyl/wiki " | " | FAQ http://dactyl.sourceforge.net/pentadactyl/faq " | " | IRC irc.oftc.net #pentadactyl " | " `------ "}}} " {{{ " Settings: Settings are set with the :se[t] command. The [] notation means " that the characters in brackets can be ommited. " " Most helpfull and common setting commands: " " ,---- " | " | :se[t] Show all options which differ from their " | default values " | " | :se[t] all Show all options. " | " | :se[t] {option}? Show value of {option}. " | se[t] {option} For boolean options, turn them on. For all " | other types, show their values. " | " | :se[t] no{option} For boolean options, turn them off. For all " | other types, display an error. " | " | :se[t] {option}& Reset option to its default value. " | " | :se[t] all& Set all options to their default value. " | " | :setl[ocal] The same as :set command, but operates on " | local tab only " `---- " " }}} " Options initiating with [A] {{{ " |'activate'| define when tabs are automatically activated " stringlist (default: addons, bookmarks, diverted, downloads, " extoptions, help,homepage,quickmark,tabopen,paste) " ,---- " | all Activate all items. " | addons :addo[ns] command " | bookmarks Tabs loaded from bookmarks " | diverted Links with targets set to new tabs " | downloads :downl[oads] command " | extoptions :exto[ptions] command " | help :h[elp] command " | homepage gH mapping " | links Middle- or Control-clicked links " | quickmark go and gn mappings " | tabopen :tabopen[!] command " | paste P and gP mappings " `---- set act=addons,bookmarks,diverted,extoptions,help,links,quickmark,tabopen,paste " |'altwildmode'| Like 'wildmode', but when the c_ key is pressed. " stringlist " set awim=list:full " |'autocomplete'| Automatically update the completion list on any key press " set au=.* " }}} " Options initiating with [B] {{{ " |'banghist'| Replace occurrences of ! with the previous command when executing " external commands " set bh " }}} " Options initiating with [C] {{{ " |'cdpath'| List of directories searched when executing :cd " stringlist " set cd=. " |'complete'| Items which are completed at the :open prompts. Order is " important " ,-{{{ Available items: " | b Bookmarks " | f Local files " | h History " | l Firefox location bar entries (bookmarks and history sorted in an " | intelligent way) " | s Search engines and keyword URLs " | S Search engine suggestions " | t Open tabs " `-}}} set complete=stlfS " |'cookieaccept'| When to accept cookies " ,---- " | all Accept all cookies " | none Accept no cookies " | samesite Accept all non-third-party cookies " `----- set ca=none " |'cookielifetime'| The lifetime for which to accept cookies " ,---- " |default The lifetime requested by the setter " |prompt Always prompt for a lifetime " |session The current session " |{days} When a number is given, it is interpreted as the number of days for " | which to keep cookies " `----- " set cl=default " |'cookies'| The default mode for newly added cookie permissions see also " 'cookielifetime' " set ck=session " }}} " Options initiating with [D] {{{ " |'defsearch'| The default search engine " set ds=google " }}} " Options initiating with [E] {{{ " |'editor'| The external text editor set editor='xterm -e "vim + "' " |'encoding'| The current buffer's character encoding " set enc='UTF-8' " |'errorbells'| Ring the bell when an error message is displayed " set noeb " |'eventignore'| List of autocommand event names which should be ignored. If " all then all events are ignored " set ei='' " |'exrc'| Enable automatic sourcing of an RC file in the current directory at startup " set noex " |'extendedhinttags'| XPath strings of hintable elements for extended hint modes " set to default which is really complicated " }}} " Options initiating with [F] {{{ " |'fileencoding'| The character encoding used when reading and writing files " set fenc='UTF-8' " |'findcase'| Find case matching mode " ,---- " | ignore Case is never significant " | match Case is always significant " | smart Case is significant when capital letters are typed " `----- " set fc=smart " |'followhints'| Change the behavior of in hint mode " ,---- " | 0 Follow the first hint as soon as typed text uniquely identifies it. " | 1 Follow the selected hint on . " | 2 Follow the selected hint on only if it's been c_-selected. " `---- " set fh=0 " |'fullscreen'| Show the current window fullscreen " set nofs " }}} " Options initiating with [G] {{{ " |'guioptions'| Show or hide certain GUI elements like the menu or toolbar " ,---- " | B Bookmark bar " | C Always show the command line outside of the status line " | M Always show messages outside of the status line " | N Tab number over image " | T Toolbar " | b Bottom scrollbar " | c Always show the command line, even when empty " | l Left scrollbar (l and r are mutually exclusive) " | m Menu bar " | n Tab number " | r Right scrollbar " | s Status bar " `---- set go=CNbrs " }}} " Options initiating with [H] {{{ " |'helpfile'| Name of the main help file " set hf=intro " |'hintinputs'| Which text is used to filter hints for input elements " ,---- " | value The hint is the value displayed in a text input, or the selected " | option for a drop-down. " | label The value of an explicit label for the input; this will not match " | most manually added labels that are found on sites. " | name The name of the input will be used; although the name is not " | designed for user consumption, it is frequently very similar to the " | label. " `---- " set hin=label,value " |'hintkeys'| The keys used to label and select hints set hk="asdfg;lkjh" " |'hintmatching'| How hints are filtered " ,---- " | contains The typed characters are split on whitespace, and these " | character groups have to match anywhere inside the text of " | the link. " | " | wordstartswith The typed characters are matched with the beginning of the " | first word (see 'wordseparators') in the link as long as " | possible. If no matches occur in the current word, then the " | matching is continued at the beginning of the next word. " | The words are worked through in the order they appear in " | the link. If the typed characters contain spaces, then the " | characters are split on whitespace. These character groups " | are then matched with the beginning of the words, beginning " | at the first one and continuing with the following words in " | the order they appear in the link. " | " | firstletters Behaves like wordstartswith, but non-matching words aren't " | skipped. " | " | custom Delegate to the function dactyl.plugins.customHintMatcher. " | " | transliterated Certain alphanumeric characters are transliterated into " | their unaccented equivalents, such that ‘euro’ will match " | 'æuró', and ‘Ångström’ will match ‘angstrom’. " `---- " set hm=contains " |'hinttags'| XPath string of hintable elements activated by 'f' and 'F' " default is to long to paste it here see :set ht? " |'hinttimeout'| Timeout before automatically following a non-unique numerical hint " default is 0 which means never set hto=3 " |'history'| Number of Ex commands and search patterns to store in the command-line history " set hi=500 " |'hlfind'| Highlight all /find pattern matches on the current page after submission set hlfind " }}} " Options initiating with [I] {{{ " |'incfind'| Find a pattern incrementally as it is typed rather than awaiting " set if " |'insertmode'| Enter Insert mode rather than Text Edit mode when focusing text areas " set im " }}} " Options initiating with [J] {{{ " |'jsdebugger'| Enable the JavaScript debugger service for use in JavaScript " completion " set nojsd " }}} " Options initiating with [L] {{{ " |'loadplugins'| A regexp list that defines which plugins are loaded at startup " and via :loadplugins " set lpl = '\.(js|penta)$' " }}} " Options initiating with [M] {{{ " |'mapleader'| Define the replacement keys for the pseudo-key " set ml='\' " |'maxitems'| Maximum number of completion items to display at once " set maxitems=20 " |'messages'| Number of messages to store in the :messages history " set msgs=100 " |'more'| Pause the message list window when the full output will not fit on one page " set more " }}} " Options initiating with [N] {{{ " |'newtab'| Define which commands should output in a new tab by default " ,---- " | all All commands " | addons :addo[ns] command " | downloads :downl[oads] command " | extoptions :exto[ptions] command " | help :h[elp] command " | javascript :javascript! or :js! command " | prefs :pref[erences]! or :prefs! command " `---- " set newtab=all " |'nextpattern'| Patterns to use when guessing the next page in a document sequence " set nextpattern='\bnext',^>$,'^(>>|»)$','^(>|»)','(>|»)$','\bmore\b' " }}} " Options initiating with [O] {{{ " |'online'| Set the 'work offline' option " set online " }}} " Options initiating with [P] {{{ " |'pageinfo'| Define which sections are shown by the :pageinfo command " ,---- " | g General info " | f Feeds " | m Meta tags " `---- " set pa=gfm " |'passkeys'| Pass certain keys through directly for the given URLs " set pk= " |'popups'| Where to show requested popup windows " ,---- " | tab Open pop-ups in a new tab " | window Open pop-ups in a new window " | resized Open resized pop-ups in a new window " `---- " set pps=tab " |'previouspattern'| Patterns to use when guessing the previous page in a document sequence " set previouspattern='\bprev|previous\b',^<$,'^(<<|«)$','^(<|«)','(<|«)$' " |'private'| Set the 'private browsing' option " set noprivate " }}} " Options initiating with [R] {{{ " |'runtimepath'| List of directories searched for runtime files " set rtp='~/.pentadactyl' " }}} " Options initiating with [S] {{{ " |'sanitizeitems'| The default list of private items to sanitize " ,---- " | all All items " | cache Cache " | commandline Command-line history " | cookies Cookies " | downloads Download history " | formdata Saved form and search history " | history Browsing history " | marks Local and URL marks " | macros Saved macros " | messages Saved :messages " | offlineapps Offline website data " | options Options containing hostname data " | passwords Saved passwords " | sessions Authenticated sessions " | sitesettings Site preferences " `---- set si=cache,cookies,downloads,marks,macros,messages,offlineapps,options,sessions " |'sanitizeshutdown'| The items to sanitize automatically at shutdown set ss=cache,sessions " |'sanitizetimespan'| The default sanitizer time span " ,---- " | all Everything " | session The current session " | {n}m Past {n} Minutes " | {n}h Past {n} Hours " | {n}d Past {n} Days " | {n}w Past {n} Weeks " `---- " set sts=all " |'scroll'| Number of lines to scroll with and commands " when 0 half of the page " set scr=0 " |'shell'| Shell to use for executing external commands with :! and :run set sh=/bin/zsh " |'shellcmdflag'| Flag passed to shell when executing external commands with :! and :run " set shcf='-c' " |'showmode'| Show the current mode in the command line " set smd " |'showstatuslinks'| Where to show the destination of the link under the cursor " ,---- " | '' Don't show link destination " | status Show the link destination in the status line " | command Show the link destination in the command line " `---- " set ssli=status " |'showtabline'| Define when the tab bar is visible " ,---- " | always Always show the tab bar " | multitab Show the tab bar when there are multiple tabs " | never Never show the tab bar " `---- " set stal=always " |'strictfocus'| Prevent scripts from focusing input elements without user intervention " set sf " |'suggestengines'| Search engines used for search suggestions " set suggestengines=google " }}} " Options initiating with [T] {{{ " |'titlestring'| The string shown at the end of the window title set titlestring=VIM " }}} " Options initiating with [U] {{{ " |'urlseparator'| The regular expression used to separate multiple URLs in :open and friends " set us='\|' " |'usermode'| Show current website without styling defined by the author " set noum " }}} " Options initiating with [V] {{{ " |'verbose'| Define which info messages are displayed set vbs=2 " |'visualbell'| Use visual bell instead of beeping on errors set vb " }}} " Options initiating with [W] {{{ " |'wildanchor'| Define which completion groups only match at the beginning of their text " set wia=!'/ex/(back|buffer|ext|forward|help|undo)' " |'wildcase'| Completion case matching mode " ,---- " | smart Case is significant when capital letters are typed " | match Case is always significant " | ignore Case is never significant " `---- " set wc=.?:smart " |'wildignore'| List of file patterns to ignore when completing file names " set wig= " |'wildmode'| Define the behavior of the key in command-line completion " ,---- " | "" Complete only the first match. " | full Complete the next full match. After the last, the original " | string is used. " | longest Complete the longest common substring of all completions. " | list When more than one match, list all matches. " | list:full When more than one match, list all matches and complete the " | first match. " | list:longest When more than one match, list all matches and complete till " | the longest common string. When there is only a single " | match, it is fully completed regardless of the case. " `---- set wim=list:longest " |'wildsort'| Define which completion groups are sorted " set wis=.* " |'wordseparators'| Regular expression defining which characters separate words when matching hints" " set wsp='.,!?:;\\/"^$%&?()[\]{}<>#*+|=~ _-]' " }}} map a gT map s gt " h l should go through the history map h H map l L " scroll left or right map S map A map " Search shortcuts map X1 :tabnew http://tinyurl.com/create.php?url= map x1 :open http://tinyurl.com/create.php?url= " Show feed button in the status line javascript <