Skip to content

Instantly share code, notes, and snippets.

@zvakanaka
Created March 31, 2026 18:32
Show Gist options
  • Select an option

  • Save zvakanaka/d2742be5b32e655a18870b03d5556dd6 to your computer and use it in GitHub Desktop.

Select an option

Save zvakanaka/d2742be5b32e655a18870b03d5556dd6 to your computer and use it in GitHub Desktop.
2nd version (old is still around in gists)
let mapleader = " "
" vertical bar as cursor in insert mode
let &t_SI = "\e[6 q"
let &t_EI = "\e[2 q"
" allow mouse
set mouse=a
" sync copy/paste with system clipboard
set clipboard+=unnamed
" display line numbers
set nu
" remap :w save to space button in normal mode
nnoremap <space>w :w<CR>
" ctrl+s to save in normal and insert modes
nnoremap <C-S> :update<cr>
inoremap <C-S> <Esc>:update<cr>
" quit with space+qq
nnoremap <space>qq :qa<cr>
nnoremap <leader>ev :rightbelow vsplit $MYVIMRC<cr>G
nnoremap <leader>sv :source $MYVIMRC<cr>
iabbrev funcction function
iabbrev funciotn function
iabbrev clog console.log(
inoremap jk <esc>
inoremap kj <esc>
vnoremap <esc> <nop>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment