Last active
May 31, 2020 07:33
-
-
Save syon/dead5eaf1df35e770b85737a4877bc99 to your computer and use it in GitHub Desktop.
syon / cVimrc
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
set scalehints | |
set smoothscroll | |
let scrollduration = 300 | |
let hintcharacters = "asdgwetcvb" | |
copyThisPageTitle() -> {{ | |
var text = document.title || (document.querySelector("title") || {}).innerText || ''; | |
RUNTIME('copy', { text: text }); | |
Status.setMessage(text, 2); | |
}} | |
map yt :call copyThisPageTitle<CR> | |
copyThisPageLink() -> {{ | |
var text = document.title || (document.querySelector("title") || {}).innerText || ''; | |
var url = location.href; | |
var link = text + ' ' + url; | |
RUNTIME('copy', { text: link }); | |
Status.setMessage(link, 2); | |
}} | |
map yl :call copyThisPageLink<CR> | |
copyThisPageAsMarkdownLink() -> {{ | |
var text = document.title || (document.querySelector("title") || {}).innerText || ''; | |
var url = location.href; | |
var link = '[' + text + '](' + url + ')'; | |
RUNTIME('copy', { text: link }); | |
Status.setMessage(link, 2); | |
}} | |
map ym :call copyThisPageAsMarkdownLink<CR> | |
copyThisPageAsScrapboxLink() -> {{ | |
var text = document.title || (document.querySelector("title") || {}).innerText || ''; | |
var url = location.href; | |
var link = '[' + url + ' ' + text + ']'; | |
RUNTIME('copy', { text: link }); | |
Status.setMessage(link, 2); | |
}} | |
map ys :call copyThisPageAsScrapboxLink<CR> | |
let blacklists = ["https://remotedesktop.google.com/*"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
cVim Theme: FFXIV
https://gist.github.com/syon/fa2a1e607d1dde697274165bb260c8a4