Skip to content

Instantly share code, notes, and snippets.

@cjk
Last active October 14, 2015 12:39
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 cjk/83658be1e3eb5f112b40 to your computer and use it in GitHub Desktop.
Save cjk/83658be1e3eb5f112b40 to your computer and use it in GitHub Desktop.
" Settings
set noautofocus
set cncpcompletion
set nosmoothscroll
set nohud
set autohidecursor
set typelinkhints
let scrollduration = 10
let searchlimit = 40
let searchengine mdn = "https://developer.mozilla.org/en-US/search?q="
let searchengine stackoverflow = "http://stackoverflow.com/search?q="
let searchalias s = "stackoverflow"
let searchalias g = "google"
let qmark a = ["http://www.reddit.com/r/learnjavascript/new", "http://www.reddit.com/r/learnprogramming/new"]
let qmark b = ["http://www.reddit.com/", "https://github.com/", "https://mail.google.com/mail/u/0/?shva=1#inbox", "https://news.ycombinator.com/"]
let vimcommand = 'emacsclient'
let blacklists = ["http://hellorun.helloenjoy.com/*","http://crypt-webgl.unigine.com/*"]
let completionengines = ["google", "amazon", "imdb", "duckduckgo"]
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 searchalias d = "duckduckgo"
" Custom commands
command g tabnew google
command d tabnew duckduckgo
" Mappings
imap <C-o> editWithVim
unmap a
map as :tabopen github @cjk/
map <C-d> scrollDown
map <C-e> scrollUp
map <A-r> nextTab
map <A-e> previousTab
map <A-y> lastUsedTab
map <A-n> nextMatchPattern
map <A-p> previousMatchPattern
map <C-f> :file /home/cjk/
map <C-s> openLastHint
map <C-Space> :execute gfgf<CR>
map <C-g> :set smoothscroll!<CR>
map <C-u> rootFrame
map <C-h> :set hud!<CR>
map gb :buffers<Space>
map aa :tabopen g<Space>
map W l
map Q h
map af F
map <S-Space> h
map ad z<Enter>
map T :tabopen<CR>
map , :set numerichints!<CR>
map ga :settings<CR>
map ? openLinkSearchBar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment