Last active
April 20, 2021 13:40
-
-
Save nozma/c0417ffae4aeff5ff76ba6538e51f76a to your computer and use it in GitHub Desktop.
This file contains 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
" general | |
set autoupdategist " gistの設定を自動反映 | |
let scrollstep = 150 | |
let fullpagescrollpercent = 100 | |
set smoothscroll | |
set noautofocus " サイトを開いた時に入力欄にフォーカスが奪われるのを抑止 | |
let searchlimit = 20 | |
let barposition = "bottom" | |
let locale = "jp" | |
let mapleader = "," | |
" navigation | |
let hintcharacters = "asdfjkl" | |
" 検索エンジン関係の設定 | |
" completionengines | |
let completionengines = ["google"] | |
" defaultengine | |
let defaultengine = "google.co.jp" | |
" Amazon jp | |
let searchengine nb_sb_noss_2 = "https://www.amazon.co.jp/s/ref=nb_sb_noss_2?__mk_ja_JP=%s&url=search-alias%3Daps&field-keywords=%s&emi=AN1VRQENFRJN5" | |
let searchalias amazon = "nb_sb_noss_2" | |
" Wikipedia jp | |
let searchengine wiki = "https://ja.wikipedia.org/wiki/%s" | |
" key mappings | |
map h previousTab | |
map l nextTab | |
map d closeTab | |
map u lastClosedTab | |
iunmapAll " 入力欄内でのキーバインド無効化 | |
" qmark | |
" let qmark l = ["http://reader.aol.com/#category/Subscriptions"] | |
let qmark l = ["https://irodr.netlify.com/"] | |
let qmark m = ["https://mail.google.com/mail/u/0/"] | |
let qmark M = ["https://moneyforward.com/"] | |
let qmark t = ["https://twitter.com/"] | |
let qmark T = ["https://www.tumblr.com/dashboard"] | |
let qmark B = ["https://bookmeter.com/home"] | |
let qmark b = ["http://b.hatena.ne.jp/Rion778/hotentry"] | |
let qmark d = ["http://rion778.hatenablog.com/"] | |
let qmark g = ["https://gist.github.com"] | |
let qmark G = ["https://github.com/nozma"] | |
let qmark c = ["https://gist.github.com/nozma/c0417ffae4aeff5ff76ba6538e51f76a/edit"] | |
let qmark q = ["https://www.tumblr.com/blog/nozma-books/new/quote"] | |
let qmark s = ["https://scrapbox.io/"] | |
let qmark w = ["https://healthmate.withings.com/"] | |
" site specific | |
site 'http://reader.aol.com/*' { | |
set numerichints | |
unmap j k J K v V | |
} | |
site 'https://mail.google.com/*' { | |
set numerichints | |
unmap j k J K ? x I u n p e v | |
} | |
site 'https://paiza.io/*' { | |
set numerichints | |
iunmap <C-n> <C-p> <C-a> <C-e> <C-f> <C-b> <C-k> <C-y> <C-z> <C-v> | |
} | |
site 'https://feedly.com/*' { | |
set numerichints | |
unmap gm gg ga gl " 現状g*は効かない。Insertモード有効にすると効く。 | |
unmap j J k K n p v V o m M x s f c | |
} | |
site 'https://irodr.netlify.com/*' { | |
set numerichints | |
unmap gm gg ga gl | |
unmap j J k K n p v V o m M x s f c | |
} | |
let blacklists = ["http://localhost/*"] | |
" copy.js like command | |
" yank '%url%' | |
copyUrl() -> {{ | |
RUNTIME('getRootUrl', function(url) { | |
let ret = url; | |
Clipboard.copy(ret); | |
Status.setMessage(ret, 2); | |
}); | |
}} | |
map <Leader>u :call copyUrl<CR> | |
" yank '%title% - %url%' | |
copyTitleUrl() -> {{ | |
RUNTIME('getRootUrl', function(url) { | |
let ret = document.title + " - " + url; | |
Clipboard.copy(ret); | |
Status.setMessage(ret, 2); | |
}); | |
}} | |
map <Leader>c :call copyTitleUrl<CR> | |
" markdown style | |
copyTitleUrlM() -> {{ | |
RUNTIME('getRootUrl', function(url) { | |
let ret = "[" + document.title + "](" + url + ")"; | |
Clipboard.copy(ret); | |
Status.setMessage(ret, 2); | |
}); | |
}} | |
map <Leader>m :call copyTitleUrlM<CR> | |
" chatwork style | |
copyTitleUrlC() -> {{ | |
RUNTIME('getRootUrl', function(url) { | |
let ret = "[info][title]" + document.title + "[/title]" + url + "[/info]"; | |
Clipboard.copy(ret); | |
Status.setMessage(ret, 2); | |
}); | |
}} | |
map <Leader>C :call copyTitleUrlC<CR> | |
" scrapbox style | |
copyTitleUrlS() -> {{ | |
RUNTIME('getRootUrl', function(url) { | |
let ret = "[" + document.title + " " + url + "]"; | |
Clipboard.copy(ret); | |
Status.setMessage(ret, 2); | |
}); | |
}} | |
map <Leader>s :call copyTitleUrlS<CR> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment