-
-
Notifications
You must be signed in to change notification settings - Fork 107
vromerc example file
Thomas Lovén edited this page May 2, 2013
·
20 revisions
""" .vromerc example file
" Note: sync with wiki
" Change key mapping in normal mode, please check Vrome Features for available key mapping
map j <C-f>
map j 10j
" Remove key mapping in normal mode
unmap <C-f>
" Change key mapping in insert mode
imap <M-h> <M-w>
" Remove key mapping in insert mode
iunmap <M-w>
" Change hotkey for go next / previous / next 10 / previous 10 matched item in autocomplete
set autocomplete_prev=<S-Tab>
set autocomplete_next=<Tab>
set autocomplete_prev_10=<Up>
set autocomplete_next_10=<Down>
" Rule for next/prev page. (Should written in RegExp)
set nextpattern+=^NextPage|››$
set previouspattern+=^PrevPage|‹‹$
" set no status line -- i.e keys don't show as you type. enabled by default
set showstatus=0
" Change external editor, default is GVim
set editor=gvim -f
" Disable Vrome in those sites, Multiple URLs can be separated with ','
set disablesites=mail.google.com, reader.google.com // don't run Vrome in those sites
" Define search engines. the value should be valid json looks like below.
" Please remember the first searchengine is the default one. in the below one, it is google
set searchengines={"google":"http://www.google.com/search?q={{keyword}}", "yahoo":"http://search.yahoo.com/search?p={{keyword}}","wikipedia":"http://en.wikipedia.org/wiki/{{keyword}}","answers":"http://www.answers.com/main/ntquery?s={{keyword}}","yubnub":"http://yubnub.org/parser/parse?command={{keyword}}"}
" You could also add some new searchengines without overwrite build in.
set searchengines+={"baidu":"http://www.baidu.com/s?wd={{keyword}}"}
" Change default search engine, default is google.
set defaultsearch=yahoo
" Disable autocomplete
set noautocomplete
" Change enable vrome keybinding, default is <C-Esc>
set enable_vrome_key=<Esc>
" The server port is what external server running on
" The external server is used to support launch the external editor in insert mode.
" Please refer "Support External Editor" https://github.com/jinzhu/vrome/wiki/Support-External-Editor for more
set server_port=30000
" Set your hintkeys instead of the default 0123456789
set hintkeys=jlkhfsdagwerui
" Alternative: creates two sets of hint keys separated by a semicolon. First set uses keys close to the home row to create combinations, second set is used as a last resort
" Note: this trigger the smart sorting in multi mode. Matching elements by level of similarity
set hintkeys=dsafrewq,tgcx
" overwrites the sub actions by your own set of actions
set hint_actions={"`": "[", ",": "{"}
" by default, hints use numbers. You can have both numbers AND strings (view custom JS below). Or you can use strings only as hints and overwrite the number commands
set useletters=1
begin_custom_js
// in case you have a frontendExec in a remote file + a frontendExec in your local filesystem. This way, they don't overwrite each other
var remoteExists = typeof frontendExec != "undefined";
if(remoteExists)
oldexec = frontendExec;
// this function is called whenever you load a page
frontendExec = function() {
if(remoteExists)
oldexec();
// examples of overwrites
with(KeyEvent) {
add("tcm", Buffer.deleteMatch);
add("tcc", Tab.closeOtherTabs);
add("tcq", Tab.closeLeftTabs);
add("tce", Tab.closeRightTabs);
add("tcp", Tab.closeUnPinnedTabs);
add("yy", Tab.copyUrl);
add("tw", Tab.closeAndFoucsLeft);
add("f", Hint.start_string);
add("c", Hint.new_tab_start_string);
add("<M-s>", Hint.multi_mode_start_string);
add("<M-f>", Hint.start);
}
}
end_custom_js
begin_custom_css
.__vim_hint_highlight_span {
text-transform: uppercase;
}
end_custom_css
" vim: set ft=vim: