Last active
February 10, 2020 05:11
-
-
Save slavniyteo/62b248d45fbc106078643cdfcc75201b to your computer and use it in GitHub Desktop.
cVim configuration
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 characters
let langmap = "ёйцукенгшщзхъфывапролджэячсмитьбюЁЙЦУКЕHГШЩЗХЪФЫВАПРОЛДЖЭЯЧСМИТЬБЮ;`qwertyuiop[]asdfghjkl\\;'zxcvbnm\\,.~QWERTYUIOP{}ASDFGHJKL:\"ZXCVBNM<>" | |
let blacklists = ["https://vim-adventures.com/*"] | |
set noautomakelinks | |
set noautofocus | |
let hintcharacters = "asdfgwertzxcvbkjpoiunml" | |
let mouselesshintcharacters = "asdfgwertzxcvb,kjpoiunml" | |
let newtaburl = "chrome://new-tab" | |
imap <C-o> editWithVim | |
let searchengine forvo = ["https://forvo.com", "https://forvo.com/word/%s#en"] | |
command f open forvo | |
let searchengine img = ["https://images.google.com", "https://www.google.com/search?tbm=isch&q=%s"] | |
command i open img | |
let searchengine postgres = ["https://postgrespro.ru/search", "https://postgrespro.ru/search/?area=version&product=postgresql&version=11&q=%s"] | |
command p open postgres | |
switchHabrSpoilers -> {{ | |
var arr = document.querySelectorAll('.spoiler_text') | |
if (arr.length == 0) return | |
var currentDisplay = arr[0].style.display | |
var display = currentDisplay == 'block' ? 'none' : 'block' | |
arr.forEach(x => x.style.display = display) | |
arr.forEach(x => x.style.border = '5px solid #0000ff') | |
}} | |
command h call switchHabrSpoilers | |
map L :call openLinkSearchBar<CR> | |
command m call makeLinks | |
siteFilters -> {{ | |
return { | |
'*://*.google.*/*': { | |
reject: [ | |
'li[class$="_dropdownitem"]', | |
'div[class$="_dropdown"]', | |
'div[aria-label="Apps"]', | |
'.hdtbna.notl', | |
'.irc_rit', | |
'a[href^="imgres"]', | |
'div[id=hdtbMenus]', | |
'div[aria-label="Account Information"]', | |
'img[jsaction^="load:"]' | |
], | |
}, | |
'*://github.com/*': { | |
reject: [ | |
'.select-menu-modal-holder.js-menu-content' | |
], | |
accept: [ | |
'.js-menu-close', | |
'a.anchor', | |
], | |
}, | |
'*://habr.com/*': { | |
accept: [ | |
'.icon_comment-branch', | |
'.spoiler_title', | |
'label.checkbox', | |
], | |
}, | |
'*://forvo.com/*': { | |
accept: [ | |
'.download > .ofLink', | |
], | |
}, | |
'*://meduza.io/*': { | |
accept: [ | |
'span.FootnoteLink', | |
], | |
}, | |
'https://feedly.com/*': { | |
accept: [ | |
'span.LeftnavListRow__text', | |
'i.LeftnavListRow__icon', | |
], | |
reject: [ 'div.LeftnavList__feed-list div' ], | |
}, | |
}; | |
}} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I use mouseless -- cvim fork with extended functionality
Mouseless docs: https://hbt.github.io/mouseless/