Skip to content

Instantly share code, notes, and snippets.

@aculich
Last active June 1, 2020 07:26
Show Gist options
  • Select an option

  • Save aculich/8747b4cc6c7552ea1478ef369e22071b to your computer and use it in GitHub Desktop.

Select an option

Save aculich/8747b4cc6c7552ea1478ef369e22071b to your computer and use it in GitHub Desktop.
CVim (vb4c) configuration that makes me happy because it fits my working style
" NOTE: double-quotes are, for some unknown reason,
" a comment character in this configuration language!
let mapleader = ','
set showtabindices
set completeonopen
set hud
set linkanimations
set cncpcompletion
set incsearch
set noautofocus
set nosmoothscroll
set regexp
set smartcase
set dimhintcharacters
set numerichints
set scalehints
set typelinkhints
" set numerichints
" set typelinkhints
" set sortlinkhints
" map F createHint
" map f createTabbedHint
" map i createHint
" map I insertMode
map <C-f> createMultiHint
imap <A-;> beginningOfLine
imap <A-'> endOfLine "'
imap <A-\> deleteToBeginning
imap <A-]> deleteForwardWord
imap <A-[> deleteWord
map <Leader>P :togglepin<CR>
map <Leader>D :chrome! downloads<CR>
map <Leader>s :settings<CR>
map <Leader>S :open! chrome://settings<CR>
map <Leader>e :open! chrome://extensions<CR>
map <Leader>d :duplicate<CR>
map <Leader>h :history!<Space>
map <Leader>g :open! google<CR>
map <Leader>c clearSearchHighlight
map <Leader>p openPasteTab
map <Leader>, :tabattach<Space>
map <Leader>. :tabdetach<CR>
map <Leader>/ :source ~/cvimrc.vim<CR>
map <Leader>? :open! https://github.com/1995eaton/chromium-vim<CR>
unmap <C-s>
unmap p
map p previousSearchResult
map s openSearchBar
map <C-r> openSearchBarReverse
map <C-s> openSearchBar
map <Enter> nextSearchResult
map ; scrollFullPageUp
map u goBack
map U goForward
map H :history
map B :bookmarks<Space>
map b :buffer<Space>
map gb :buffer<Space>
map g= incrementURLPath
unmap x
map h previousTab
map l nextTab
map w closeTab
map cR reloadAllTabs
map gx4 closeTabsToRight
map <M-S-X> closeTabsToLeft
map <C-M--> :tabdetach<CR>
map <C-M-=> :tabattach<CR>
map <C-M-1> :tabattach 1<CR>
map <C-M-2> :tabattach 2<CR>
map <C-M-3> :tabattach 3<CR>
map <C-M-4> :tabattach 4<CR>
map <C-M-5> :tabattach 5<CR>
map <C-1> :tabattach 1
map <C-2> :tabattach 2
map <C-3> :tabattach 3
map <C-4> :tabattach 4
map <C-5> :tabattach 5
let previousmatchpattern = "((?!last)(prev(ious)?|newer|back|〈|«|less|<|‹| )+)"
let nextsmatchpattern = "((?!first)(next|older|more|〉|>|›|»|forward| )+)"
let blacklists = []
site '*://*.reddit.com/*' {
unmap j
unmap k
set numerichints
call insertMode
}
site 'https://*.google.com/*' {
call insertMode
}
site 'https://app.asana.com/*' {
call insertMode
}
site 'http://localhost*' {
call insertMode
}
site 'http://127.0.0.1*' {
call insertMode
}
site 'http://0.0.0.0*' {
call insertMode
}
site 'https://berkeley.service-now.com/*' {
call insertMode
}
" Learn vim For the Last Time: A Tutorial and Primer
" https://danielmiessler.com/study/vim/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment