Last active
September 28, 2022 03:31
-
-
Save ronaldsuwandi/5aa9b67a96d90365701b0ed2f593979b to your computer and use it in GitHub Desktop.
.vimrc file to display active window more obvious, enabled syntax highlighting and autoindent
This file contains 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
" Reference: https://github.com/amix/vimrc/blob/master/vimrcs/basic.vim | |
" Enable filetype plugins | |
filetype plugin on | |
filetype indent on | |
" Better status when using window | |
" Reference: https://superuser.com/a/807010= | |
highlight StatusLineNC cterm=bold ctermfg=white ctermbg=darkgray | |
" Indent | |
set autoindent | |
set smartindent | |
" Use smarttab | |
set smarttab | |
" Wild menu | |
set wildmenu | |
" Ignore case while searching | |
set ignorecase | |
" When searching, be smart about case | |
set smartcase | |
" Highlight searhc result | |
set hlsearch | |
" Incremental search | |
set incsearch | |
" Use magic for regex | |
set magic | |
" No annoying sounds | |
set noerrorbells | |
set novisualbell | |
" Always show current position | |
" Syntax | |
syntax on | |
" Use torte color scheme if available | |
try | |
colorscheme torte | |
catch | |
endtry | |
" Set encoding | |
set encoding=utf8 | |
" Disable backup | |
set nobackup | |
set nowb | |
set noswapfile | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment