Skip to content

Instantly share code, notes, and snippets.

@KenshoFujisaki
Last active September 22, 2019 04:25
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 KenshoFujisaki/83bd303cd8ef58266b54f5dc307d1a43 to your computer and use it in GitHub Desktop.
Save KenshoFujisaki/83bd303cd8ef58266b54f5dc307d1a43 to your computer and use it in GitHub Desktop.
cVimrc
"ref: https://rcmdnk.com/blog/2014/10/22/computer-firefox/
"ref: https://fewlight.net/20151023/
"Settings
let scrolltep = 200
let fullpagescrollpercent = 100
"set nohud
"set autohidecursor
"set noinsertmappings
set nosmoothscroll
let blacklists = ["https://mail.google.com/*"]
let mapleader = ","
"let locale = "jp"
let hintcharacters = "hjklasdfgyuiopqwertnmzxcvb"
let barposition = "bottom"
set autoupdategist
" qmarks
" google mail/task/calendar
let qmark m = ["https://mail.google.com"]
let qmark t = ["https://mail.google.com/tasks/canvas"]
let qmark c = ["https://www.google.com/calendar"]
" google translator en/ja/language tool
let qmark e = ["javascript:var%20t=((window.getSelection&&window.getSelection())%7C%7C(document.getSelection&&document.getSelection())%7C%7C(document.selection&&document.selection.createRange&&document.selection.createRange().text));var%20e=(document.charset%7C%7Cdocument.characterSet);if(t!='')%7Blocation.href='http://translate.google.com/translate_t?text='+t+'&hl=ja&langpair=auto%7Cen&tbb=1&ie='+e;%7Delse%7Blocation.href='http://translate.google.com/translate?u='+escape(location.href)+'&hl=ja&langpair=auto%7Cen&tbb=1&ie='+e;%7D;"]
let qmark j = ["javascript:var%20t=((window.getSelection&&window.getSelection())%7C%7C(document.getSelection&&document.getSelection())%7C%7C(document.selection&&document.selection.createRange&&document.selection.createRange().text));var%20e=(document.charset%7C%7Cdocument.characterSet);if(t!='')%7Blocation.href='http://translate.google.com/?text='+t+'&hl=ja&langpair=auto%7Cja&tbb=1&ie='+e;%7Delse%7Blocation.href='http://translate.google.com/translate?u='+encodeURIComponent(location.href)+'&hl=ja&langpair=auto%7Cja&tbb=1&ie='+e;%7D;"]
let qmark l = ["http://www.google.com/language_tools"]
" Feedly/Pocket/GitHub/Hatena
let qmark f = ["http://cloud.feedly.com/#latest"]
let qmark p = ["http://getpocket.com/a/queue/"]
let qmark g = ["http://github.com/KenshoFujisaki"]
let qmark h = ["http://b.hatena.ne.jp/"]
" Move
map <C-h> scrollLeft
map <C-j> scrollDown
map <C-k> scrollUp
map <C-l> scrollRight
map <C-u> scrollPageUp
map <C-d> scrollPageDown
map <C-b> scrollFullPageUp
map <C-f> scrollFullPageDown
" Navigation
map d closeTab
map u lastClosedTab
map <C-p> previousTab
map <C-n> nextTab
map <C-i> goForward
map <C-o> goBack
map :wo :new<Space>
map ;wo :new<Space>
map R reloadTabUncached
map s :tabnew<Space>google<Space>
" Want to make a key to yank current selected word and search it...
"map <C-g> :execute vlhyP<CR>
" Currently, ":" doesn't shows command line.
" Need at least one charactor (use <Space> here)
map ; :<Space>
" Text boxes
iunmapAll
" [[ / ]]
let previousmatchpattern = '((?!last)(prev(ious)?|newer|back|less|<|‹|«|←|前へ|前のページ| )+)'
let nextmatchpattern = '((?!first)(next|older|more|forward|>|›|»|→|次へ|次のページ| )+)'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment