Last active
August 1, 2019 21:32
-
-
Save chm123/b71f30f456cc855a61f136306f517d36 to your computer and use it in GitHub Desktop.
currently used 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
| " Use Vim settings, rather then Vi settings (much better!). | |
| " This must be first, because it changes other options as a side effect. | |
| set nocompatible | |
| " ================ General Config =================== | |
| set number " Display line number | |
| set ruler " Display column number | |
| set showmode " Show current mode at bottom | |
| set visualbell " No Sounds | |
| set autoread " Reload file changed outside vim | |
| syntax on " Syntax highlighting | |
| " ================ Indentation ====================== | |
| set autoindent | |
| set smartindent | |
| set smarttab | |
| set shiftwidth=4 | |
| set softtabstop=4 | |
| set tabstop=4 | |
| set expandtab | |
| " Display tabs and trailing spaces visually | |
| set list listchars=eol:⏎,tab:>-,trail:·,nbsp:⎵ | |
| " =================== Search ======================== | |
| set hlsearch " Highlight search results. | |
| " =============== Undo After Exiting ================ | |
| set undofile " Save undo's after file closes | |
| set undodir=$HOME/.vim/undo " Where to save undo histories | |
| set undolevels=1000 " How many undos | |
| set undoreload=10000 " Number of lines to save for undo |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment