Skip to content

Instantly share code, notes, and snippets.

@dmitriyK1
Last active September 18, 2016 20:20
Show Gist options
  • Save dmitriyK1/108fc2a1c01cc56b3b44beb1645276bb to your computer and use it in GitHub Desktop.
Save dmitriyK1/108fc2a1c01cc56b3b44beb1645276bb to your computer and use it in GitHub Desktop.
cvimrc
set nocncpcompletion
set nosmoothscroll
set nohud
set noregex
set noinsertmappings
set noautoupdategist
set nochangelog
set typelinkhints
set defaultnewtabpage
let scrollduration = 10
let searchlimit = 40
let searchalias g = "google"
let mapleader = ","
let barposition = "top"
let typelinkhintsdelay = 0
let hintcharacters = "fdsawerjkiop"
let locale = "jp"
let blacklists = ["*://*/*.pdf", "chrome://*", "https://mail.google.com/*", "https://www.google.com/calendar/*"]
site 'https://www.google.co.jp/*' {
unmap j
unmap k
}
site 'https://www.tumblr.com/*' {
unmap j
unmap k
unmap r
unmap l
}
site 'https://github.com/*' {
unmap l
}
site 'https://tweetdeck.twitter.com/*' {
unmap n
unmap s
}
site 'https://calendar.sunrise.am/*' {
call :pintab
}
map ; openCommandBar
map K nextTab
map J previousTab
" map <C-l> nextTab
" map <C-h> previousTab
map <C-f> scrollFullPageDown
map <C-b> scrollFullPageUp
map s :open google<Space>
map S :open! google<Space>
map i goToInput
map u lastClosedTab
map B :bookmarks!<Space>
map t :tabnew<CR>
map F createActiveTabbedHint
map <Leader>cl :open! chrome://chrome/settings/clearBrowserData<CR>
map <Leader>ex :open! chrome://extensions<CR>
map <Leader>gh :open! https://github.com/calorie<CR>
map <Leader>Gh :open https://github.com/calorie<CR>
map <Leader>gi :open! https://gist.github.com/calorie<CR>
map <Leader>Gi :open https://gist.github.com/calorie<CR>
map <Leader>tw :open! http://twitter.com<CR>
map <Leader>Tw :open http://twitter.com<CR>
map <Leader>td :open! https://tweetdeck.twitter.com<CR>
map <Leader>Td :open https://tweetdeck.twitter.com<CR>
map <Leader>gm :open! https://mail.google.com/mail/#index<CR>
map <Leader>Gm :open https://mail.google.com/mail/#index<CR>
map <Leader>so :open! http://stackoverflow.com<CR>
map <Leader>So :open http://stackoverflow.com<CR>
map <Leader>tu :open! http://www.tumblr.com/dashboard<CR>
map <Leader>Tu :open http://www.tumblr.com/dashboard<CR>
map <Leader>nf :open! https://mail.nifty.com/mailer<CR>
map <Leader>Nf :open https://mail.nifty.com/mailer<CR>
map <Leader>nc :open! http://www.nicovideo.jp<CR>
map <Leader>Nc :open http://www.nicovideo.jp<CR>
map <Leader>fb :open! http://www.facebook.com<CR>
map <Leader>Fb :open http://www.facebook.com<CR>
map <Leader>qi :open! http://qiita.com<CR>
map <Leader>Qi :open http://qiita.com<CR>
map <Leader>jo :open! http://www.jorudan.co.jp<CR>
map <Leader>Jo :open http://www.jorudan.co.jp<CR>
map <Leader>su :open! https://calendar.sunrise.am<CR>
map <Leader>Su :open https://calendar.sunrise.am<CR>
map <Leader>yo :open! https://www.youtube.com<CR>
map <Leader>Yo :open https://www.youtube.com<CR>
" ==================================================================================================================
" Settings
set nohud
" set nosmoothscroll
" set noautofocus "The opposite of autofocus; this setting stops sites from focusing on an input box when they load
set typelinkhints
set cncpcompletion
let searchlimit = 30
let scrollstep = 70
let barposition = "bottom"
let locale = "jp"
" let hintcharacters = ";HKLYUIONM,WERTXCVBASDGJF"
let hintcharacters = "hklyuionmwertxcvbasdgjf"
let completionengines = ["google", "amazon", "imdb", "dogpile"]
let searchalias g = "google" "Create a shortcut for search engines. For example, typing ':tabnew g example' would act the same way as ':tabnew google example'
let qmark a = ["http://www.reddit.com", "http://www.google.com", "http://twitter.com"] "Open all of these in a tab with `gnb` or open one of these with <N>goa where <N>
" let blacklists = ["https://mail.google.com/*", "*://*.reddit.com/*"]
let mapleader = ","
" Mappings
map <Leader>r reloadTabUncached
map <Leader>x :restore<Space>
map gb :buffer<Space>
map <C-h> :set hud!<CR>
map <C-i> :set numerichints!<CR>
map <C-u> rootFrame
map d x
unmap t
map tt :tabnew<Space>
map tl gt
map th gT
" Insert mode
imap <C-a> beginningOfLine
imap <C-e> endOfLine
imap <C-u> deleteToBeginning
imap <C-k> deleteToEnd
imap <C-w> deleteWord
imap <C-f> forwardChar
imap <C-b> backwardChar
map <C-n> nextCompletionResult
imap <C-n> nextCompletionResult
" cmap <C-n> nextCompletionResult
map u lastClosedTab
" ==================================================================================================
set autoupdategist
set noautofocus
set nocncpcompletion
set smoothscroll
set hud
set noregex
set noinsertmappings
set typelinkhints
set defaultnewtabpage
let scrollduration = 10
let searchlimit = 40
let searchalias g = "google"
let mapleader = "\\"
let barposition = "bottom"
let typelinkhintsdelay = "0"
let hintcharacters = "fdsawerjkiop"
"----- DEFAULT VARS ------
let scrollstep = 90
let scrollduration = 30
set autoupdategist
"----- SEARCH ENGINES -----
" github
let searchengine git = "https://github.com/search?q=%s"
" GSM Arena
let searchengine gsm = "http://www.gsmarena.com/results.php3?sQuickSearch=yes&sName=%s"
" MVN Central Repository
let searchengine mvn = "http://mvnrepository.com/search.html?query=%s"
" youtube2mp3
let searchengine ymp3 = "http://youtubeinmp3.com/download/?video=%s"
" scholar
let searchengine sc = "http://scholar.google.com.br/scholar?hl=pt-BR&q=%s"
" dblp
let searchengine dblp = "http://dblp.uni-trier.de/search?q=%s"
" dic
let searchengine dic = "http://www.thefreedictionary.com/%s"
" btr
let searchengine btr = "http://www.bing.com/translator/?text=%s"
" yt
let searchengine yt = "https://www.youtube.com/results?search_query=%s"
let blacklists = [
\"https://mail.google.com/*", "https://mail.google.com/*", "*://mail.google.com/*",
\"*://mail.google.com/*",
\"*://docs.google.com/*",
\"https://drive.google.com/*",
\"*://bitbucket.org/*",
\"*://netflix.com/*",
\"https://web.whatsapp.com/*",
\"https://www.duolingo.com/*"
\]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment