Skip to content

Instantly share code, notes, and snippets.

@amosbird
Last active February 15, 2017 03:29
Show Gist options
  • Save amosbird/a96956778a8aaba0171d39f2d041286a to your computer and use it in GitHub Desktop.
Save amosbird/a96956778a8aaba0171d39f2d041286a to your computer and use it in GitHub Desktop.
cvimrc
set nosmoothscroll
set noautofocus
" set debugcss
" set cncpcompletion
" set nohud
" set nodimhintcharacters
" set typelinkhints
let mapleader = ';'
let searchlimit = 25
let completionengines = ['google', 'wikipedia', 'imdb', 'amazon']
let nextmatchpattern = "((?!first)(next|older|more|>|›|»|forward|下一页|下页|后页|后一页|)+)"
fixChromiumWikiBug -> {{
[].slice.call(document.querySelectorAll('*[accesskey]')).forEach(function(e) {
e.removeAttribute('accesskey');
});
}}
site '*://*/*' {
call fixChromiumWikiBug
}
site '*://*.netflix.com/watch*' {
unmap <Space> f
}
let hintcharacters = 'sfgjkcvbnwerio'
unmapAll
map t :tabnew<space>
map T :tabnew @%
map o :open<space>
map O :open @%
map / openSearchBar
map ? openSearchBarReverse
map n nextSearchResult
map N previousSearchResult
map <C-d> scrollPageDown
map <C-u> scrollPageUp
map f createHint
map F createTabbedHint
map p openPasteTab
map j scrollDown
map k scrollUp
map y yankDocumentUrl
map gg scrollToTop
map G scrollToBottom
map gi goToInput
map gI goToLastInput
map <C-f> nextMatchPattern
iunmapAll
imap <C-n> <Tab>
imap <C-p> <S-Tab>
imap <C-a> beginningOfLine
imap <C-u> deleteToBeginning
imap <C-k> deleteToEnd
imap <C-w> deleteWord
imap <M-d> deleteForwardWord
imap <C-h> deleteChar
imap <C-m> <Enter>
imap <M-b> backwordWord
imap <C-d> deleteForwardChar
imap <M-f> forwardWord
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment