Created
March 31, 2026 18:32
-
-
Save zvakanaka/d2742be5b32e655a18870b03d5556dd6 to your computer and use it in GitHub Desktop.
2nd version (old is still around in gists)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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