Last active
September 19, 2017 09:22
-
-
Save iberianpig/2a08879896efa4b59c9f to your computer and use it in GitHub Desktop.
cvimrc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" Settings | |
set hud | |
set smoothscroll | |
"set noautofocus "The opposite of autofocus; this setting stops sites from focusing on an input box when they load | |
set typelinkhints | |
"chrome://extensions --> shortcut --> set ctrl+n as cvim's shortcut | |
set cncpcompletion | |
let searchlimit = 30 | |
let scrollstep = 150 | |
let barposition = "top" | |
let locale = "jp" "Current choices are 'jp' and 'uk'. This allows cVim to use sites like google.co.uk or google.co.jp to search rather than google.com. Support is currently very limited. Let me know if you need a different locale for one of the completion/search engines | |
"let searchengine dogpile = "http://www.dogpile.com/search/web?q=%s" "If you leave out the '%s' at the end of the URL, your query will be appended to the link. Otherwise, your query will replace the '%s'. | |
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/*","http://www.e-typing.ne.jp/*","https://cacoo.com/*","http://www.mindmeister.com/*","http://typing.lk/*","https://docs.google.com/*","https://tweetdeck.twitter.com/*","https://tinycards.duolingo.com/*"] | |
let mapleader = "," | |
" Mappings | |
map <Leader>r reloadTabUncached | |
map <Leader>x :restore<Space> | |
map i gi | |
map gb :buffer<Space> "You can use <Space>, which is interpreted as a literal " " character, to enter buffer completion mode | |
"map f F "This remaps the default 'f' mapping to the current 'F' mapping | |
map <C-h> :set hud!<CR> "Toggle the current HUD display value | |
map <C-i> :set numerichints!<CR> "Switch between alphabetical hint characters and numeric hints | |
unmap <C-d> | |
unmap <C-u> | |
map G scrollToBottom | |
iunmap <C-y> | |
imap <C-m> <Enter> | |
imap <C-h> deleteChar | |
imap <C-d> deleteForwardChar | |
imap <C-u> deleteToBeginning | |
unmap <C-k> | |
imap <C-k> deleteToEnd | |
map X :execute gTx<CR> "Close the current tab and move to the one before it | |
map ; : | |
unmap d | |
map <Delete> scrollPageDown | |
map <S-Home><Delete> scrollPageUp | |
" 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 | |
let qmark f = ["http://cloud.feedly.com/#latest"] | |
let qmark p = ["http://getpocket.com/a/queue/"] | |
let qmark g = ["http://github.com/iberianpig"] | |
let qmark c = ["http://github.com/iberianpig"] | |
" let configpath = '/home/iberianpig/.cvimrc' | |
" set localconfig " Update settings via a local file (and the `:source` command) rather | |
" than the default options page in chrome | |
" As long as localconfig is set in the .cvimrc file. cVim will continue to read | |
" settings from there |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment