Skip to content

Instantly share code, notes, and snippets.

@AirManH
Created April 16, 2023 08:02
Show Gist options
  • Save AirManH/aa01d4b5cacc37b3fc8fdab2f9d6dcb7 to your computer and use it in GitHub Desktop.
Save AirManH/aa01d4b5cacc37b3fc8fdab2f9d6dcb7 to your computer and use it in GitHub Desktop.
" ===== Basic
" do not make vim compatible with vi.
set nocompatible
" Disable the mouse.
set mouse=
set ttymouse=
" use utf-8 encoding.
set encoding=utf-8
" use 256-bit colors.
set t_Co=256
" check indent format by file type.
filetype indent on
" show non-space whitespaces
set list
set listchars=tab:>-
"===== Indents
" Auto insert spaces after press the "ENTER" key.
set autoindent
" Auto convert tabs into spaces.
set expandtab
" 1 tab is displayed as 4 spaces
set tabstop=4
" number of spaces in tab when editing
set softtabstop=4
" ===== Visualization
" redraw only when we need to.
set lazyredraw
" show line numbers.
set number
" show location of cursor using a horizontal line.
set cursorline
" turn on syntax hightlighting.
syntax on
filetype on
" Display command/visual/insert mode at the bottom.
set showmode
" In command mode, display the typed commands at the bottom.
set showcmd
colorscheme desert
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment