Skip to content

Instantly share code, notes, and snippets.

@senarukana
Created July 3, 2018 07:01
Show Gist options
  • Save senarukana/3d42450809b19daf00cd12027aabcc31 to your computer and use it in GitHub Desktop.
Save senarukana/3d42450809b19daf00cd12027aabcc31 to your computer and use it in GitHub Desktop.
" Settings
set nohud
set nosmoothscroll
set noautofocus " The opposite of autofocus; this setting stops
" sites from focusing on an input box when they load
set typelinkhints
let searchlimit = 30
let scrollstep = 50
let barposition = "bottom"
let locale = "jp" " Current choices are 'jp' and 'uk'. This allows cVim to use sites like google.co.uk
" or google.co.jp to search rather than google.com. Support is currently limited.
" Let me know if you need a different locale for one of the completion/search engines
let hintcharacters = "jkluioqwesdf"
" This will do the same thing as above, except typing ':tabnew withbase' into to command bar
" without any search parameters will open 'http://www.dogpile.com'
let searchengine withbase = ["http://www.dogpile.com", "http://www.dogpile.com/search/web?q=%s"]
" alias ':g' to ':tabnew google'
command g tabnew google
let completionengines = ["google", "youtube", "bug", "wiki", "code"]
let searchalias g = "google" " Create a shortcut for search engines.
" For example, typing ':tabnew g example'
" would act the same way as ':tabnew google example'
let searchalias y = "youtube" " Create a shortcut for search engines.
let searchalias w = "wiki" " Create a shortcut for search engines.
let searchalias b = "bug" " Create a shortcut for search engines.
let searchalias c = "code" " Create a shortcut for search engines.
" Open all of these in a tab with `gnb` or open one of these with <N>goa where <N>
let qmark a = ["http://www.reddit.com", "http://www.google.com", "http://twitter.com"]
let mapleader = "\\"
" Mappings
map <Leader>r reloadTabUncached
map <Leader>x :restore<Space>
" You can use <Space>, which is interpreted as a
" literal " " character, to enter buffer completion mode
map gb :bookmarks!<Space>
" Toggle the current HUD display value
map <C-h> :set hud!<CR>
" Switch between alphabetical hint characters and numeric hints
map <C-i> :set numerichints!<CR>
map <C-u> rootFrame
map <M-h> previousTab
map <C-d> scrollPageDown
map <C-e> scrollPageUp
map , previousTab
map . nextTab
iunmap <C-y>
imap <C-m> deleteWord
" Code blocks (see below for more info)
getIP() -> {{
httpRequest({url: 'http://api.ipify.org/?format=json', json: true},
function(res) { Status.setMessage('IP: ' + res.ip); });
}}
" Displays your public IP address in the status bar
map ci :call getIP<CR>
" Script hints
echo(link) -> {{
alert(link.href);
}}
map <C-f> createScriptHint(echo)
map <Leader>] :tabnew chrome-extension://ihlenndgcmojhcghmfjfneahoeklbjjh/pages/options.html<CR>
map <Leader>m :tabnew https://mail.google.com<CR>
map <Leader>j :tabnew https://bugs.indeed.com<CR>
map <Leader>f :tabnew https://fisheye.indeed.com<CR>
map <Leader>c :tabnew https://fisheye.indeed.com/cru<CR>
map <Leader>\ :tabnew https://github.com/1995eaton/chromium-vim<CR>
map <Leader>s :tabnew https://docs.google.com/spreadsheets<CR>
map <Leader>d :tabnew https://docs.google.com<CR>
map <Leader>p :tabnew https://docs.google.com/presentation<CR>
map <Leader>b :tabnew https://baito.indeed.com/private/enableDebugBar<CR>
map <Leader>a :tabnew https://hq1.appsflyer.com/dashboard/overview/id1368120691
map <C-;> previousTab
map <C-'> nextTab
site 'https://mail.google.com/mail/*'{
unmapAll
map <C-j> scrollDown
map <C-k> scrollUp
map <C-d> scrollPageDown
map <C-u> scrollPageUp
map F createTabbedHint
map <C-f> createHint
map <C-F> createActiveTabbedHint
map J previousTab
map K nextTab
}
site 'https://bugs.indeed.com/*' {
unmap .
}
site 'https://fisheye.indeed.com/*' {
unmapAll
map <C-j> scrollDown
map <C-k> scrollUp
map <C-d> scrollPageDown
map <C-u> scrollPageUp
map F createTabbedHint
map <C-f> createHint
map <C-F> createActiveTabbedHint
map J previousTab
map K nextTab
}
let blacklists = ["https://docs.google.com/*","https://www.douyu.com/*","https://markable.in/*","https://calendar.google.com/*","http://localhost/*","https://code.corp.indeed.com/*","https://mail.google.com/*","https://bugs.indeed.com/*","https://inbox.google.com/*","https://app.asana.com/*"]
" blacklists prefixed by '@' act as a whitelist
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment