Skip to content

Instantly share code, notes, and snippets.

@SibTiger
Last active December 25, 2018 23:41
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 SibTiger/8f2ec326cd1e9ba2e7ab98494bf985bd to your computer and use it in GitHub Desktop.
Save SibTiger/8f2ec326cd1e9ba2e7ab98494bf985bd to your computer and use it in GitHub Desktop.
[Lazy] .vimrc Customized Environment
" For help:
" https://www.shortcutfoo.com/blog/top-50-vim-configuration-options/
" https://dougblack.io/words/a-good-vimrc.html
" https://alvinalexander.com/linux/vi-vim-editor-color-scheme-colorscheme
" =========================================================
" =========================================================
" Tabulations
" ---------------------------------------------------------
" Auto Indent
" New lines inherit the indentation of the previous lines.
set autoindent
" Expand Tabulation
" Convert tabs to spaces
set expandtab
" Smart Tab
" Insert 'tabstop' number of spaces when the tab key is pressed.
set smarttab
" Tab Stop
" Indent using $num of spaces
set tabstop=4
" Shift Width
" When shifting, ident using four spaces
set shiftwidth=4
" =========================================================
" =========================================================
" Text Rendering
" ---------------------------------------------------------
" Line Breaking
" Avoid wrapping a line in the middle of a word.
set linebreak
" Syntax Highlighting
" Enable syntax highlighting
syntax enable
" Wrapping
" Enable line wrapping
set wrap
" Spell Check
" Check grammar within the text
set spell
" =========================================================
" =========================================================
" User Interface
" ---------------------------------------------------------
" Ruler
" Show cursor position
set ruler
" Cursor Highlighting
" Highlight the line currently under the cursor
set cursorline
" Line Numbers
" Show line numbers on the sidebar
set number
" Filename Title
" Display the filename of the text file as the title of this instance
set title
" Show Symbols
" Displays known-symbols within the text-file
set listchars=eol:¬,tab:>·,trail:~,extends:>,precedes:<,space:·
set list
" =========================================================
" =========================================================
" Code Folding Options
" ---------------------------------------------------------
" Folding
" Fold based on the indention leveling
set foldmethod=indent
" =========================================================
" =========================================================
" Themes
" ---------------------------------------------------------
colorscheme torte
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment