"hangul
set fileencodings=euc-kr
set encoding=cp949
"set nowrap
"set listchars=extends:>,precedes:<
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 expandtab "use spaces instead of tab
set hlsearch
set incsearch
set autowrite
set autoindent
set nostartofline
set backspace=indent,eol,start
set backspace=2
set bioskey
"Backspace/Del key
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 !cvs update %<CR>:e! %<CR>
cmap CI !cvs commit %<CR>
" Comment formatting
set formatoptions=croq
set textwidth=80
" status bar.
set laststatus=2
"--------------maps
map <F1> K
" ANSI/POSIX Ç¥ÁØÇÔ¼öÀÇ À̸§À§¿¡ Ä¿¼¸¦µÎ°í F1 À» ´©¸£¸é ±× ÇÔ¼öÀÇ man ÆäÀÌÁö¸¦
"º¸¿©ÁÝ´Ï´Ù.
map <F2> :w!<CR>
"ÇöÀç ÆíÁýÁßÀÎ ÆÄÀÏÀ» ÀúÀåÇÕ´Ï´Ù.
map <F3> v]}zf
"< ¼Ò½ºÄÚµå ÀÌ»Ú°Ô º¸±â >
map <F4> zo
"ÆúµåµÈ ³»¿ëÀ» º¹±¸½ÃÄÑÁÝ´Ï´Ù.
"ÆÄÀÏ ºê¶ó¿ì¡
map <F5> :25vs./<CR>:set nonumber<CR>^Ww
"ȸéÀ» ¾çºÐÇؼ ÇÁ·¹ÀÓÀ» ³ª´²ÁÖ°í, ¿ÞÂÊ ÇÁ>·¹ÀÓ¿¡ Çö µð·ºÅ丮ÀÇ ÆÄÀÏ ¸ñ·ÏÀ» º¸>
"¿©ÁÝ´Ï´Ù.
map <F6> ^Ww
"Ä¿¼¸¦ Á¿ìÇÁ·¹ÀÓÀ¸·Î ¿Ô´Ù°¬´Ù ÇÒ¶§
map <F7> O
"¾î¶² ÆÄÀÏÀ» ¿°í½ÍÀ»¶§¿¡´Â ¿°í½ÍÀº ÆÄÀÏ¿¡ Ä¿¼¸¦ µÎ°í F7 À» ´©¸£¸é µË´Ï´Ù
map <F8> [i
"¾î¶² ÇÔ¼öÀÇ À̸§¿¡ Ä¿¼¸¦ µÎ°í F8 À» ´©¸£¸é, ȸé ÇÏ´Ü¿¡ ±× ÇÔ¼öÀÇ prototype À»
" º¸¿©ÁÝ´Ï´Ù.
map <F9> gd
"º¯¼ö°¡ ¼±¾ðµÈ ¹®ÀåÀ¸·Î ã¾Æ°¡ÁÝ´Ï´Ù
map <F10> ''
"´Ù½Ã ¿ø·¡ÀÇ À§Ä¡·Î µÇµ¹¾Æ°¡°í ½ÍÀ»¶§
map <F11> ^]
"Àü¿ªº¯¼ö/±¸Á¶Ã¼/Á¤ÀÇ»ó¼ö/ÇÔ¼öÁ¤ÀǸ¦ ÃßÀûÇØÁÝ´Ï´Ù.
map <F12> ^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
" ÁÖ¼®Ã³¸®Çϱâ.
vm .c di/**/^[hP
nm .c ^v$hdi/**/^[hP
|