Skip to content

Instantly share code, notes, and snippets.

@LBRapid
Last active January 29, 2016 23:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save LBRapid/0f5b1a2f184937f993f3 to your computer and use it in GitHub Desktop.
Save LBRapid/0f5b1a2f184937f993f3 to your computer and use it in GitHub Desktop.
My cVimrc File
" Settings
set hud
set nosmoothscroll
set noautofocus " The opposite of autofocus; this setting stops
" sites from focusing on an input box when they load
set typelinkhints
let searchlimit = 30
let scrollstep = 70
let barposition = "bottom"
set nocncpcompletion
set ignorecase
set nonumerichints
set autoupdategist
let hintcharacters = "hklyuionmwertxcvbasdgjf"
" alias ':g' to ':tabnew google'
command g tabnew google
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'
" 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 blacklists = ["*://*feedbin.com/*", "*://inbox.google.com/*"]
" blacklists prefixed by '@' act as a whitelist
" Site Specific Settings
site '*://*.wanikani.com/*' {
unmap f
unmap j
set autofocus
}
site '*://*.reddit.com/*' {
unmap j
unmap k
unmap x
unmap .
set numerichints
}
let mapleader = ","
" Mappings
map <Leader>r reloadTabUncached
map <Leader>x :restore<Space>
" 1Password
unmap <C-/>
unmap t
map tt :tabnew<Space>
map tl gt
map th gT
" 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>
" 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment