Last active
November 14, 2025 07:37
-
-
Save gsw945/78044a87fea7719ad686bee56ac13f6b to your computer and use it in GitHub Desktop.
`~/.vimrc`
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 | |
| " Highlight current line | |
| set cursorline | |
| " display line number | |
| set number | |
| " filemode | |
| set fileformat=unix | |
| " autoindent | |
| set autoindent | |
| " paste | |
| " set paste | |
| " set nopaste | |
| " pressing F12 toggles paste on and off | |
| set pastetoggle=<F12> | |
| " jump to the last position when reopening a file | |
| if has("autocmd") | |
| au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif | |
| endif |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
enforce