Skip to content

Instantly share code, notes, and snippets.

@pddg
Last active October 13, 2018 07:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pddg/004f2089b5210f3581ceb9b91be1d776 to your computer and use it in GitHub Desktop.
Save pddg/004f2089b5210f3581ceb9b91be1d776 to your computer and use it in GitHub Desktop.
cVim configurations
set noautofocus
set smoothscroll
set typelinkhints
let searchlimit = 30
let scrollstep = 100
set nativelinkorder
" set showtabindices
set completeonopen
let locale = "jp"
let mapleader = ","
command g tabnew google
let completionengines = ["google", "amazonjp"]
let searchengine amazonjp = "https://www.amazon.co.jp/s/&field-keywords=%s"
let searchalias g = "google"
let searchalias a = "amazonjp"
let barposition = "bottom"
let hintcharacters = "asdfghjklqwertyuiop"
let qmark m = ["https://inbox.google.com/u/0/?cid=imp"]
unmap J
map J nextTab
unmap K
map K previousTab
let blacklists = ["https://inbox.google.com/*"]
iunmapAll
" yank '%title% - %url%'
copyTitleUrl() -> {{
RUNTIME('getRootUrl', function(url) {
let ret = document.title + " - " + url;
Clipboard.copy(ret);
Status.setMessage(ret, 2);
});
}}
map yt :call copyTitleUrl<CR>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment