Skip to content

Instantly share code, notes, and snippets.

@syon
Last active May 31, 2020 07:33
Show Gist options
  • Select an option

  • Save syon/dead5eaf1df35e770b85737a4877bc99 to your computer and use it in GitHub Desktop.

Select an option

Save syon/dead5eaf1df35e770b85737a4877bc99 to your computer and use it in GitHub Desktop.

Revisions

  1. syon revised this gist May 31, 2020. 1 changed file with 12 additions and 1 deletion.
    13 changes: 12 additions & 1 deletion cVimrc
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,7 @@
    set scalehints
    set smoothscroll
    let scrollduration = 300
    let hintcharacters = "asdgqwetcv"
    let hintcharacters = "asdgwetcvb"

    copyThisPageTitle() -> {{
    var text = document.title || (document.querySelector("title") || {}).innerText || '';
    @@ -27,3 +27,14 @@ copyThisPageAsMarkdownLink() -> {{
    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/*"]
  2. syon revised this gist Feb 3, 2018. 1 changed file with 9 additions and 0 deletions.
    9 changes: 9 additions & 0 deletions cVimrc
    Original file line number Diff line number Diff line change
    @@ -10,6 +10,15 @@ copyThisPageTitle() -> {{
    }}
    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;
  3. syon revised this gist Jan 24, 2018. No changes.
  4. syon revised this gist Jan 22, 2018. 1 changed file with 18 additions and 1 deletion.
    19 changes: 18 additions & 1 deletion cVimrc
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,20 @@
    set scalehints
    set smoothscroll
    let scrollduration = 300
    let scrollduration = 300
    let hintcharacters = "asdgqwetcv"

    copyThisPageTitle() -> {{
    var text = document.title || (document.querySelector("title") || {}).innerText || '';
    RUNTIME('copy', { text: text });
    Status.setMessage(text, 2);
    }}
    map yt :call copyThisPageTitle<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>
  5. syon revised this gist May 12, 2016. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions cVimrc
    Original file line number Diff line number Diff line change
    @@ -1,2 +1,3 @@
    set scalehints
    set smoothscroll
    let scrollduration = 300
  6. syon renamed this gist Apr 9, 2016. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  7. syon created this gist Apr 9, 2016.
    2 changes: 2 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,2 @@
    set smoothscroll
    let scrollduration = 300