Last active
October 28, 2022 13:27
-
-
Save washingweb/6a60234702bd652e294950e8259edf0e to your computer and use it in GitHub Desktop.
vim
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
filetype plugin indent on | |
" show existing tab with 4 spaces width | |
set tabstop=4 | |
" when indenting with '>', use 4 spaces width | |
set shiftwidth=4 | |
" On pressing tab, insert 4 spaces | |
set expandtab | |
" show line number | |
set nu | |
" enable mouse | |
set ttymouse=xterm2 | |
set mouse=a | |
" edit mode underline | |
au InsertEnter * set cursorline | |
au InsertLeave * set nocursorline |
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
imap jj <Esc> | |
:autocmd InsertEnter,InsertLeave * set cul! | |
:set number |
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
{ | |
"vim.insertModeKeyBindings": [ | |
{ | |
"before": ["f", "f"], | |
"after": ["<esc>"] | |
}, | |
{ | |
"before": ["j", "j"], | |
"after": ["<esc>"] | |
}, | |
{ | |
"before": ["<C-l>"], | |
"after": ["<C-o>", "l"] | |
}, | |
{ | |
"before": ["<C-a>"], | |
"after": ["<C-o>", "^"] | |
}, | |
{ | |
"before": ["<C-e>"], | |
"after": ["<C-o>", "$"] | |
} | |
], | |
"vim.normalModeKeyBindingsNonRecursive": [ | |
{ | |
"before": ["<C-j>"], | |
"after": ["j", "<C-e>"] | |
}, | |
{ | |
"before": ["<C-k>"], | |
"after": ["k", "<C-y>"] | |
} | |
] | |
} |
Author
washingweb
commented
Nov 7, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment