Skip to content

Instantly share code, notes, and snippets.

@karaage0703
Last active March 4, 2016 03:27
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save karaage0703/e4243dc05c506bbd92c3 to your computer and use it in GitHub Desktop.
Save karaage0703/e4243dc05c506bbd92c3 to your computer and use it in GitHub Desktop.
.vimrc without plugin
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
@karaage0703
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment