Category: Stuffs, Cygwin, |
cygwin¿¡¼. (.vimrc´Â unix file formatÀ̾î¾ß ÇÔ.)
"cygwin vimrc "hangul set fileencodings=euc-kr set fileformat=dos set fileformats=dos,unix set encoding=cp949 set backup set backupdir=~/.vim/backup "file format. dos. "set fileformat=dos "set fileformat=unix "set nowrap "set listchars=extends:>,precedes:< set scrolloff=3 syntax on "set vb set bg=dark " show actual cursor position set ruler set cindent set tags=./tags,tags,../tags set shiftwidth=4 set tabstop=4 set noexpandtab set smarttab set hlsearch set incsearch set autowrite set autoindent set nostartofline set backspace=indent,eol,start set backspace=2 set bioskey if &term == "linux" set t_kb endif if &term == "xterm" set t_kb endif " show matching braces set showmatch au BufNewFile,BufReadPost Makefile se noexpandtab " When editing a file, always jump to the last known cursor position. " Don't do it when the position is invalid or when inside an event handler " (happens when dropping a file on gvim). autocmd BufReadPost * \ if line("'\"") > 0 && line("'\"") <= line("$") | \ exe "normal g`\"" | \ endif " CVS stuff cmap UP<CR> !cvs update %<CR>:e! %<CR> cmap CI<CR> !cvs commit %<CR> "w, q cmap W<CR> w<CR> cmap Q<CR> q<CR> " Comment formatting "set formatoptions=tcroq set formatoptions=croql set textwidth=80 " status bar. set laststatus=2 "--------------maps map <F1> K " ANSI/POSIX Ç¥ÁØÇÔ¼öÀÇ À̸§À§¿¡ Ä¿¼¸¦µÎ°í F1 À» ´©¸£¸é ±× ÇÔ¼öÀÇ man ÆäÀÌÁö¸¦ "º¸¿©ÁÝ´Ï´Ù. "map <F2> :w!<CR> "ÇöÀç ÆíÁýÁßÀÎ ÆÄÀÏÀ» ÀúÀåÇÕ´Ï´Ù. map <F2> mk[[?^[A-Za-z_].*(<CR>V"ky`k:echo "<C-R>k"<CR> " ÇöÀç Ä¿¼°¡ ¾î´À ÇÔ¼ö ³»¿¡ ÀÖ´Â Áö º¸¿©ÁÝ´Ï´Ù. map <F3> v%zf "map <ESC>[13~ v]}zf map <ESC>[25~ v]}zf "shift-F3 "< ¼Ò½ºÄÚµå ÀÌ»Ú°Ô º¸±â > map <F4> zo "ÆúµåµÈ ³»¿ëÀ» º¹±¸½ÃÄÑÁÝ´Ï´Ù. "ÆÄÀÏ ºê¶ó¿ì¡ map <F5> :25vs./<CR>:set nonumber<CR><C-w>w "ȸéÀ» ¾çºÐÇؼ ÇÁ·¹ÀÓÀ» ³ª´²ÁÖ°í, ¿ÞÂÊ ÇÁ>·¹ÀÓ¿¡ Çö µð·ºÅ丮ÀÇ ÆÄÀÏ ¸ñ·ÏÀ» º¸> "¿©ÁÝ´Ï´Ù. map <F6> <C-w>w "Ä¿¼¸¦ Á¿ìÇÁ·¹ÀÓÀ¸·Î ¿Ô´Ù°¬´Ù ÇÒ¶§ map <F7> O "¾î¶² ÆÄÀÏÀ» ¿°í½ÍÀ»¶§¿¡´Â ¿°í½ÍÀº ÆÄÀÏ¿¡ Ä¿¼¸¦ µÎ°í F7 À» ´©¸£¸é µË´Ï´Ù map <F8> [i "¾î¶² ÇÔ¼öÀÇ À̸§¿¡ Ä¿¼¸¦ µÎ°í F8 À» ´©¸£¸é, ȸé ÇÏ´Ü¿¡ ±× ÇÔ¼öÀÇ prototype À» " º¸¿©ÁÝ´Ï´Ù. map <F9> gd "º¯¼ö°¡ ¼±¾ðµÈ ¹®ÀåÀ¸·Î ã¾Æ°¡ÁÝ´Ï´Ù map <F10> '' "´Ù½Ã ¿ø·¡ÀÇ À§Ä¡·Î µÇµ¹¾Æ°¡°í ½ÍÀ»¶§ map <F11> <C-]> "Àü¿ªº¯¼ö/±¸Á¶Ã¼/Á¤ÀÇ»ó¼ö/ÇÔ¼öÁ¤ÀǸ¦ ÃßÀûÇØÁÝ´Ï´Ù. map <S-F11> <C-\>s "¼Ò½ºµé¿¡¼ ÇØ´ç ÆÐÅÏÀ» °Ë»öÇØÁÝ´Ï´Ù. (cscope) map <F12> <C-t> "ÃßÀû¿¡ µé¾î°£ »óÅ¿¡¼ ÀÌÀüÀ§Ä¡·Î µÇµ¹¾Æ¿À·Á¸é F12 ¸¦ ´©¸£¸é µË´Ï´Ù. "http://list.kldp.org/pipermail/tip/2002Apr/0411.html "syntax highlited source code to html. wow! com -nargs=0 Html :so $VIMRUNTIME/syntax/2html.vim "set statusline=\ %<%l:%v\ [%P]%=0x%B\ \ %a\ %n%m%r\ %f\ set statusline=\(%n\)%<%f\ %h%m%r%=0x%B\ \ \ \ %-14.(%l,%c%V%)\ %P " doxygen, end line comment vm <ESC>z <ESC>`>a */<ESC>`<i/**< <ESC>`< " block comment vm <ESC>c <ESC>`>a */<ESC>`<i/* <ESC>`< " block comment vm ,// <ESC>`>a */<ESC>`<i/* <ESC>`< " line commentify nm <ESC>c ^i/* <ESC>$a */<ESC>^ " doxygen line commentify nm <ESC>z ^i/** <ESC>$a */<ESC>^ " line commentify nm ,// ^i/* <ESC>$a */<ESC>^ let g:DoxygenToolkit_authorName="Daniel Jiseok Song (danielsong@gctsemi.com)" let g:DoxygenToolkit_licenseTag="Project: \<enter>\<enter>Copyright (c) 2006 GCT semiconductor, Inc.\<enter>All rights reserved.\<enter>" " for taglist let Tlist_Ctags_Cmd = '/usr/bin/ctags' set nocst "for not setting cscope tags option |
source ~/.vimrc colorscheme classic_nobold set cindent set autoindent set guifont=Consolas\ 12 "set guifont=Monospace\ 12 ~ |