라벨이 vim인 게시물 표시

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

vim 공백 4로 변경

$ cd ~/ $ vi .vimrc —— set smartindent set tabstop=4 set expandtab set shiftwidth=4 " >> 또는 << 키로 들여 쓰기 할때 스페이스의 갯수. 기본값 8 —— $ source .vimrc

command, ubuntu, crontab nano를 vim으로 변경

$cd /bin $ mv nano nano_must_die $ ln -s /usr/bin/vim nano