Last active
March 4, 2016 03:27
-
-
Save karaage0703/e4243dc05c506bbd92c3 to your computer and use it in GitHub Desktop.
.vimrc without plugin
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 number | |
if &t_Co > 1 | |
syntax enable | |
endif | |
" for python | |
autocmd FileType python setl autoindent | |
autocmd FileType python setl smartindent cinwords=if,elif,else,for,while,try,except,finally,def,class | |
autocmd FileType python setl tabstop=8 expandtab shiftwidth=4 softtabstop=4 | |
" for javascript | |
autocmd FileType javascript setl shiftwidth=4 tabstop=2 softtabstop=2 | |
" for backupfile | |
set backupdir=~/tmp |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For setup, type below command
$ cd $ git clone https://gist.github.com/e4243dc05c506bbd92c3.git tmp $ mv tmp/vimrc .vimrc
http://karaage.hatenadiary.jp/entry/2015/09/24/073000