" vim: ft=vim foldmarker={{{,}}} tw=80 " Last edit 2009-04-09 " Information " {{{ " File: ~/.vimperatorrc " " Author: Kalkin Sam " " Homepage: http://blog.blase16.de/ " " Purpose: This is a configuration file for Vimperator. Vimperator 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 Vimperator 0.5.3 " " Notes: First of all this are the settings that I use! You HAVE TO EDIT " some things e. g. the bookmark and key mappings at the end of the " file, or the defsearch settings. It should be easy to change them, " because every setting is well documented. " " If you never used Vi or Vim you should first learn to use one of " these editors, before you use Vimperator " " Structure: " There are three^W two kinds of things which are defined in this " file: settings ("set") and mappings ("map"). " - Settings affect the behaviour of commands. " - Mappings maps a key sequence to a command. " - There are no abbreviations because it's a BROWSER! not vim :) " " 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. For " example: " ,------ " | |'activate'| define when tabs are automatically activated strin- " | glist (default: homepage,quickmark,tabopen,paste) " | set act=homepage,quickmark,tabopen,paste " `------ " This time is the long name set in |' '| and the short is used in " the set command. " " Settings which you only can turn on or off (boolean) are unset " with an no Prefix. For example: " ,------ " | |'hlsearch'| Highlight previous search pattern matches " | set nohlsearch " `------ " Or of couse you can use the negated short form " ,------ " | set nohls " `------ " If I commented out a setting, than the default values are listed " and of course used. " " 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 control-m " - for control-v which quotes the following character " - for the escape character. " - for F1, F2, .. " - for control-n (i. e. strg-a, strg-k, ..) " - 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. (I " have disabled the F1 shortcut) " " }}} " |'activate'| define when tabs are automatically activated " stringlist (default: homepage,quickmark,tabopen,paste) " set act=homepage,quickmark,tabopen,paste " |'cdpath'| List of directories searched when executing the :cd command. This " is only used for relative paths, if an absolute path is specified " then the option is ignored. " string (default: equivalent to $CDPATH or ",,") " set cd=,, " |'complete'| Items which are completed at the :[tab]open prompt, order " is imporant " ,-{{{ Available items: " | - s: Search engines and keyword URLs " | - f: Local files " | - l: Firerefox location bar entries (bookmarks and history sorted in an " | intelligent way) " | - b: Bookmarks " | - h: History " | - S: Suggest engines " `-}}} set cpt=lbsf " |'defsearch'| Set the default search engine (default google) " I have a bookmark for a special google version which is mapped to g: " http://72.14.207.99/search?q=%s&num=%i&ie=utf-8&oe=utf-8&num=100&safe=off " For more information about searching the web look at " http://www.searchlores.org/ set ds=g " |'editor'| Set the external text editor. Sets the editor to run when is " pressed in Insert and TextArea modes. " WARNING!: noforking allowed! set editor="xterm -e /usr/bin/vim -f" " |'exrc'| Allow reading of an RC file in the current directory. This file is " sourced in addition to, and after, your default RC file. " set ex=off " |'extendedhinttags'| XPath string of hintable elements activated by ';' " set eht=//*[@onclick or @onmouseover or @onmousedown or @onmouseup or @oncommand or @class='lk' or @class='s'] | //input[not(@type='hidden')] | //a | //area | //iframe | //textarea | //button | //select | //xhtml:*[@onclick or @onmouseover or @onmousedown or @onmouseup or @oncommand or @class='lk' or @class='s'] | //xhtml:input[not(@type='hidden')] | //xhtml:a | //xhtml:area | //xhtml:iframe | //xhtml:textarea | //xhtml:button | //xhtml:select " |'errorbells'| Ring the bell when an error message is displayed. " set eb=off " |'eventignore'| A list of autocommand event names which should be ignored. If " the list contains the value "all" then all events are ignored. " set eventignore="" " |'focuscontent'| Focus the content after a page has loaded. This is useful, if " you always want to stay in Normal mode when browsing between " web sites. When "on", it blurs any textbox which often is " automatically focused on page load. If you usually like " 'focuscontent' but sometimes you'd like to focus the first " input field, you can use gi to jump to it. " set fc=off " |'fullscreen'| Show the current window fullscreen " set nofs " |'guioptions'| Show or hide the menu, toolbar and bookmark bar " ,-{{{ Available items: " | - m menubar " | - T toolbar " | - B bookmark bar " | - n Tab number " | - N Tab number over image " | - b Bottom scrollbar " | - r Right scrollbar " | - l Left scrollbar " `- }}} " |'helpfile'| Name of the main help file. This is the tail component of the " chrome URL as displayed in the status line when viewing the page. " set hf="intro.html" " XXXX hintmatching " |'hinttags'| XPath string of hintable elements activated by 'f' and 'F' " set ht=//*[@onclick or @onmouseover or @onmousedown or @onmouseup or @oncommand or @class='lk' or @class='s'] | //input[not(@type='hidden')] | //a | //area | //iframe | //textarea | //button | //select | //xhtml:*[@onclick or @onmouseover or @onmousedown or @onmouseup or @oncommand or @class='lk' or @class='s'] | //xhtml:input[not(@type='hidden')] | //xhtml:a | //xhtml:area | //xhtml:iframe | //xhtml:textarea | //xhtml:button | //xhtml:select " |'hlsearch'| Highlight previous search pattern matches set hls " |'hlsearchstyle'| CSS specification of highlighted search items " set hlss=color: black; background-color: yellow; padding: 0; display: inline; " |'ignorecase'| Ignore case in search patterns " set ic " |'incsearch'| Show where the search pattern matches as it is typed " NOTE: Incremental searching currently only works in " the forward direction " set is " |'laststatus'| Determines when a window will have a status line " ,-{{{ Possible values: " | - 0: never " | - 1: only if there are multiple windows " | _ 2: always " `-}}} " NOTE: laststatus=1 not implemented yet. " No idea why it's mentioned in the Manual. :-| " set ls=2 " |'linksearch'| Limit the search to hyperlink text " set nolks " |'more'| Pause the message list window when more than one screen of listings " is displayed " set more " |'maxhints'| Maximum number of simultaneously shown hints " set mh=250 " |'newtab'| Define which ex commands output the result in a new tab " automatically " ,-{{{ Possible values: " | - all All commands " | - addons :addo[ns] command " | - downloads :downl[oads] command " | - help :h[elp] command " | - javascript :jsavascript! or :js! command " | - prefs :pref[erences] or :prefs! command set newtab=all " |'popups'| Where to show requested popup windows. This does not apply to " windows which are opened by middle clicking a link, they always " open in a new tab " ,-{{{ Possible values: " | - 0: Force to open in the current tab " | NOTE: this can stop some web sites from working correctly! " | - 1: Always open in a new tab " | - 2: Open in a new window if it has a specific requested size " | - 3: Always open in a new window " `-}}} " NOTE: This option does not change the popup blocker of Firefox in any way. set pps=2 " |'preload'| Speed up first time history/bookmark completion set preload " |'previewheight'| Default height for preview window " set pvh " NOTE: Option currently disabled " |'scroll'| Number of lines to scroll with C-u and C-d commands " The number of lines scrolled defaults to half the window size. " When a {count} is specified to the or commands this " is used to set the value of 'scroll' and also used for the current " command. The value can be reset to half the window height with " :set scroll=0 set scroll=20 " |'showmode'| Show the current mode in the command line " set smd " |'showstatuslinks'| Show the destination of the link under the cursor in the " status bar " ,-{{{ Possible values: " | - 0: Don't show link destination " | - 1: Show the link in the status line (default) " | - 2: Show the link in the command line " `-}}} set ssli=2 " |'showtabline'| Control when to show the tab bar of opened web pages " ,-{{{ Possible values: " | - 0: Never show tab bar " | - 1: Show tab bar only if more than one tab is open " | - 2: Always show tab bar (default) " `-}}} " NOTE: showtabline=1 implemented works only >=5.3 set stal=1 " |'smartcase'|case'| Search casesensetive if he pattern contains uppercase " characters. This is only used if the 'ignorecase' option " is set. " set scs " |'titlestring'| Change the title of the browser window " In order to distract THEM set titlestring=EMACS " |'usermode'| Show current website with a minimal style sheet to make it " easily accessible " set noum " |'verbose'| Define which type of messages are logged They are printed to the " error console which can be shown with :javascript!. The highest " value is 9, being the most verbose mode. " set vbs=0 " |'visualbell'| Use visual bell instead of beeping on errors set vb " |'visualbellstyle'| CSS specification of the visual bell " To hide the visual bell use a value of \"display: none;" " or unset it with :set t_vb= " set t_vb= " |'wildmode'| Define how command line completion works. It is a comma-separated " list of parts, where each part specifies what to do for each " consecutive use of the completion key. The first part specifies " the behavior for the first use of the completion key, the second " part for the second use, etc. " ,-{{{ Possible values: " | - '' Complete only the first match " | - 'full' Complete the next full match. After the last, the " | original string is used. " | - 'longest' Complete till the longest common string. " | - 'list' When more than one match, list all matches. " | - 'list:full' When more than one match, list all matches and " | complete first match. " | - 'list:longest' When more than one match, list all matches and " | complete till the longest common string. " `-}}} " NOTE: When there is only a single match, it is fully completed regardless of " the case. set wim=list:full " |'wildoptions'| Change how command line completion is done " set wop=sort Always sorts completion list, overriding the 'complete' option " set wop='' " Map tabnextand tabprevious map a :tabprevious map s :tabnext " Map q to select the alternate tab map q map e :tabs " Map the scrolling map j map k " h l should go through the history map h H map l L map V gf " scroll left or right map S map A map T :tabopen! " some usefull mappings map w : map " Website shortcuts map C1 :tabnew http://blog.blase16.de/serendipity_admin.php?serendipity[adminModule]=entries&serendipity[adminAction]=new map C2 :tabnew https://secure.bookcrossing.com/forum/14 map C3 :tabnew http://www.heise.de/ map C4 :tabnew http://www.heise.de/tp/ map C5 :tabnew https://twitter.com/home map C6 :tabnew https://mary.st009.kalkin.de/ map c1 :open http://blog.blase16.de/serendipity_admin.php?serendipity[adminModule]=entries&serendipity[adminAction]=new map c2 :open https://secure.bookcrossing.com/forum/14 map c3 :open http://www.heise.de/ map c4 :open http://www.heise.de/tp/ map c5 :open https://twitter.com/home map c6 :open https://mary.st009.kalkin.de/ " Search shortcuts map X1 :tabnew http://tinyurl.com/create.php?url= map x1 :open http://tinyurl.com/create.php?url=