set ts 8
=> tab 간격을 8로 조정
set ai
=> auto indentation
set noai
=> no auto indentation
set wrap
=> 자동 줄바꿈 함
set nowrap
=> 자동 줄바꿈 하지 않음
set fileformat=unix
=> 줄끝에 ^M이 안붙는 것
set fileformat=dow
=> 줄끝에 ^M이 붙음
참조자료
http://www.windist.pe.kr/wiki/moin.cgi/VI
아래내용은 정리필요. VI키.
소스 syntax highlight된 상태로 HTML 만들기출처: KLTP :so $VIMRUNTIME/syntax/2html.vim 아예 .vimrc에 com -nargs=0 Html :so $VIMRUNTIME/syntax/2html.vim 이렇게 해두면 항상 :Html 만 치면 HTML이 만들어질 겁니다
.vimrc설정" 오리지널 Vi 와의 호환성을 없애고, Vim 만의 기능들을 쓸 수 있게 함. set nocp " 백스페이스 사용 set bs=indent,eol,start " 커서의 위치를 항상 보이게 함. set ru " 줄 번호 표시 set nu " 줄 번호 표시 너비 설정 set nuw=5 " 탭 크기 설정 set ts=4 set sw=4 " 자동 줄바꿈 안함 set nowrap " magic 기능 사용 set magic " 새로 추가된 괄호의 짝을 보여주는 기능 set sm syn on set nonu set title set ai showmatch hidden incsearch ignorecase smartcase smartindent hlsearch " 파일의 종류를 자동으로 인식 filetype on filetype plugin on filetype indent on " 몇몇 커스텀 확장자들에게 파일 형식 설정 "au BufRead,BufNewFile *.dic setl ft=php sy enable nmap <F5> :w <CR> :! io % <CR> set tabstop=4 set vb t_vb= syntax on colorscheme evening set nocp set bs=indent,eol,start set ru set nowrap set ai showmatch hidden incsearch ignorecase smartcase smartindent hlsearch set magic set sm set title filetype on filetype plugin on filetype indent on nmap <F5> : w <CR>:!io % <CR> |
'unix and linux' 카테고리의 다른 글
특수 파일 삭제하기 (0) | 2007.12.31 |
---|---|
so 로딩 에러 (0) | 2007.12.31 |
grep 사용 (0) | 2007.12.30 |
shell 상에서 사용하는 옵션 지정하기-shopt (0) | 2007.12.29 |
쉘 자동화 -mysql (shell) (0) | 2007.12.29 |