Skip to content

Instantly share code, notes, and snippets.

@TzuChiehHung
Last active June 12, 2018 03:36
Show Gist options
  • Save TzuChiehHung/8eb57ce55e5d978674c4365c2de8d015 to your computer and use it in GitHub Desktop.
Save TzuChiehHung/8eb57ce55e5d978674c4365c2de8d015 to your computer and use it in GitHub Desktop.
[vim config] #vim #config
" Set the default file encoding to UTF-8:
set encoding=utf-8
" For full syntax highlighting:
let python_highlight_all=1
syntax on
" Automatically indent based on file type:
filetype indent on
" Keep indentation level from previous line:
set autoindent
" Show colum and line number:
set number
set ruler
" command line height:"
set cmdheight=2
" Highlight and incremental search:
set incsearch
set hlsearch
" Folding based on indentation:
set foldmethod=indent
set foldlevel=99
" Enable folding with the spacebar
nnoremap <space> za
" PEP 8 style:
source ~/.vim/python.vim
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment