macOS Vim 설정
1. 색상 설정
> download python.vim
> http://www.vim.org/scripts/script.php?script_id=790
$ cd ~/.vim
$ mkdir syntax
$ mv ~/Download/python.vim ~/.vim/syntax
$ cd ~/
$ vi .vimrc
—
syntax on
filetype plugin indent on
—
2.탭 설정
$ cd ~/
$ mkdir .vim
$ cd .vim
$ mkdir ftplugin
$ vi ~/.vim/ftplugin/python.vim
—
set tabstop=8
set softtabstop=4
set shiftwidth=4
set textwidth=100
set expandtab
set smartindent cinwords=if,elif,else,for,while,try,except,finally,def,class
set nocindent
—
3. Tagging 및 소스코드 브라우징
$ brew install ctags-exuberant
$ ctags —help
>http://pythoninreal.blogspot.kr/2013/12/vim-python.html
> download python.vim
> http://www.vim.org/scripts/script.php?script_id=790
$ cd ~/.vim
$ mkdir syntax
$ mv ~/Download/python.vim ~/.vim/syntax
$ cd ~/
$ vi .vimrc
—
syntax on
filetype plugin indent on
—
2.탭 설정
$ cd ~/
$ mkdir .vim
$ cd .vim
$ mkdir ftplugin
$ vi ~/.vim/ftplugin/python.vim
—
set tabstop=8
set softtabstop=4
set shiftwidth=4
set textwidth=100
set expandtab
set smartindent cinwords=if,elif,else,for,while,try,except,finally,def,class
set nocindent
—
3. Tagging 및 소스코드 브라우징
$ brew install ctags-exuberant
$ ctags —help
>http://pythoninreal.blogspot.kr/2013/12/vim-python.html
댓글