Showing posts with label vim. Show all posts
Showing posts with label vim. Show all posts

Tuesday, 17 July 2012

Vim n Python 환경설정


Very likely, your source file contains both tabs and spaces.
It's a good pratice to only use spaces in source file.
You can convert all tabs to spaces by using those command:
:set expandtab:ret!
I suggest put those commands bellow in your .vimrc:
set expandtab softtabstop=4 tabstop=4 shiftwidth=4

_vimrc

autocmd BufRead,BufNewFile *.py syntax on
autocmd BufRead,BufNewFile *.py set ai
autocmd BufRead *.py set smartindent cinwords=if,elif,else,for,while,with,try,except,finally,def,class

Monday, 26 July 2010

Vim/gVim _vimrc setting

colorscheme vylight

set autoindent
set cindent
set smartindent
set tabstop=4
set shiftwidth=4
set nobackup
set hls
syntax on
set visualbell
filetype on
set showmatch
set guifont=inconsolata:h12
set nu
set lines=30
set columns=100

map <F4>:w <CR> :!javac % <CR>
map <F5>:!java %:r

au BufEnter * lcd %:p:h

"enew! | r!ls

가장 많이 본 글