Last active
June 15, 2019 03:24
-
-
Save whitelynx/589967607a7fe5941cb10993dd87a284 to your computer and use it in GitHub Desktop.
cVim configuration
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 defaultnewtabpage | |
let barposition = "bottom" | |
let completionengines = ["duckduckgo", "wikipedia", "google", "google-images", "youtube"] | |
let defaultengine = "duckduckgo" | |
let blacklists = ["https://mail.google.com/*", "https://inbox.google.com/*", "http*://trello.com/*", "http*://checkvist.com/*", "http*://gingkoapp.com/*"] | |
"let hintcharacters = "ueoaihtnsdkjq;xmwvzbp.,'ygcrlf" | |
"let hintcharacters = "ueoaikjq;xp.,'yhtnsdmwvzbgcrlf" | |
"let hintcharacters = "ueoakjq;p.e,'ixyhtnsmwvzgcrldbf" | |
let hintcharacters = "ueoakjqpeixyhtnsmwvzgcrldbf" | |
let mapleader = "," | |
let searchalias g = "google" | |
let searchalias d = "duckduckgo" | |
let searchalias ddg = "duckduckgo" | |
let searchalias w = "wikipedia" | |
let searchalias wp = "wikipedia" | |
let searchalias wiki = "wikipedia" | |
downloadURL(link) -> {{ | |
chrome.downloads.download({ url: link, conflictAction: "uniquify" }, function(downloadID) { | |
if(downloadID === undefined) { | |
Status.setMessage('Download error: ' + runtime.lastError); | |
} | |
}); | |
}} | |
unmap <C-x> | |
unmap <C-c> | |
unmap <C-6> | |
unmap <C-f> | |
unmap x | |
unmap mf | |
unmap mr | |
unmap my | |
map <BS> <Nop> | |
map a :tabnew<Space> | |
map A :tabnew @% | |
map <Leader>a :tabnew&<Space> | |
map <Leader>A :tabnew& @% | |
map <Leader>. :duplicate&<CR> | |
map <Leader>f createActiveTabbedHint | |
map <Leader>F createScriptHint(downloadURL) | |
map <Leader>r reloadTabUncached | |
map <Leader>b :buffer<Space> | |
map <Leader>d :chrome://downloads<CR> | |
map <Leader>s :chrome://settings<CR> | |
map <Leader>m createBookmark | |
map <Leader>p pinTab | |
map ! cancelWebRequest | |
map g! cancelAllWebRequests | |
map t scrollDown | |
map T scrollPageDown | |
map n scrollUp | |
map N scrollPageUp | |
map s scrollRight | |
map S goForward | |
map l nextSearchResult | |
map L previousSearchResult | |
map <C-o> previousTab | |
map <C-u> nextTab | |
map <C-1> :buffer 1<CR> | |
map <C-2> :buffer 2<CR> | |
map <C-3> :buffer 3<CR> | |
map <C-4> :buffer 4<CR> | |
map <C-5> :buffer 5<CR> | |
map <C-6> :buffer 6<CR> | |
map <C-7> :buffer 7<CR> | |
map <C-8> :buffer 8<CR> | |
map <C-9> :buffer 9<CR> | |
map <C-0> lastTab | |
map d closeTab | |
map u lastClosedTab | |
map U :restore<Space> | |
" Needed for Mac: | |
map <C-t> :set nativelinkorder | tabnew | set nonativelinkorder<CR> | |
map <C-n> :new<CR> | |
map <C-r> reloadTab | |
map <C-R> reloadTabUncached | |
map m setMark | |
map M muteTab | |
map z1 zoomOrig | |
" Enters hint mode, and copies the selected link's URL. | |
map yf yankUrl | |
"map <C-t> nextFrame | |
imap <C-a> selectAll | |
imap <C-k> deleteToEnd | |
imap <C-BS> deleteWord | |
imap <C-Del> deleteForwardWord | |
imap <Home> beginningOfLine | |
imap <End> endOfLine | |
imap <C-Left> backwardWord | |
imap <C-Right> forwardWord | |
imap <C-e> editWithVim |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment