Skip to content

Instantly share code, notes, and snippets.

@ppwwyyxx
Created April 17, 2016 16:55
Show Gist options
  • Save ppwwyyxx/26d8fc93f5abaa60cedb72cca4bea5a8 to your computer and use it in GitHub Desktop.
Save ppwwyyxx/26d8fc93f5abaa60cedb72cca4bea5a8 to your computer and use it in GitHub Desktop.
set scalehints
set noautofocus
set showtabindices
"set defaultnewtabpage
let mapleader = ","
let highlight = '#d28ce3'
let activehighlight = '#0ff3db'
let qmark g = ["http://google.com"]
let blacklists = ["*://mail.google.com/*"]
map gm :tabnew mail.google.com&<CR>
let barposition = "bottom"
let nextmatchpattern = "((?!first)(next|more|>|›|»|forward|后页|下一页)+)"
map <Space> :buffer<Space>
map K previousTab
map J nextTab
" insert maps
iunmapAll
imap <C-l> forwardChar
imap <C-h> backwardChar
imap <C-f> forwardWord
imap <C-b> backwardWord
imap <C-o> editWithVim
imap <C-j> forwardLine
imap <C-k> backwardLine
site '*://groups.google.com/*' {
unmapAll
map : openCommandBar
map / openSearchBar
map N nextSearchResult
map <C-v> toggleVisualMode
}
site '*://www.google.com/calendar/*' {
unmapAll
map : openCommandBar
map / openSearchBar
map N nextSearchResult
map <C-v> toggleVisualMode
}
site '*://www.youtube.com/*' {
unmapAll
map : openCommandBar
map / openSearchBar
map N nextSearchResult
map <C-v> toggleVisualMode
}
"let configpath = '/home/wyx/.cvimrc'
"set localconfig
" gy copy URL from link to clipboard
" I search through browser history
" z<Enter> toggle image zoom (same as clicking the image on image-only pages)
" gu go up one path in the URL
" gU go to to the base URL
" gx0/$ close all tabs to the left/right of the current tab
" gxt/T
" < move current tab left
" ]] click the "next" link on the page (see nextmatchpattern above)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment