Skip to content

Instantly share code, notes, and snippets.

@bimlas
Last active February 26, 2017 22:20
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 bimlas/13177a94120b87a6dac5 to your computer and use it in GitHub Desktop.
Save bimlas/13177a94120b87a6dac5 to your computer and use it in GitHub Desktop.
cVim (Chrome Vim extension) config file
" Don't forget to start cvim_server.py
" https://github.com/1995eaton/chromium-vim/blob/master/cvim_server.py
" Remember: sync in cVim does not updates gist, but overrides local settings.
let hintcharacters = "asdfghjkluiopqwer"
set nosmoothscroll
let barposition = "bottom"
let completionengines = ["google"]
" Default Google search locale.
let locale = "hu"
" Use <C-N> and <C-P> to cycle through completion results.
" Requires you to set the nextCompletionResult keybinding in the chrome://extensions page (bottom right)
set cncpcompletion
" Disallows websites to automatically focus an input box when they are first loaded
set noautofocus
" Display the tab index in the tab’s title
set showtbindices
" Search
set regexp
set ignorecase
set smartcase
" Functions to use in mappings
" Script hints
echo(link) -> {{
alert(link.href);
}}
map <C-k> <Esc>
imap <C-k> <Esc>
map s createHint
map gs createTabbedHint
map <C-s> createScriptHint(echo)
map <Space>ff :open<Space>
map <Space>ft :tabnew<Space>
map <C-l> :nohlsearch<CR>
map <C-u> scrollPageUp
map <C-d> scrollPageDown
map <C-e> nextTab
map <C-y> previousTab
imap <C-i> editWithVim
" Text Area
" iunmapAll
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment