Last active
February 5, 2019 06:51
-
-
Save paulvictor/cdfb637c6e80fb234a4fc7f75e05e739 to your computer and use it in GitHub Desktop.
My temporary cvimrc
This file contains 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
set nohud | |
set smoothscroll | |
"set noautofocus " The opposite of autofocus; this setting stops | |
" sites from focusing on an input box when they load | |
set typelinkhints | |
set dimhintcharacters | |
let scrollstep = 70 | |
let zoomfactor = 0.1 | |
let scrollduration = 350 | |
let searchlimit = 500 | |
"let barposition = "bottom" | |
set linkanimations | |
"set autoupdategist | |
set completeonopen | |
set scalehints | |
set nodefaultnewtabpage | |
let completionengines = ["google"] | |
let hintcharacters = "asdfghjklzxcvbnm;" | |
set completeonopen | |
let vimcommand = "nvim" | |
" alias ':g' to ':tabnew google' | |
command g tabnew google | |
"let completionengines = ["google", "amazon", "imdb", "dogpile"] | |
" Open all of these in a tab with `gnb` or open one of these with <N>goa where <N> | |
let qmark a = ["http://www.reddit.com", "http://www.google.com", "http://twitter.com"] | |
let mapleader = "," | |
" Mappings | |
map R reloadTabUncached | |
map <C-d> scrollPageDown | |
map <C-u> scrollPageUp | |
" Code blocks (see below for more info) | |
getIP() -> {{ | |
httpRequest({url: 'http://api.ipify.org/?format=json', json: true}, | |
function(res) { Status.setMessage('IP: ' + res.ip); }); | |
}} | |
" Displays your public IP address in the status bar | |
map ci :call getIP<CR> | |
" Script hints | |
echo(link) -> {{ | |
alert(link.href); | |
}} | |
map <C-f> createScriptHint(echo) | |
"Editing | |
map af createActiveTabbedHint | |
map gS :viewsource&<CR> | |
map gq :restore<Space> | |
map a<Space> z<Enter> | |
map <C-e> z<Enter> | |
map <F2> nextTab | |
map <F1> previousTab | |
map <Leader>r :chrome://restart<CR> | |
map <ESC> resetScrollFocus | |
map d closeTab | |
map <Leader>s :tabnew google<Space> | |
map b :buffer<Space> | |
map 0 :tabnew https://pursuit.purescript.org/search?q= | |
map = :tabnew https://www.haskell.org/hoogle/?hoogle= | |
let searchengine lucky = "http://www.google.com/search?btnI=I%27m+Feeling+Lucky&q=%s" | |
map . :tabnew http://www.google.com/search?btnI=I%27m+Feeling+Lucky&q= | |
map <leader>g :tabopen https://mail.google.com/mail/u/0/#inbox<CR> | |
map <leader>o :tabopen https://mail.google.com/mail/u/1/#inbox<CR> | |
map <leader>i :tabopen https://news18.com<CR> | |
map <leader>y :tabopen https://news.ycombinator.com<CR> | |
map ;; resetScrollFocus | |
map R reloadTabUncached | |
map u :restore<Space> | |
"map td :tabdetach | |
"map ta :tabattach | |
map <leader>d :tabopen chrome://downloads<CR> | |
"noremap <silent> <S-Right> :tabmove! +1<CR> | |
"noremap <silent> <S-Left> :tabmove! -1<CR> | |
"noremap <silent> x d | |
"noremap <silent> ,d :tabopen about:downloads<CR> | |
"new configs | |
"set regexp | |
set smartcase | |
set incsearch | |
set autofocus | |
set autoupdategist | |
set showtabindices | |
set dimhintcharacters | |
"let defaultengine = lucky | |
"command s tabnew google | |
let searchalias g = "google" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment