Skip to content

Instantly share code, notes, and snippets.

@dylan-conlin
Last active March 9, 2020 16:34
Show Gist options
  • Select an option

  • Save dylan-conlin/b48425a2bfa9fde27543 to your computer and use it in GitHub Desktop.

Select an option

Save dylan-conlin/b48425a2bfa9fde27543 to your computer and use it in GitHub Desktop.

Revisions

  1. dylan-conlin revised this gist Feb 22, 2018. 1 changed file with 0 additions and 1 deletion.
    1 change: 0 additions & 1 deletion cVimrc
    Original file line number Diff line number Diff line change
    @@ -74,7 +74,6 @@ site '*://github.com/*' {
    unmap s
    }

    set autoupdategist

    " show the heads-up-display
    set hud
  2. dylan-conlin revised this gist Feb 22, 2018. 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
    @@ -74,6 +74,7 @@ site '*://github.com/*' {
    unmap s
    }

    set autoupdategist

    " show the heads-up-display
    set hud
  3. dylan-conlin revised this gist Feb 22, 2018. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions cVimrc
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,5 @@
    " hi there!

    let mapleader = ","
    map W :tabdetach<CR>
    map A :tabattach<Space>
  4. dylan-conlin revised this gist Feb 22, 2018. No changes.
  5. dylan-conlin revised this gist Feb 22, 2018. No changes.
  6. dylan-conlin revised this gist Feb 22, 2018. 1 changed file with 67 additions and 32 deletions.
    99 changes: 67 additions & 32 deletions cVimrc
    Original file line number Diff line number Diff line change
    @@ -1,35 +1,78 @@
    let mapleader = ","
    map W :tabdetach<CR>
    map A :tabattach<Space>
    map U lastClosedTab
    map O :history<Space>
    map <M-k> :buffer<Space>
    map yt :duplicate<CR>
    map <C-s> openSearchBar
    map <C-r> openSearchBarReverse
    map <Leader>t newtab
    unmap <C-6> B b
    map <Leader>t :newtab<CR>
    unmap <C-6> B b t r
    map t :buffer<Space>
    map b lastUsedTab
    map B createBookmark

    map <BS> :goBack<CR>

    map <BS> goBack
    map <C-x>k closeTab
    map <C-x>b :buffer<Space>
    map <C-x><C-b> :bookmarks<Space>
    map <C-x>r :history<Space>
    command g tabnew google<Space>
    " Script hints
    echo(link) -> {{
    shareLink(link) -> {{
    alert(link.href);
    }}
    map <C-6> createScriptHint(echo)

    map <Leader>s createScriptHint(shareLink)
    map <Leader>x :restore<Space>
    site '*://*inbox.google.com/*' {
    unmap j
    unmap k
    unmap ?
    unmap c
    unmap /
    unmap z
    unmap n
    unmap p
    unmap e
    unmap y
    unmap r
    unmap #
    unmap !
    unmap x
    unmap <BS>
    unmap H
    unmap L
    }
    site '*://*.reddit.com/*' {
    unmap j
    unmap k
    unmap x
    unmap :
    set numerichints
    unmap <BS>
    unmap ?
    unmap G
    unmap .
    unmap TA
    unmap TD
    unmap TM
    unmap TY
    }

    site '*://*.youtube.com/*' {
    unmap j
    unmap k
    unmap l
    unmap N
    }

    site '*://*.google.com/search*' {
    unmap j
    unmap k
    unmap u
    }
    site '*://github.com/*' {
    unmap t
    unmap s
    }



    " show the heads-up-display
    set hud

    @@ -39,8 +82,8 @@ set regexp
    " ignore search case in find mode
    set ignorecase

    " no fade effect when toggling link hints
    set nolinkanimations
    " fade effect when toggling link hints
    set linkanimations

    " use numbers instead of characters for link hints
    set nonumerichints
    @@ -53,13 +96,13 @@ set nodefaultnewtabpage

    " <C-n> and <C-p> to cycle through completion results (requires you to
    " set the nextCompletionResult keybinding in the chrome://extensions page (bottom right)
    set nocncpcompletion
    set cncpcompletion

    " case-insensitive find mode searches except when input contains a capital letter
    set smartcase

    " auto-highlighting find mode matches when input length is greater thant two
    set incsearch
    set incsearch

    " (numerichints required) type text in the link to narrow down numeric hints
    set typelinkhints
    @@ -77,7 +120,7 @@ set insertmappings
    set nonativelinkorder

    " disable cVim on the sites matching one of the patterns
    let blacklists = ["https://inbox.google.com/*"]
    let blacklists = ["https://inbox.google.com/*","https://earth.google.com/*"]

    " number of results displayed in the command bar
    let searchlimit = 30
    @@ -99,19 +142,15 @@ let scrollduration = 1000
    let scrollstep = 100

    " full page scroll percent
    let fullpagescrollpercent = 85
    let fullpagescrollpercent = 85

    " " integer the step size when zooming the page in/out 0.
    " let zoomfactor = 0.1

    " use only the specified search engines
    let completionengines = []

    " The default <Leader> key
    let mapleader = ','
    let completionengines = []

    " set the default search engine
    let defaultengine = "google"
    let defaultengine = "google"

    " set the locale of the site being completed/searched on (see example configuration below)
    let locale = ""
    @@ -123,24 +162,20 @@ let homedirectory = ""
    let previousmatchpattern = "((?!last)(prev(ious)?|back|«|less|<|‹| )+)"

    " the pattern looked for when navigation a page's next button
    let nextmatchpattern = "((?!first)(next|more|>|›|»|forward| )+)"
    let nextmatchpattern = "((?!first)(next|more|>|›|»|forward| )+)"

    " set the default characters to be used in link hint mode
    let hintcharacters = "asdfgqwertzxcvb"

    " command bar position
    let barposition = "top"

    imap <C-k> deleteToEnd
    " imap <C-k> deleteToEnd
    " imap <C-e> endOfLine

    " the highlight color for the current find match
    let activehighlight = "#ff9632"

    " the highlight color in find mode
    let highlight = "#ffff00"

    let configpath = '/Users/dylanconlin/Dropbox/side-sites/cvim/.cvimrc'
    set localconfig " Update settings via a local file (and the `:source` command) rather
    " than the default options page in chrome
    " As long as localconfig is set in the .cvimrc file. cVim will continue to read
    " settings from there
  7. dylan-conlin revised this gist Mar 29, 2017. No changes.
  8. dylan-conlin revised this gist Mar 29, 2017. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions cVimrc
    Original file line number Diff line number Diff line change
    @@ -8,7 +8,9 @@ map <Leader>t newtab
    unmap <C-6> B b
    map b lastUsedTab
    map B createBookmark

    map <BS> :goBack<CR>

    " Script hints
    echo(link) -> {{
    alert(link.href);
  9. dylan-conlin revised this gist Mar 29, 2017. No changes.
  10. dylan-conlin revised this gist Mar 29, 2017. No changes.
  11. dylan-conlin revised this gist Mar 29, 2017. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion cVimrc
    Original file line number Diff line number Diff line change
    @@ -8,7 +8,7 @@ map <Leader>t newtab
    unmap <C-6> B b
    map b lastUsedTab
    map B createBookmark
    map <BS> :goBack
    map <BS> :goBack<CR>
    " Script hints
    echo(link) -> {{
    alert(link.href);
  12. dylan-conlin revised this gist Mar 29, 2017. 1 changed file with 34 additions and 37 deletions.
    71 changes: 34 additions & 37 deletions cVimrc
    Original file line number Diff line number Diff line change
    @@ -5,18 +5,24 @@ map <M-k> :buffer<Space>
    map <C-s> openSearchBar
    map <C-r> openSearchBarReverse
    map <Leader>t newtab
    unmap <C-6> B b
    map b lastUsedTab
    map B createBookmark
    map <BS> :goBack
    " Script hints
    echo(link) -> {{
    alert(link.href);
    }}
    map <C-6> createScriptHint(echo)

    site '*://*.reddit.com/*' {
    unmap j
    unmap k
    unmap x
    unmap :
    set numerichints
    }
    site '*://*.youtube.com/*' {
    unmap j
    unmap k
    unmap l
    }

    site '*://*.google.com/search*' {
    unmap j
    unmap k
    @@ -38,11 +44,15 @@ set nolinkanimations
    set nonumerichints

    " dim letter matches in hint characters rather than remove them from the hint
    " set dimhintcharacters
    set dimhintcharacters

    " use the default chrome://newtab page instead of a blank page
    set nodefaultnewtabpage

    " <C-n> and <C-p> to cycle through completion results (requires you to
    " set the nextCompletionResult keybinding in the chrome://extensions page (bottom right)
    set nocncpcompletion

    " case-insensitive find mode searches except when input contains a capital letter
    set smartcase

    @@ -77,11 +87,21 @@ let timeoutlen = 1000
    " typelinkhints and numerichints enabled integer
    let typelinkhintsdelay = 50

    " use smooth scrolling
    set smoothscroll

    " integer the duration of smooth scrolling
    let scrollduration = 1000

    " number of pixels scrolled when using scrollUp and scrollDown
    let scrollstep = 100

    " full page scroll percent
    let fullpagescrollpercent = 85

    " " integer the step size when zooming the page in/out 0.
    " let zoomfactor = 0.1

    " use only the specified search engines
    let completionengines = []

    @@ -107,41 +127,18 @@ let nextmatchpattern = "((?!first)(next|more|>|›|»|forward| )+)"
    let hintcharacters = "asdfgqwertzxcvb"

    " command bar position
    let barposition = "bottom"

    let barposition = "top"
    imap <C-k> deleteToEnd

    " use smooth scrolling
    " set nosmoothscroll

    " <C-n> and <C-p> to cycle through completion results (requires you to
    " set the nextCompletionResult keybinding in the chrome://extensions page (bottom right)
    " set nocncpcompletion

    " integer the duration of smooth scrolling
    let scrollduration = 1000

    " number of pixels scrolled when using scrollUp and scrollDown
    let scrollstep = 100

    " the highlight color for the current find match
    let activehighlight = "#ff9632"

    " the highlight color in find mode
    let highlight = "#ffff00"

    echo(link) -> {{
    alert(link.href);
    }}
    " Code blocks (see below for more info)
    titleAndUrl() -> {{
    alert(document.title + " - " + window.location.href)
    }}
    " Displays your public IP address in the status bar
    map ci :call titleAndUrl<CR>


    " Script hints
    echo(link) -> {{
    alert(link.href);
    }}
    map <C-r> createScriptHint(echo)
    let configpath = '/Users/dylanconlin/Dropbox/side-sites/cvim/.cvimrc'
    set localconfig " Update settings via a local file (and the `:source` command) rather
    " than the default options page in chrome
    " As long as localconfig is set in the .cvimrc file. cVim will continue to read
    " settings from there
  13. dylan-conlin revised this gist Mar 28, 2017. 1 changed file with 17 additions and 17 deletions.
    34 changes: 17 additions & 17 deletions cVimrc
    Original file line number Diff line number Diff line change
    @@ -111,23 +111,6 @@ let barposition = "bottom"

    imap <C-k> deleteToEnd

    echo(link) -> {{
    alert(link.href);
    }}
    " Code blocks (see below for more info)
    titleAndUrl() -> {{
    alert(document.title + " - " + window.location.href)
    }}
    " Displays your public IP address in the status bar
    map ci :call titleAndUrl<CR>


    " Script hints
    echo(link) -> {{
    alert(link.href);
    }}
    map <C-r> createScriptHint(echo)

    " use smooth scrolling
    " set nosmoothscroll

    @@ -145,3 +128,20 @@ let scrollstep = 100
    let activehighlight = "#ff9632"
    " the highlight color in find mode
    let highlight = "#ffff00"

    echo(link) -> {{
    alert(link.href);
    }}
    " Code blocks (see below for more info)
    titleAndUrl() -> {{
    alert(document.title + " - " + window.location.href)
    }}
    " Displays your public IP address in the status bar
    map ci :call titleAndUrl<CR>


    " Script hints
    echo(link) -> {{
    alert(link.href);
    }}
    map <C-r> createScriptHint(echo)
  14. dylan-conlin revised this gist Mar 28, 2017. 1 changed file with 14 additions and 5 deletions.
    19 changes: 14 additions & 5 deletions cVimrc
    Original file line number Diff line number Diff line change
    @@ -79,34 +79,38 @@ let typelinkhintsdelay = 50

    " full page scroll percent
    let fullpagescrollpercent = 85

    " " integer the step size when zooming the page in/out 0.
    " let zoomfactor = 0.1
    " use only the specified search engines
    let completionengines = []

    " The default <Leader> key
    let mapleader = ','

    " set the default search engine
    let defaultengine = "google"

    " set the locale of the site being completed/searched on (see example configuration below)
    let locale = ""

    " the directory to replace ~ when using the file command
    let homedirectory = ""

    " the pattern looked for when navigating a page's back button
    let previousmatchpattern = "((?!last)(prev(ious)?|back|«|less|<|‹| )+)"

    " the pattern looked for when navigation a page's next button
    let nextmatchpattern = "((?!first)(next|more|>|›|»|forward| )+)"

    " set the default characters to be used in link hint mode
    let hintcharacters = "asdfgqwertzxcvb"

    " command bar position
    let barposition = "bottom"

    imap <C-k> deleteToEnd

    " the highlight color for the current find match
    let activehighlight = "#ff9632"
    " the highlight color in find mode
    let highlight = "#ffff00"

    echo(link) -> {{
    alert(link.href);
    }}
    @@ -136,3 +140,8 @@ let scrollduration = 1000

    " number of pixels scrolled when using scrollUp and scrollDown
    let scrollstep = 100

    " the highlight color for the current find match
    let activehighlight = "#ff9632"
    " the highlight color in find mode
    let highlight = "#ffff00"
  15. dylan-conlin revised this gist Mar 28, 2017. 1 changed file with 9 additions and 5 deletions.
    14 changes: 9 additions & 5 deletions cVimrc
    Original file line number Diff line number Diff line change
    @@ -77,10 +77,6 @@ let timeoutlen = 1000
    " typelinkhints and numerichints enabled integer
    let typelinkhintsdelay = 50

    " integer the duration of smooth scrolling
    let scrollduration = 1000
    " number of pixels scrolled when using scrollUp and scrollDown
    let scrollstep = 100
    " full page scroll percent
    let fullpagescrollpercent = 85
    " " integer the step size when zooming the page in/out 0.
    @@ -104,7 +100,6 @@ let hintcharacters = "asdfgqwertzxcvb"
    " command bar position
    let barposition = "bottom"


    imap <C-k> deleteToEnd

    " the highlight color for the current find match
    @@ -132,3 +127,12 @@ map <C-r> createScriptHint(echo)
    " use smooth scrolling
    " set nosmoothscroll

    " <C-n> and <C-p> to cycle through completion results (requires you to
    " set the nextCompletionResult keybinding in the chrome://extensions page (bottom right)
    " set nocncpcompletion

    " integer the duration of smooth scrolling
    let scrollduration = 1000

    " number of pixels scrolled when using scrollUp and scrollDown
    let scrollstep = 100
  16. dylan-conlin revised this gist Mar 28, 2017. 1 changed file with 3 additions and 4 deletions.
    7 changes: 3 additions & 4 deletions cVimrc
    Original file line number Diff line number Diff line change
    @@ -43,10 +43,6 @@ set nonumerichints
    " use the default chrome://newtab page instead of a blank page
    set nodefaultnewtabpage

    " <C-n> and <C-p> to cycle through completion results (requires you to
    " set the nextCompletionResult keybinding in the chrome://extensions page (bottom right)
    " set nocncpcompletion

    " case-insensitive find mode searches except when input contains a capital letter
    set smartcase

    @@ -133,3 +129,6 @@ echo(link) -> {{
    }}
    map <C-r> createScriptHint(echo)

    " use smooth scrolling
    " set nosmoothscroll

  17. dylan-conlin revised this gist Mar 28, 2017. 1 changed file with 0 additions and 3 deletions.
    3 changes: 0 additions & 3 deletions cVimrc
    Original file line number Diff line number Diff line change
    @@ -81,9 +81,6 @@ let timeoutlen = 1000
    " typelinkhints and numerichints enabled integer
    let typelinkhintsdelay = 50

    " use smooth scrolling
    " set nosmoothscroll

    " integer the duration of smooth scrolling
    let scrollduration = 1000
    " number of pixels scrolled when using scrollUp and scrollDown
  18. dylan-conlin revised this gist Mar 28, 2017. 1 changed file with 13 additions and 1 deletion.
    14 changes: 13 additions & 1 deletion cVimrc
    Original file line number Diff line number Diff line change
    @@ -49,29 +49,41 @@ set nodefaultnewtabpage

    " case-insensitive find mode searches except when input contains a capital letter
    set smartcase

    " auto-highlighting find mode matches when input length is greater thant two
    set incsearch

    " (numerichints required) type text in the link to narrow down numeric hints
    set typelinkhints

    " hide the mouse cursor when scrolling (useful for Linux, which doesn't auto-hide the cursor on keydown)
    set autohidecursor

    " allows websites to automatically focus an input box when they are first loaded
    set noautofocus

    " use insert mappings to navigate the cursor in text boxes (see bindings below)
    set insertmappings

    " Open new tabs like Chrome does rather than next to the currently opened tab
    set nonativelinkorder

    " disable cVim on the sites matching one of the patterns
    let blacklists = ["https://inbox.google.com/*"]

    " number of results displayed in the command bar
    let searchlimit = 30

    " time to wait for a <Leader> mapping in (millis)
    let timeoutlen = 1000

    " milliseconds to wait before taking input after opening a link hint with
    " typelinkhints and numerichints enabled integer
    let typelinkhintsdelay = 50

    " use smooth scrolling
    set nosmoothscroll
    " set nosmoothscroll

    " integer the duration of smooth scrolling
    let scrollduration = 1000
    " number of pixels scrolled when using scrollUp and scrollDown
  19. dylan-conlin revised this gist Mar 28, 2017. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion cVimrc
    Original file line number Diff line number Diff line change
    @@ -42,9 +42,11 @@ set nonumerichints

    " use the default chrome://newtab page instead of a blank page
    set nodefaultnewtabpage

    " <C-n> and <C-p> to cycle through completion results (requires you to
    " set the nextCompletionResult keybinding in the chrome://extensions page (bottom right)
    set nocncpcompletion
    " set nocncpcompletion

    " case-insensitive find mode searches except when input contains a capital letter
    set smartcase
    " auto-highlighting find mode matches when input length is greater thant two
  20. dylan-conlin revised this gist Mar 28, 2017. 1 changed file with 4 additions and 1 deletion.
    5 changes: 4 additions & 1 deletion cVimrc
    Original file line number Diff line number Diff line change
    @@ -33,10 +33,13 @@ set ignorecase

    " no fade effect when toggling link hints
    set nolinkanimations

    " use numbers instead of characters for link hints
    set nonumerichints

    " dim letter matches in hint characters rather than remove them from the hint
    set dimhintcharacters
    " set dimhintcharacters

    " use the default chrome://newtab page instead of a blank page
    set nodefaultnewtabpage
    " <C-n> and <C-p> to cycle through completion results (requires you to
  21. dylan-conlin revised this gist Mar 28, 2017. 1 changed file with 1 addition and 5 deletions.
    6 changes: 1 addition & 5 deletions cVimrc
    Original file line number Diff line number Diff line change
    @@ -6,11 +6,7 @@ map <C-s> openSearchBar
    map <C-r> openSearchBarReverse
    map <Leader>t newtab
    map B createBookmark
    " Script hints
    echo(link) -> {{
    alert(link.href);
    }}
    map <C-6> createScriptHint(echo)

    site '*://*.reddit.com/*' {
    unmap j
    unmap k
  22. dylan-conlin revised this gist Mar 28, 2017. 1 changed file with 0 additions and 2 deletions.
    2 changes: 0 additions & 2 deletions cVimrc
    Original file line number Diff line number Diff line change
    @@ -5,8 +5,6 @@ map <M-k> :buffer<Space>
    map <C-s> openSearchBar
    map <C-r> openSearchBarReverse
    map <Leader>t newtab
    unmap <C-6> B b R
    map b lastUsedTab
    map B createBookmark
    " Script hints
    echo(link) -> {{
  23. dylan-conlin revised this gist Mar 28, 2017. 1 changed file with 27 additions and 44 deletions.
    71 changes: 27 additions & 44 deletions cVimrc
    Original file line number Diff line number Diff line change
    @@ -5,24 +5,24 @@ map <M-k> :buffer<Space>
    map <C-s> openSearchBar
    map <C-r> openSearchBarReverse
    map <Leader>t newtab
    unmap <C-6> B b
    unmap <C-6> B b R
    map b lastUsedTab
    map B createBookmark

    " Script hints
    echo(link) -> {{
    alert(link.href);
    }}
    map <C-6> createScriptHint(echo)

    site '*://*.reddit.com/*' {
    unmap j
    unmap k
    unmap x
    unmap :
    set numerichints
    }

    site '*://*.youtube.com/*' {
    unmap j
    unmap k
    unmap l
    }
    site '*://*.google.com/search*' {
    unmap j
    unmap k
    @@ -39,106 +39,89 @@ set ignorecase

    " no fade effect when toggling link hints
    set nolinkanimations

    " use numbers instead of characters for link hints
    set nonumerichints

    " dim letter matches in hint characters rather than remove them from the hint
    set dimhintcharacters

    " use the default chrome://newtab page instead of a blank page
    set nodefaultnewtabpage

    " <C-n> and <C-p> to cycle through completion results (requires you to
    " set the nextCompletionResult keybinding in the chrome://extensions page (bottom right)
    set nocncpcompletion

    " case-insensitive find mode searches except when input contains a capital letter
    set smartcase

    " auto-highlighting find mode matches when input length is greater thant two
    set incsearch

    " (numerichints required) type text in the link to narrow down numeric hints
    set typelinkhints

    " hide the mouse cursor when scrolling (useful for Linux, which doesn't auto-hide the cursor on keydown)
    set autohidecursor

    " allows websites to automatically focus an input box when they are first loaded
    set noautofocus

    " use insert mappings to navigate the cursor in text boxes (see bindings below)
    set insertmappings

    " Open new tabs like Chrome does rather than next to the currently opened tab
    set nonativelinkorder

    " disable cVim on the sites matching one of the patterns
    let blacklists = ["https://inbox.google.com/*"]

    " number of results displayed in the command bar
    let searchlimit = 30

    " time to wait for a <Leader> mapping in (millis)
    let timeoutlen = 1000

    " milliseconds to wait before taking input after opening a link hint with
    " typelinkhints and numerichints enabled integer
    let typelinkhintsdelay = 50

    " use smooth scrolling
    set smoothscroll

    set nosmoothscroll
    " integer the duration of smooth scrolling
    let scrollduration = 1000

    " number of pixels scrolled when using scrollUp and scrollDown
    let scrollstep = 100

    " full page scroll percent
    let fullpagescrollpercent = 85

    " " integer the step size when zooming the page in/out 0.
    " let zoomfactor = 0.1

    " use only the specified search engines
    let completionengines = []

    " The default <Leader> key
    let mapleader = ','

    " set the default search engine
    let defaultengine = "google"

    " set the locale of the site being completed/searched on (see example configuration below)
    let locale = ""

    " the directory to replace ~ when using the file command
    let homedirectory = ""

    " the pattern looked for when navigating a page's back button
    let previousmatchpattern = "((?!last)(prev(ious)?|back|«|less|<|‹| )+)"

    " the pattern looked for when navigation a page's next button
    let nextmatchpattern = "((?!first)(next|more|>|›|»|forward| )+)"

    " set the default characters to be used in link hint mode
    let hintcharacters = "asdfgqwertzxcvb"

    " command bar position
    let barposition = "top"

    let barposition = "bottom"


    imap <C-k> deleteToEnd

    " the highlight color for the current find match
    let activehighlight = "#ff9632"

    " the highlight color in find mode
    let highlight = "#ffff00"

    let configpath = '/Users/dylanconlin/Dropbox/side-sites/cvim/.cvimrc'
    set localconfig " Update settings via a local file (and the `:source` command) rather
    " than the default options page in chrome
    " As long as localconfig is set in the .cvimrc file. cVim will continue to read
    " settings from there
    echo(link) -> {{
    alert(link.href);
    }}
    " Code blocks (see below for more info)
    titleAndUrl() -> {{
    alert(document.title + " - " + window.location.href)
    }}
    " Displays your public IP address in the status bar
    map ci :call titleAndUrl<CR>


    " Script hints
    echo(link) -> {{
    alert(link.href);
    }}
    map <C-r> createScriptHint(echo)

  24. dylan-conlin revised this gist Oct 21, 2016. No changes.
  25. dylan-conlin revised this gist Oct 21, 2016. 1 changed file with 6 additions and 3 deletions.
    9 changes: 6 additions & 3 deletions cVimrc
    Original file line number Diff line number Diff line change
    @@ -71,9 +71,6 @@ set noautofocus
    " use insert mappings to navigate the cursor in text boxes (see bindings below)
    set insertmappings

    " if a GitHub Gist is used to sync settings, pull updates every hour (and when Chrome restarts)
    set autoupdategist

    " Open new tabs like Chrome does rather than next to the currently opened tab
    set nonativelinkorder

    @@ -139,3 +136,9 @@ let activehighlight = "#ff9632"

    " the highlight color in find mode
    let highlight = "#ffff00"

    let configpath = '/Users/dylanconlin/Dropbox/side-sites/cvim/.cvimrc'
    set localconfig " Update settings via a local file (and the `:source` command) rather
    " than the default options page in chrome
    " As long as localconfig is set in the .cvimrc file. cVim will continue to read
    " settings from there
  26. dylan-conlin revised this gist Oct 21, 2016. No changes.
  27. dylan-conlin revised this gist Oct 21, 2016. No changes.
  28. dylan-conlin revised this gist Oct 21, 2016. 1 changed file with 5 additions and 1 deletion.
    6 changes: 5 additions & 1 deletion cVimrc
    Original file line number Diff line number Diff line change
    @@ -9,7 +9,11 @@ unmap <C-6> B b
    map b lastUsedTab
    map B createBookmark


    " Script hints
    echo(link) -> {{
    alert(link.href);
    }}
    map <C-6> createScriptHint(echo)

    site '*://*.reddit.com/*' {
    unmap j
  29. dylan-conlin revised this gist Oct 21, 2016. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions cVimrc
    Original file line number Diff line number Diff line change
    @@ -9,6 +9,8 @@ unmap <C-6> B b
    map b lastUsedTab
    map B createBookmark



    site '*://*.reddit.com/*' {
    unmap j
    unmap k
  30. dylan-conlin revised this gist Oct 21, 2016. 1 changed file with 0 additions and 3 deletions.
    3 changes: 0 additions & 3 deletions cVimrc
    Original file line number Diff line number Diff line change
    @@ -9,9 +9,6 @@ unmap <C-6> B b
    map b lastUsedTab
    map B createBookmark

    " Toggle the current HUD display value
    map <C-6> :set hud!<CR>

    site '*://*.reddit.com/*' {
    unmap j
    unmap k