vimrc
FrontPage|FindPage|TitleIndex|RecentChanges|UserPreferences E D R S I M H RSS

³»°¡ Áñ°Ü¾²´Â vimrc
" vim ¼³Á¤
set viminfo='20,\"50
set wildmenu

" BS, DEL ¼³Á¤
set bs=2
set t_kb=^H
set t_kD=^?

" ¿É¼Ç ²ô±â
set textwidth=0 " textwidth Á¦ÇÑ ²ô±â

" tab À» tabÀ¸·Î ¾²±â À§ÇÑ ¼³Á¤
set sts=0 " tap -> space º¯È¯ ²ô±â ( 0À¸·Î ÇÏ¸é ²¨Áø´Ù )
set nocindent " cindent ¸¦ ²ö´Ù. ( sw °¡ space¸¸ ÀÔ·ÂÇÑ´Ù. indent·Î tabÀ» »ç¿ëÇÏ·Á¸é ²¨¾ßÇÔ )
set noexpandtab " expandtab À» ²ö´Ù. ( indent·Î tabÀ» »ç¿ëÇÏ·Á¸é ²¨¾ßÇÔ )

" ÇÏÀ̶óÀÌÆ® °ü·Ã
set hlsearch " / search ½Ã ÇÏÀ̶óÀÌÆ®
set incsearch " / search ½Ã ½Ç½Ã°£À¸·Î ÆÐÅÏÀ» ã¾ÆÁÖ´Â ±â´É

" °ýÈ£ µî »ç¿ë½Ã ¸ÅÄ¡¸¦ º¸¿©ÁÜ(Àá½Ã ±ô¹ÚÀ̱â)
set showmatch

set scrolloff=3 " ½ºÅ©·ÑÇÒ ¶§ À§¾Æ·¡ 3ÁÙ À¯Áö

" status bar Ç×»ó ³ª¿À°Ô
set laststatus=2
" status bar ³»¿ë Á¤ÀÇ À¥¿¡¼­ ÆÛ¿È
"status ¹Ù¿¡ ³ª¿Ã ³»¿ëÀ» Á¤ÇÑ´Ù
"\(%n\) = ¹öÆÛ ¹øÈ£ 
"%f = ÇöÀç ÆÄÀÏ À̸§ 
"%B = ÇöÀç Ä¿¼­ ¾Æ·¡ ¹®ÀÚÀÇ Çí½º ÄÚµå 
"(%l,%c%V%) = Çà ¹øÈ£, Ä÷³ ¹øÈ£ µî. 
"%P = ÇöÀç À§Ä¡ % 
"ÀÌÁ¤µµÂë µÇ°í ³ª¸ÓÁö´Â Æ÷¸ÅÆà ¹®ÀÚÀÏ °Ì´Ï´Ù. 
"³ª¸ÓÁö´Â :help statusline ÂüÁ¶
set statusline=\(%n\)%<%f\ %h%m%r%=0x%B\ \ \ \ %-14.(%l,%c%V%)\ %P 

syntax on

behave mswin

" ÅÇ, Àε§Å×ÀÌ¼Ç µîÀÇ ¼³Á¤
set ts=4
set autoindent
set sw=4
set sm

set nu
"set bg=dark
colorscheme torte

" CVS stuff 
" :UP ÇÏ¸é ¼öÁ¤ÇÏ´ø ÆÄÀÏÀÌ cvs update °¡ µÇ°í 
" :CI Çϸé cvs commit ÀÌ µÈ´Ù
cmap UP !cvs update %<CR>:e! %<CR> 
cmap CI !cvs commit %<CR> 

" ÇöÀç ÆÄÀÏÀ» python À¸·Î ½ÇÇà
"cno PY !c:\\python24\\python.exe -i "%<CR>"
cno PY !c:\\python24\\python.exe "%<CR>"
map <F5> :PY

" select all
map <F2> :0<CR> V]]

" ÁÖ¼®Ã³¸® block ÁöÁ¤ ÈÄ(ȤÀº ÇÑÁÙ¿¡ ´ë°í)
" F3 À» ´©¸£¸é // ¸¦ ¸Ç ¾Õ¿¡ Ãß°¡, 
" F4 ´Â ÇØÁ¦
" ^[ ´Â ctrl+v ´©¸£ÈÄ esc ¸¦ ´©¸£¸é Ãß°¡µÇ´Â Çѹ®ÀÚ
map <F3> :s/^/\/\//^[<enter>:nohlsearch<enter>
map <F4> :s/^\/\///^[<enter>

" folding ¼³Á¤ --------------------------------------------------------------
" doxygen ÄÚ¸àÆ® 󸮴 ~/.vim/after/syntax/cpp.vim À» »ç¿ëÇÑ´Ù.
set foldmethod=syntax
autocmd BufRead *.h syn region myFold start="{" end="}" transparent fold
autocmd BufRead *.cpp syn region myFold start="{" end="}" transparent fold
autocmd BufRead *.c syn region myFold start="{" end="}" transparent fold
autocmd BufRead *.c syn sync fromstart

" java ÆÄÀÏ ÀÐÀ» ¶§´Â myjava.vim À» import 
"au BufNewFile,BufRead *.java :source ~/.vim/myjava.vim

" ¹®¼­ º¸´ø ÀÚ¸®·Î jump Çؼ­ ¿­¾îÁØ´Ù
" .viminfo ·ÎºÎÅÍ Ä¿¼­ À§Ä¡¸¦ Àоî¿À´Â °Í
" 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 

" Clever Tab features -------------------------------------------------------
function! CleverTab()
    if strpart( getline('.'), 0, col('.')-1 ) =~ '^\s*$'
        return "\<Tab>"
    elseif strpart( getline('.'), col('.')-1, 1 ) == ' '
		return "\<Tab>"
    else 
        return "\<C-N>"
endfunction
inoremap <Tab> <C-R>=CleverTab()<CR>

"""""" ÀÌÇÏ GUI °ü·Ã ¿É¼Çµé

" a ºí·° ¼±Åýà Ŭ¸³º¸µå·Î ÀÚµ¿º¹»ç
" m ¸Þ´º
" r(¿À¸¥ÂÊ) l(¿ÞÂÊ) b(¾Æ·¡) ½ºÅ©·Ñ¹Ù
" T   Åø¹Ù
set guioptions=amr

" ÇÑ¿µ ÀÔ·Â »óÅ¿¡ µû¶ó Ä¿¼­ »ö±òÀ» ´Ù¸£°Ô..
"if has('multi_byte_ime')
"    highlight Cursor guibg=white guifg=NONE
"    highlight CursorIM guibg=Yellow guifg=NONE
"endif

set selectmode=mouse " ¸¶¿ì½º·Î ºí·° ¼³Á¤ °¡´ÉÇÏ°Ô
set guifont=±¼¸²Ã¼:h12 " ÆùÆ® ¼³Á¤
set lines=40 columns=100 " âũ±â¼³Á¤

" (¼öÁ¤) Àӽà ÆÄÀÏ, ¹é¾÷ ÆÄÀÏ »ý¼º °æ·Î
set dir=D:\vimbackup\
set bdir=D:\vimbackup\

EditText|FindPage|DeletePage|LikePages| Valid XHTML 1.0! Valid CSS! powered by MoniWiki