/root 폴더에 .vimrc 파일을 만들어준다.
---------------------------------------
" vimrc 예제 파일 경로 vimrc_example.vim
" /usr/share/doc/vim-common-6.0/vimrc_example.vim
"
" 앞에 " 표시는 주석처리??
"set title "vi 에서 현재 작업중인 파일명을 항상 표시한다 set laststatus=2 <-- 더 좋다
"set magic
"set noshowcmd
"set nowrap " 자동으로 를 삽입하여 다음 줄로 넘어간다
"set nowrapscan " 검색할 때 문서의 끝에서 다시 처음으로 돌아가지 않는다
"set showmode
"set nobackup " 백업파일 생성금지
"set backupext=.bak " 백업파일 이름
set tabstop=4 " Tab을 눌렀을 때 8칸 대신 4칸 이동하도록 한다.
"set shiftwidth=4 " 자동 들여쓰기를 할때 4칸 들여쓰도록 한다.
set visualbell " 키를 잘못눌렀을 때 삑 소리를 내는 대신 번쩍이게 한다.
"set ruler " 화면 우측 하단에 현재 커서의 위치(줄,칸)를 보여준다.
"set cindent " C 프로그래밍을 할때 자동으로 들여쓰기를 한다.
"set autoindent " 자동으로 들여쓰기를 한다
"set smartindent " 좀더 똑똑한 들여쓰기를 위한 옵션이다.
"set textwidth=79 " 만약 79번째 글자를 넘어가면 \
"set noicon
set nocompatible " 색상 밝게 하기
set laststatus=2 " 항상 파일 이름 표시
set background=dark "배경 검정색
syntax on "컬러 사용
" 펑션키 지정 <CR> 엔터키를 의미한다
map <F1> :K <CR> " 도움말
map <F2> :w! <CR> " 저장하기
map <F3> :30vs ./ <CR> " 탐색기사용
map <F4> :sp ./ <CR> " 탐색기사용
map <F5> :new <CR>" 새파일
map <F6> : <CR>
map <F7> : <CR>
map <F8> : <CR>
map <F9> : <CR>
map <F10> : q! <CR> " 그냥 종료 (저장안함)
map <F11> : <CR>
map <F12> : <CR>
" 확장자 대로 하이라이팅 주기
au BufNewFile,BufReadPost *.c,*.h set cindent shiftwidth=4 number tabstop=4
au BufNewFile,BufReadPost *.c,*.h syntax on
au BufNewFile,BufReadPost *.cpp,*.cc set cindent shiftwidth=4 number tabstop=4
au BufNewFile,BufReadPost *.cpp,*.cc,*.h syntax on
au BufNewFile,BufReadPost *.java set cindent shiftwidth=4
au BufNewFile,BufReadPost *.php3 set cindent shiftwidth=4
au BufNewFile,BufReadPost *.php set cindent shiftwidth=4
au BufNewFile,BufReadPost *.pl set cindent shiftwidth=4
au BufNewFile,BufReadPost *.tex set autoindent
==========================================
vim 에서 지정된 칼라를 쓰려면 ......
/usr/share/vim/vim61/colors
vimrc 파일에 "colo pablo" 라고 추가한다 "colo 색코드"<div class='small'>[이 게시물은 관리자님에 의해 2011-10-31 17:32:05 Linux에서 이동 됨]</div>
---------------------------------------
" vimrc 예제 파일 경로 vimrc_example.vim
" /usr/share/doc/vim-common-6.0/vimrc_example.vim
"
" 앞에 " 표시는 주석처리??
"set title "vi 에서 현재 작업중인 파일명을 항상 표시한다 set laststatus=2 <-- 더 좋다
"set magic
"set noshowcmd
"set nowrap " 자동으로 를 삽입하여 다음 줄로 넘어간다
"set nowrapscan " 검색할 때 문서의 끝에서 다시 처음으로 돌아가지 않는다
"set showmode
"set nobackup " 백업파일 생성금지
"set backupext=.bak " 백업파일 이름
set tabstop=4 " Tab을 눌렀을 때 8칸 대신 4칸 이동하도록 한다.
"set shiftwidth=4 " 자동 들여쓰기를 할때 4칸 들여쓰도록 한다.
set visualbell " 키를 잘못눌렀을 때 삑 소리를 내는 대신 번쩍이게 한다.
"set ruler " 화면 우측 하단에 현재 커서의 위치(줄,칸)를 보여준다.
"set cindent " C 프로그래밍을 할때 자동으로 들여쓰기를 한다.
"set autoindent " 자동으로 들여쓰기를 한다
"set smartindent " 좀더 똑똑한 들여쓰기를 위한 옵션이다.
"set textwidth=79 " 만약 79번째 글자를 넘어가면 \
"set noicon
set nocompatible " 색상 밝게 하기
set laststatus=2 " 항상 파일 이름 표시
set background=dark "배경 검정색
syntax on "컬러 사용
" 펑션키 지정 <CR> 엔터키를 의미한다
map <F1> :K <CR> " 도움말
map <F2> :w! <CR> " 저장하기
map <F3> :30vs ./ <CR> " 탐색기사용
map <F4> :sp ./ <CR> " 탐색기사용
map <F5> :new <CR>" 새파일
map <F6> : <CR>
map <F7> : <CR>
map <F8> : <CR>
map <F9> : <CR>
map <F10> : q! <CR> " 그냥 종료 (저장안함)
map <F11> : <CR>
map <F12> : <CR>
" 확장자 대로 하이라이팅 주기
au BufNewFile,BufReadPost *.c,*.h set cindent shiftwidth=4 number tabstop=4
au BufNewFile,BufReadPost *.c,*.h syntax on
au BufNewFile,BufReadPost *.cpp,*.cc set cindent shiftwidth=4 number tabstop=4
au BufNewFile,BufReadPost *.cpp,*.cc,*.h syntax on
au BufNewFile,BufReadPost *.java set cindent shiftwidth=4
au BufNewFile,BufReadPost *.php3 set cindent shiftwidth=4
au BufNewFile,BufReadPost *.php set cindent shiftwidth=4
au BufNewFile,BufReadPost *.pl set cindent shiftwidth=4
au BufNewFile,BufReadPost *.tex set autoindent
==========================================
vim 에서 지정된 칼라를 쓰려면 ......
/usr/share/vim/vim61/colors
vimrc 파일에 "colo pablo" 라고 추가한다 "colo 색코드"<div class='small'>[이 게시물은 관리자님에 의해 2011-10-31 17:32:05 Linux에서 이동 됨]</div>
게시글 목록
| 번호 | 제목 |
|---|---|
| 1218 |
JavaScript
euc-kr 문서를 utf-8 로 변환
3
|
| 1215 | |
| 17873 |
HTML
잘되는 센드메일 수신이 안될때...
|
| 1213 | |
| 1212 |
기타
Ajax 흉내 내기
|
| 1209 |
JavaScript
포토샵에서 트랜스폼과 카피를 동시에 하는 방법
2
|
| 1204 | |
| 1201 |
JavaScript
mod_rewrite 설치 법
2
|
| 1200 | |
| 1197 |
JavaScript
포토샵의 블렌딩 모드
2
|
| 1193 |
JavaScript
opacity(투명도) 값 쉽게 먹이기.
3
|
| 1187 | |
| 17870 | |
| 1185 |
기타
서버정보검색
1
|
| 1181 |
기타
텍스트시계
3
|
| 1177 | |
| 1174 |
기타
Key 관련
2
|
| 17869 |
HTML
textarea 에 Tab기능 넣기
|
| 1173 | |
| 1172 |
MySQL
초보일지 FC4에서 가상호스트설정과정
|
| 1171 |
기타
pop3서버 설치 방법
|
| 1169 |
JavaScript
메뉴 생성 클래스
1
|
| 1168 | |
| 1167 |
JavaScript
qpopper(pop3) 설치
|
| 1165 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기