From 0a71bb86269a087c3b91fb8520be46907f4384fc Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sun, 9 Apr 2017 15:00:46 -0400 Subject: [PATCH] browser/firefox: add vimperator config --- browser/firefox/.gitignore | 1 + .../firefox/.vimperator/colors/vnought.vimp | 67 +++++++++++++++++++ browser/firefox/.vimperatorrc | 19 ++++++ 3 files changed, 87 insertions(+) create mode 100644 browser/firefox/.gitignore create mode 100644 browser/firefox/.vimperator/colors/vnought.vimp create mode 100644 browser/firefox/.vimperatorrc diff --git a/browser/firefox/.gitignore b/browser/firefox/.gitignore new file mode 100644 index 00000000..a963dcb1 --- /dev/null +++ b/browser/firefox/.gitignore @@ -0,0 +1 @@ +.vimperator/info/ \ No newline at end of file diff --git a/browser/firefox/.vimperator/colors/vnought.vimp b/browser/firefox/.vimperator/colors/vnought.vimp new file mode 100644 index 00000000..fdb22099 --- /dev/null +++ b/browser/firefox/.vimperator/colors/vnought.vimp @@ -0,0 +1,67 @@ +" ==Vimperator_Color_Scheme== +" name: Vnought +" url: +" ==Vnought_Colorscheme_Settings== + +"StatusLine settings +hi StatusLine color: #d9d9d9; background: #1D1F21; "font-size: 9pt; +" hi StatusLineBroken color: #000000; background: #afafff; "font-size: 9pt; +" hi StatusLineSecure color: #000000; background: #afffaf; "font-size: 9pt; + +"CmdLine settings excluding Gradient +hi Normal color: #afafaf; background: #1D1F21; font-size: 9pt; font-family: "Terminus", monospace; +hi CmdLine background: #1D1F21; color: #afafaf; font-size: 9pt; +hi CompDesc color: #c6c6c6; width: 50%; font-size: 9pt; +hi CompIcon width: 16px; min-width: 16px; display: inline-block; margin-right: .5ex; +hi CompItem[selected] background: #666666; color: #afafaf; +" hi CompLess text-align: center; height: 0; line-height: .5ex; padding-top: 1ex; +" hi CompMore text-align: center; height: .5ex; line-height: .5ex; margin-bottom: -.5ex; +hi CompMsg font-style: italic; margin-left: 16px; +hi CompResult width: 45%; overflow: hidden;font-size: 10pt; font-family: monospace; font-weight: normal; +hi CompTitle color: #afafaf; background: #1D1F21; font-weight: bold; +hi CompTitle>* padding: 0 .5ex; +hi Filter font-weight: bold;color: #afafaf; + +"When using tab complete in CmdLine, line separating Title from function and description +" hi Gradient height: 1px; margin-bottom: -1px; margin-top: -1px; +" hi GradientLeft background-color: #00bbff; +" hi GradientRight background-color: #1D1F21; + +"Used with ]f and [f +hi FrameIndicator background-color: #1D1F21; opacity: 0.5; z-index: 999; position: fixed; top: 0; bottom: 0; left: 0; right: 0; + +hi Bell border: 0 none; background-color: #1D1F21; +hi ErrorMsg color: #ffffff; background: red; font-weight: bold; + + +"Hint section +hi Hint font-family: "Fira Sans"; font-size: 16px; font-weight: bold; color: white; background-color: rgba(34, 37, 44, 0.7); border: solid 1px LightGray; padding: 0 4px; +hi Hint::after content: attr(number); +hi HintActive background: blue; color: #f6e9e9; +hi HintElem background-color: #1D1F21; color: #f6e9e9; +hi HintImage opacity: .5; + +"Other important stuff +hi InfoMsg color: #afafaf; background: #1D1F21; +hi Message white-space: normal; min-width: 100%; padding-left: 2em; text-indent: -2em; display: block; +hi WarningMsg color: red; background: #1D1F21; +hi ModeMsg color: #afafaf; background: #1D1F21; "CmdLine when Not in Use +hi MoreMsg color: #afafaf; background: #1D1F21; +hi NonText color: lightblue; min-height: 16px; padding-left: 2px; +hi Question color: #ffffff; background: #1D1F21; font-weight: bold; +" hi Search font-size: inherit; padding: 0; color: #1D1F21; background-color: yellow; padding: 0; +hi Function color: lightgreen; background: #1D1F21; +hi Number color: tan; background: #1D1F21 +hi String color: #1D1F21; background: #afafaf; +hi Tag color: #1D1F21; background: #afafaf; +hi Title color: #1D1F21; background: #afafaf; font-weight: bold; +hi URL text-decoration: none; color: lightblue; background: inherit; +hi URL:hover text-decoration: underline; cursor: pointer; +hi LineNr color: #afafaf; background: #1D1F21; + +"style -name statusbar chrome://* < * { margin: 0 !important; padding: 0 2px 0 0 !important; } +"EOM + +"For other descriptions of each item, please see ``Styling'' section included with Vimperator diff --git a/browser/firefox/.vimperatorrc b/browser/firefox/.vimperatorrc new file mode 100644 index 00000000..ae834d58 --- /dev/null +++ b/browser/firefox/.vimperatorrc @@ -0,0 +1,19 @@ +colorscheme vnought + +set gui=nonavigation +set wildmode=list:full +set complete=slbh +set hintchars=asdfhjkl; +set hlsearch + +set newtab=all +set animations + +nnoremap ; : +nnoremap : ; +nnoremap . b +nnoremap :tabmove! -1 +nnoremap :tabmove! +1 + +" Pass through all keys (like CTRL-Z) on Gmail and Google Reader: +autocmd LocationChange .* :js modes.passAllKeys = /mail\.google\.com|www\.google\.com\/reader\/view/.test(buffer.URL)