Last active
April 6, 2017 14:03
-
-
Save kopa/7ff9bc0b095c49f72f7d353bcb75b1af to your computer and use it in GitHub Desktop.
Revisions
-
kopa revised this gist
Apr 6, 2017 . 1 changed file with 1 addition and 5 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -6,11 +6,7 @@ command g tabnew google let completionengines = ["google", "amazon", "imdb"] " blacklists prefixed by '@' act as a whitelist let blacklists = ["https://mail.google.com/*", "*://mail.google.com/*", "@*://*orf.at/*"] map gb :buffer<Space> -
kopa revised this gist
Apr 6, 2017 . 1 changed file with 1 addition and 7 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -38,10 +38,4 @@ 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> -
kopa revised this gist
Apr 6, 2017 . 1 changed file with 2 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -17,6 +17,8 @@ map gb :buffer<Space> " This unmaps the default '<C-f>' mapping unmap <C-f> <C-t> <C-y> <C-c> <A-left> <A-right> iunmap <C-f> <C-t> <C-y> <C-c> <A-left> <A-right> " fix select all iunmap <c-a> " Toggle the current HUD display value map <C-h> :set hud!<CR> -
kopa revised this gist
Apr 6, 2017 . 2 changed files with 45 additions and 102 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,102 +0,0 @@ This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,45 @@ " Settings " alias ':g' to ':tabnew google' command g tabnew google let completionengines = ["google", "amazon", "imdb"] " blacklists prefixed by '@' act as a whitelist let blacklists = [ "https://mail.google.com/*", "*://mail.google.com/*", "@*://*orf.at/*" ] map gb :buffer<Space> " This unmaps the default '<C-f>' mapping unmap <C-f> <C-t> <C-y> <C-c> <A-left> <A-right> iunmap <C-f> <C-t> <C-y> <C-c> <A-left> <A-right> " Toggle the current HUD display value map <C-h> :set hud!<CR> " Create a variable that can be used/referenced in the command bar let @@reddit_prog = 'http://www.reddit.com/r/programming' let @@top_all = 'top?sort=top&t=all' let @@top_day = 'top?sort=top&t=day' " TA binding opens 'http://www.reddit.com/r/programming/top?sort=top&t=all' in a new tab map TA :to @@reddit_prog/@@top_all<CR> map TD :to @@reddit_prog/@@top_day<CR> " 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-h> createScriptHint(echo) -
kopa created this gist
Apr 6, 2017 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,102 @@ " 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'. " 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", "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' " 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 blacklists = ["https://mail.google.com/*", "*://mail.google.com/*", "@https://mail.google.com/mail/*"] " blacklists prefixed by '@' act as a whitelist let mapleader = "," " Mappings map <Leader>r reloadTabUncached map <Leader>x :restore<Space> " This remaps the default 'j' mapping map j scrollUp " You can use <Space>, which is interpreted as a " literal " " character, to enter buffer completion mode map gb :buffer<Space> " This unmaps the default 'k' mapping unmap k " This unmaps the default 'h', 'j', 'k', and 'l' mappings unmap h j k l " This remaps the default 'f' mapping to the current 'F' mapping map f F " 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 " Create a variable that can be used/referenced in the command bar let @@reddit_prog = 'http://www.reddit.com/r/programming' let @@top_all = 'top?sort=top&t=all' let @@top_day = 'top?sort=top&t=day' " TA binding opens 'http://www.reddit.com/r/programming/top?sort=top&t=all' in a new tab map TA :to @@reddit_prog/@@top_all<CR> map TD :to @@reddit_prog/@@top_day<CR> " 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) let configpath = '/path/to/your/.cvimrc' set localconfig " Update settings via a local file (and the `:source` command) rather " than the default options page in chrome " As long as localconfig is set in the .cvimrc file. cVim will continue to read " settings from there