레이블이 에디터인 게시물을 표시합니다. 모든 게시물 표시
레이블이 에디터인 게시물을 표시합니다. 모든 게시물 표시

2010년 4월 27일 화요일

GVIM





자동완성(수정모드에서 사용)





- 에디트 화면에서 이미 다음과 같은 문자가 있을 때, ( type_me_plz )





같은 문자를 또 입력 하고 싶다면 type + control + P









접기(명령모드에서 사용)





- 10,20zf: 10~20줄까지 접힌다.





- zM: 접을 수 있는 곳이 있다면 모두 접기





- zR: 접힌 곳이 있다면 모두 펴기







proc highlight


C:\Program Files\Vim\vim73\syntax 에서 c.vim 을 복사해서 이름을 pc.vim으로 바꾼다.


그래도 .pc파일에 highlight가 안되면


au BufNewFile,BufRead *.pc setf proc 을 아래와 같이 바꾸어주면 끝.


au BufNewFile,BufRead *.pc setf esqlc



FTP 연결 ( GVIM 7.2 )





http://www.vim.org/scripts/download_script.php?src_id=6180 다운로드





② C:\Program Files\Vim\vim72 에 다운 받은 netrw.vba을 옮긴다.





③ vi로 netrw.vba를 연 후 다음과 같이 입력 => :so %





④ 파일을 연다. :e ftp://user@host/path
※ 만약 잘 안되면, C:\Program Files\Vim\vim72폴더에서 plugin/netrw로 시작하는 파일, autoload/netrw로 시작하는 파일을 지워주고 ③부터 다시 시작





⑤ 재부팅

2010년 3월 11일 목요일

VI

명령어



% Move to matching bracket: ( { [ ] } ) => 코딩 시 괄호단위로 이동할 때 유용



:c$ Beginning with the character under the cursor, => 한줄 지우고 입력 시 유용, ( =: d$i )



"a10yy Copies 10 lines into buffer a



"ap Put contents of lettered buffer a below the current line
:.,$s/old/new/g Substitutes old with new from the current cursor position to the end of the file



:map @ cwUnversity of Washington







▶속성 저장1



$ vi ~/.profile



EXINIT='set tabstop=4 autoindent map g 1G' ; export EXINIT



▶속성 저장2



$ vi ~/.profile



EXINIT='set exrc' ; export EXINIT



$ vi ~/.exrc



set tapstop=4



autoindent



map g 1G