Last active
April 8, 2018 13:54
-
-
Save kozalosev/b56ec01bd5eb2564994c31f5d7f958f1 to your computer and use it in GitHub Desktop.
A configuration file for cVim (extension for Google Chrome)
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 smoothscroll " Use smooth scrolling | |
set linkanimations " Show fade effect when link hints open and close | |
set cncpcompletion " Use <C-p> to cycle through completion results (I don't know how to make <C-n> work) | |
""" SEARCH ENGINES """ | |
let searchengine yandex = ['https://yandex.ru', 'https://yandex.ru/search/?text=%s'] | |
let searchengine aliexpress = ['https://www.aliexpress.com', 'https://www.aliexpress.com/wholesale?SearchText=%s'] | |
let searchengine oxfordlearnersdictionary = ['https://www.oxfordlearnersdictionaries.com', 'https://www.oxfordlearnersdictionaries.com/definition/american_english/%s'] | |
let searchengine reverso_enru = ['http://context.reverso.net', 'http://context.reverso.net/перевод/английский-русский/%s'] | |
let searchengine reverso_ruen = ['http://context.reverso.net', 'http://context.reverso.net/перевод/русский-английский/%s'] | |
let completionengines = ['google', 'wikipedia', 'oxfordlearnersdictionary', 'youtube', 'google-image', 'webster', 'urbandictionary', 'aliexpress', 'ebay', 'google-maps'] | |
" Create shortcuts for search enginess. | |
" For example, typing ':tabnew g' would act the same way as ':tabnew google example' | |
let searchalias g = "google" | |
let searchalias ya = "yandex" | |
let searchalias yt = "youtube" | |
let searchalias img = "google-image" | |
let searchalias dict = "oxfordlearnersdictionary" | |
let searchalias erev = "reverso_enru" | |
let searchalias rrev = "reverso_ruen" | |
let searchalias ali = "aliexpress" | |
""" ALIASES """ | |
" Search engines and translators | |
" For example, typing ':g' would act the same way as ':tabnew google' | |
command g tabnew google | |
command ya tabnew yandex | |
command yt tabnew youtube | |
command img tabnew google-image | |
command dict tabnew oxfordlearnersdictionary | |
command tr tabnew https://translate.google.com | |
command erev tabnew reverso_enru | |
command rrev tabnew reverso_ruen | |
command ali tabnew aliexpress | |
" Social networks | |
command vk tabnew https://vk.com | |
command fb tabnew https://www.facebook.com | |
command inst tabnew https://www.instagram.com | |
command tw tabnew https://twitter.com | |
" Entertainment | |
command bash tabnew bash.im | |
command joy tabnew joy.reactor.cc | |
" My websites | |
command koz tabnew kozalo.ru | |
command lkoz tabnew lite.kozalo.ru | |
command pkoz tabnew pda.kozalo.ru | |
command sb tabnew https://sadbot.ru | |
command ssb tabnew https://server2.sadbot.ru | |
" My pages on GitHub and BitBucket | |
command ghk tabnew https://github.com/kozalosev | |
command gghk tabnew https://gist.github.com/kozalosev | |
command bbk tabnew https://bitbucket.com/Kozalo | |
command sbbk tabnew https://bitbucket.org/snippets/Kozalo/ | |
" Special repositories (for now) | |
command ghdc tabnew https://github.com/DeskChan/DeskChan | |
command ghkl tabnew https://github.com/kozalosev/DeskChan-Launcher | |
" Others | |
command sbo tabnew https://online.sberbank.ru/CSAFront/index.do | |
command tgapi tabnew http://core.telegram.org/bots/api | |
""" ADDITIONAL FUNCTIONALITY """ | |
getIP() -> {{ | |
httpRequest({url: 'http://api.ipify.org/?format=json', json: true}, | |
function(res) { Status.setMessage('IP: ' + res.ip); }); | |
}} | |
" Display my public IP address in the status bar | |
map ci :call getIP<CR> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment