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

댓글

이 블로그의 인기 게시물

[LINUX] CentOS 부팅시 오류 : UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY

[MSSQL] 데이터베이스가 사용 중이어서 배타적으로 액서스할 수 없습니다

구글코랩) 안전Dream 실종아동 등 검색 오픈API 소스를 공유합니다. (구글드라이브연동, 이미지 수집 소스)