Last active
March 21, 2023 06:32
-
-
Save kurtontheway/3ba8378f0296196a5bdf2f97e3465e71 to your computer and use it in GitHub Desktop.
cvim settings
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 configpath = '~/.cvimrc' | |
| " set localconfig | |
| let previousmatchpattern = '((?!last)(←.*|前一.*|上一.*|prev(ious)?|newer|back|«|less|<|‹| )+)' | |
| let nextmatchpattern = '((?!first)(.*→|后一.*|下一.*|next|older|more|>|›|»|forward| )+)' | |
| set smoothscroll | |
| set cncpcompletion | |
| " set scalehints | |
| set linkanimations | |
| set typelinkhints | |
| " set showtabindices | |
| set completeonopen | |
| set noautofocus | |
| set autohidecursor | |
| " scrollduration default 500 | |
| let scrollduration=300 | |
| let fullpagescrollpercent=95 | |
| " map <C-d> scrollFullPageDown | |
| " map <C-e> scrollFullPageUp | |
| " map f createHint | |
| " map F createTabbedHint | |
| map f createActiveTabbedHint | |
| map F createHint | |
| map ga reloadAllTabs | |
| map [ <NOP> | |
| map ] <NOP> | |
| map ,, previousMatchPattern | |
| map .. nextMatchPattern | |
| " release hotkeys for video sites | |
| site '*://ddrk.me/*' { | |
| unmap c | |
| } | |
| " release hotkeys for video sites | |
| site '*://*/video/*' { | |
| unmap <Space> | |
| } | |
| " release hotkeys for video sites | |
| site '*://v.*/*' { | |
| unmap <Space> | |
| } | |
| " release twitter hotkeys | |
| site '*://twitter.com/*' { | |
| unmap <Space> | |
| unmap j | |
| unmap k | |
| unmap g | |
| unmap h | |
| unmap l | |
| unmap <S-?> | |
| } | |
| " release youtube hotkeys | |
| site '*://*.youtube.com/watch*' { | |
| unmap <Space> | |
| unmap > | |
| unmap < | |
| unmap c | |
| unmap m | |
| unmap , | |
| unmap . | |
| " unmap b | |
| unmap j | |
| unmap k | |
| unmap l | |
| " unmap f | |
| unmap 0 | |
| unmap 1 | |
| unmap 2 | |
| unmap 3 | |
| unmap 4 | |
| unmap 5 | |
| unmap 6 | |
| unmap 7 | |
| unmap 8 | |
| unmap 9 | |
| map c <NOP> | |
| map , <NOP> | |
| map . <NOP> | |
| unmap <S-?> | |
| } | |
| " release vimeo hotkeys for video-element-rate-controller | |
| site '*://vimeo.com/*' { | |
| unmap <Space> | |
| " unmap l | |
| " unmap s | |
| " unmap w | |
| unmap c | |
| " unmap h | |
| " unmap f | |
| " unmap d | |
| unmap <S-?> | |
| } | |
| " release digg.com/reader hotkeys | |
| site '*://digg.com/reader*' { | |
| unmap j | |
| unmap k | |
| } | |
| " release inbox.google.com hotkeys | |
| site '*://inbox.google.com/*' { | |
| unmap j | |
| unmap k | |
| unmap n | |
| unmap p | |
| unmap c | |
| unmap / | |
| " unmap r | |
| unmap a | |
| " unmap f | |
| unmap i | |
| unmap z | |
| unmap # | |
| unmap ! | |
| unmap x | |
| unmap o | |
| unmap u | |
| unmap <S-?> | |
| } | |
| " release github.com hotkeys | |
| site '*://github.com/*' { | |
| unmap / | |
| unmap h | |
| unmap l | |
| unmap j | |
| unmap k | |
| " unmap t | |
| unmap <S-?> | |
| } | |
| " release gmail.com hotkeys | |
| site '*://mail.google.com/mail/*' { | |
| unmap *a | |
| unmap *n | |
| unmap *r | |
| unmap *u | |
| unmap *s | |
| unmap *t | |
| unmap u | |
| unmap j | |
| unmap k | |
| unmap o | |
| unmap p | |
| unmap n | |
| unmap c | |
| unmap / | |
| " unmap q | |
| unmap . | |
| " unmap v | |
| unmap l | |
| unmap ? | |
| unmap , | |
| " unmap x | |
| unmap ! | |
| unmap # | |
| " unmap r | |
| unmap a | |
| unmap z | |
| unmap ; | |
| unmap <S-?> | |
| } | |
| " release www.shanbay.com/sentence hotkeys | |
| site '*://www.shanbay.com/sentence/*' { | |
| unmap 1 | |
| unmap d | |
| unmap 0 | |
| unmap enter | |
| } | |
| " let blacklists = ["https://mail.google.com/*","*://mail.google.com/*","@https://mail.google.com/mail/*","*://*.vultr.com/*","https://my.vultr.com/subs/vps/novnc*","*://sourcegraph.com/*"] | |
| " blacklists prefixed by '@' act as a whitelist | |
| let blacklists = ["http://tractor-cls.mihoyo.com/tv/*","https://music.youtube.com/*","file:///*.pdf", "*://*/*.pdf", "*://*.vultr.com/*","https://my.vultr.com/subs/vps/novnc*","*://sourcegraph.com/*"] | |
| let searchengine youdaodict = ["https://dict.youdao.com", "http://dict.youdao.com/search?q=%s"] | |
| " command d tabnew youdaodict | |
| let searchalias d = "youdaodict" | |
| let searchengine renrendict = ["https://www.91dict.com", "https://www.91dict.com/words?w=%s"] | |
| " command rr tabnew renrendict | |
| let searchalias rr = "renrendict" | |
| let searchengine baidumap = ["https://map.baidu.com", "https://map.baidu.com/?newmap=1&ie=utf-8&s=s%26wd%3D%s"] | |
| " command m tabnew baidumap | |
| let searchalias m = "baidumap" | |
| let searchengine googledefine = ["https://www.google.com/search?q=define", "https://www.google.com/search?q=define+%s"] | |
| " command gd tabnew googledefine | |
| let searchalias gd = "googledefine" | |
| let searchengine googleimage = ["https://image.google.com", "https://www.google.com/search?tbm=isch&q=%s"] | |
| " command gi tabnew googleimage | |
| let searchalias gi = "googleimage" | |
| let searchengine googlemap = ["https://maps.google.com", "https://www.google.com/maps/preview#!q=%s"] | |
| " command gm tabnew googlemap | |
| let searchalias gm = "googlemap" | |
| let searchengine googletranslate = ["https://translate.google.cn", "https://translate.google.cn/?source=osdd#auto|auto|%s"] | |
| " command gt tabnew googletranslate | |
| let searchalias gt = "googletranslate" | |
| let searchengine googlevideo = ["https://video.google.com", "https://www.google.com/search?q=%s&tbm=vid"] | |
| " command gv tabnew googlevideo | |
| let searchalias gv = "googlevideo" | |
| let searchengine wikipedia = ["https://www.wikipedia.org/", "https://www.wikiwand.com/en/%s"] | |
| " command w tabnew wikipedia | |
| let searchalias w = "wikipedia" | |
| let searchengine wikipedia = ["https://www.wikipedia.org/", "https://en.wikipedia.org/wiki/%s"] | |
| " command w tabnew wikipedia | |
| let searchalias w = "wikipedia" | |
| let searchengine wikipediaZH = ["https://zh.wikipedia.org/", "https://zh.wikipedia.org/wiki/%s"] | |
| " command wc tabnew wikipediaZH | |
| let searchalias wc = "wikipediaZH" | |
| let searchengine imdb = ["https://www.imdb.com", "https://www.imdb.com/find?s=all&q=%s"] | |
| " command im tabnew imdb | |
| let searchalias im = "imdb" | |
| let searchengine python = ["https://docs.python.org/3.6/index.html", "https://docs.python.org/3.6/search.html?q=%s"] | |
| " command py tabnew python | |
| let searchalias py = "python" | |
| let searchengine quora = ["https://www.quora.com", "https://www.quora.com/opensearch/query?q=%s&pw={startPage?}"] | |
| " command q tabnew quora | |
| let searchalias q = "quora" | |
| let searchengine reddit = ["https://www.reddit.com", "https://www.reddit.com/search?q=%s"] | |
| " command r tabnew reddit | |
| let searchalias r = "reddit" | |
| let searchengine twitter = ["https://twitter.com", "https://twitter.com/search?q=%s"] | |
| " command t tabnew twitter | |
| let searchalias t = "twitter" | |
| let searchengine vimeo = ["https://vimeo.com", "https://vimeo.com/search?q=%s"] | |
| " command v tabnew vimeo | |
| let searchalias v = "vimeo" | |
| let searchengine youtube = ["https://www.youtube.com", "https://www.youtube.com/results?search_query=%s"] | |
| " command y tabnew youtube | |
| let searchalias y = "youtube" | |
| let searchengine confluence = ["http://wiki.linmon.cn", "http://wiki.linmon.cn/dosearchsite.action?queryString=%s"] | |
| " command c tabnew confluence | |
| let searchalias c = "confluence" | |
| let searchengine jira = ["http://jira.linmon.cn", "http://jira.linmon.cn/secure/QuickSearch.jspa?searchString=%s"] | |
| " command j tabnew jira | |
| let searchalias j = "jira" | |
| let searchengine pymel = ["http://help.autodesk.com/cloudhelp/2017/ENU/Maya-Tech-Docs/PyMel/", "http://help.autodesk.com/cloudhelp/2017/ENU/Maya-Tech-Docs/PyMel/search.html?q=%s"] | |
| " command pm tabnew pymel | |
| let searchalias pm = "pymel" | |
| let searchengine evernote = ["https://www.evernote.com/Home.action?login=true", "https://www.evernote.com/Home.action?login=true#n=a8c08c7d-95ad-4cbe-8b78-bae4b30cdd6d&s=s21&ses=1&sh=5&sds=5&x=%s&"] | |
| " command en tabnew evernote | |
| let searchalias en = "evernote" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment