Last active
June 12, 2018 03:36
-
-
Save TzuChiehHung/8eb57ce55e5d978674c4365c2de8d015 to your computer and use it in GitHub Desktop.
[vim config] #vim #config
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
" 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