Skip to content

Instantly share code, notes, and snippets.

@ronaldsuwandi
Last active September 28, 2022 03:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ronaldsuwandi/5aa9b67a96d90365701b0ed2f593979b to your computer and use it in GitHub Desktop.
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
" 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