Skip to content

Instantly share code, notes, and snippets.

@saulhoward
Last active April 4, 2016 14:54
Show Gist options
  • Save saulhoward/498ec292806ac21d4f4501c5ede5117b to your computer and use it in GitHub Desktop.
Save saulhoward/498ec292806ac21d4f4501c5ede5117b to your computer and use it in GitHub Desktop.
cVim settings
" 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
let searchlimit = 30
let scrollstep = 70
let barposition = "bottom"
let locale = "uk" " 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 limited.
" Let me know if you need a different locale for one of the completion/search engines
let hintcharacters = "abc123"
" 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 = ["https://mail.google.com/*", "*://mail.google.com/*", "@https://mail.google.com/mail/*"]
" blacklists prefixed by '@' act as a whitelist
let mapleader = ","
" Mappings
map <Leader>r reloadTabUncached
map <Leader>x :restore<Space>
" This remaps the default 'j' mapping
"map j scrollUp
" You can use <Space>, which is interpreted as a
" literal " " character, to enter buffer completion mode
"map gb :buffer<Space>
" This unmaps the default 'k' mapping
"unmap k
" This unmaps the default 'h', 'j', 'k', and 'l' mappings
"unmap h j k l
" This remaps the default 'f' mapping to the current 'F' mapping
"map f F
" Toggle the current HUD display value
"map <C-h> :set hud!<CR>
" Switch between alphabetical hint characters and numeric hints
"map <C-i> :set numerichints!<CR>
"map <C-u> rootFrame
"map <M-h> previousTab
"map <C-d> scrollPageDown
"map <C-e> scrollPageUp
"iunmap <C-y>
"imap <C-m> deleteWord
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment