Skip to content

Instantly share code, notes, and snippets.

@laprasdrum
Last active November 1, 2023 23:29
Show Gist options
  • Save laprasdrum/22f273af73e20f993a83 to your computer and use it in GitHub Desktop.
Save laprasdrum/22f273af73e20f993a83 to your computer and use it in GitHub Desktop.
"Settings
let scrolltep = 60
let fullpagescrollpercent = 100
"set nohud
set autohidecursor
"set noinsertmappings
set nosmoothscroll
let blacklists = ["https://app.gather.town/*", "https://editor.note.com/*", "https://www.notion.so/*", "https://drive.mindmup.com/*", "https://app.clubhouse.io/*", "https://app.clickup.com/*", "https://app.classdo.com/*", "https://*.typeform.com/*", "https://magic-pod.com/*", "https://miro.com/app/*", "https://web.omnifocus.com/*", "https://developer.apple.com/*", "https://*.youtube.com/*", "https://*.1password.com", "https://*.slack.com/*", "https://kanbanflow.com/*", "https://trello.com/*", "https://workflowy.com/*", "https://app.zeplin.io/*", "https://*.google.com/*", "https://*classdo.*/*"]
let mapleader = ","
"let locale = "jp"
let hintcharacters = "hjklasdfgyuiopqwertnmzxcvb"
let barposition = "bottom"
set autoupdategist
" qmarks
" google mail/task/calendar
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"]
let qmark g = ["http://github.com/laprasdrum"]
" 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 u lastClosedTab
map l goForward
map h goBack
map <C-p> previousTab
map <C-n> nextTab
map <C-i> goForward
map <C-o> goBack
map w :new<Space>
map <C-w> :new<Space>@%
map R reloadTabUncached
" 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment