Last active
August 14, 2016 07:23
-
-
Save bushuai/2796fe24c1c6b56d4825e40af7924b67 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" 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 = 70 | |
let barposition = "bottom" | |
let locale = "uk" " 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 = "abc123" | |
let searchengine dogpile = "http://www.dogpile.com/search/web?q=%s" " If you leave out the '%s' at the end of the URL, | |
" your query will be appended to the link. | |
" Otherwise, your query will replace the '%s'. | |
" alias ':g' to ':tabnew google' | |
command g tabnew google | |
let completionengines = ["google", "amazon", "imdb", "dogpile"] | |
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' | |
" 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 :buffer<Space> | |
unmap < | |
unmap > | |
" This remaps the default 'f' mapping to the current 'F' mapping | |
map < moveTabLeft | |
map > moveTabRight | |
" 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 | |
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) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment