Skip to content

Instantly share code, notes, and snippets.

@snuffop
Last active August 11, 2021 14:16
Show Gist options
  • Save snuffop/15c2a6b2f8bccb67b2f5c77991930723 to your computer and use it in GitHub Desktop.
Save snuffop/15c2a6b2f8bccb67b2f5c77991930723 to your computer and use it in GitHub Desktop.
cVim Config
" Settings
let mapleader = ","
let scrolltep = 30
let fullpagescrollpercent = 100
"set nohud
set autohidecursor
"set noinsertmappings
set nosmoothscroll
"let locale = "jp"
let hintcharacters = "hjklasdfgyuiopqwertnmzxcvb"
let barposition = "bottom"
set autoupdategist
" Search Engines
let searchengine archwiki = 'https://wiki.archlinux.org/?search=%s'
let searchengine brave = 'https://search.brave.com/search?q=%s'
let searchengine buku = 'https://localhost:5001/bookmark/?flt1_buku_search=%s'
let searchalias a = "archwiki"
let searchalias b = "buku"
" Mappings
map <Leader>r reloadTabUncached
map <Leader>x :restore<Space>
" You can use <Space>, which is interpreted as a
" literal " " character, to enter buffer completion mode
map gb :buffer<Space>
" Move
map <C-f> scrollFullPageDown
map <C-b> scrollFullPageUp
map <C-h> scrollLeft
map <C-j> scrollDown
map <C-k> scrollUp
map <C-l> scrollRight
map <C-u> scrollPageUp
map <C-d> scrollPageDown
map <C-b> scrollFullPageUp
map <C-f> scrollFullPageDown
" Navigation
map d closeTab
map u lastClosedTab
map J previousTab
map K nextTab
map <C-i> goForward
map <C-o> goBack
map :wo :new<Space>
map ;wo :new<Space>
map R reloadTabUncached
map go :open @%
map O :tabnew<Space>
" Want to make a key to yank current selected word and search it...
map <C-g> :execute vlhyP<CR>
" Currently, ":" doesn't shows command line.
" Need at least one charactor (use <Space> here)
map ; :<Space>
map : :<Space>
" Text boxes
iunmapAll
let configpath = '/home/marty/.config/cvimrc/cvimrc'
set localconfig
@snuffop
Copy link
Author

snuffop commented Nov 14, 2019

Update to match proper key map

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment