""""""""""""""""""""""""""""""""""""" " basic set " """"""""""""""""""""""""""""""""""""" syntax on set cindent set nu set ruler set title set ts=4 sw=4 sts=4 "set tabstop, shiftwidth, softtabstop set ls=2 "set laststatus "colorscheme slate set fileencodings=utf-8,euc-kr set nobackup "set ic "ignorecase set hlsearch set path=.,../include "set makeprg=colormake set viminfo= "set cursorline "set cursorcolumn set nocompatible set cino=(0 "http://stackoverflow.com/questions/88931/lining-up-function-parameter-lists-with-vim
au BufReadPost * \ if line("'\"") > 0 && line("'\"") <= line("$") | \ exe "norm g`\"" | \ endif
func! ManPage() let sm = expand("") exe "!man -S 2:3:4:5:6:7:8:9:tcl:n:1:p:o ".sm endfunc nnoremap K :call ManPage()<cr><cr>
"copen "for quickfix list. used with cn and cp command. make is only executed in vim-command-mode.
set tags=tags,../tags,../../tags,../../../tags,../../../../tags,../../../../../tags, set tags+=/usr/include/tags
""""""""""""""""""""""""""""""""""""" " for code folding " """"""""""""""""""""""""""""""""""""" set foldmethod=syntax set nofoldenable
""""""""""""""""""""""""""""""""""""" " gvim only " """"""""""""""""""""""""""""""""""""" set guifont=consolas:h8 au guienter * winsize 180 64 set guioptions-=T "remove Toolbar set guioptions-=m "remove Menubar "Set the window position automatically "http://jentshin.new21.org/v2006/bbs/view.php?id=study&no=156 augroup my_winpos_au au! au GUIEnter * let x=getwinposx() au GUIEnter * let y=getwinposy() au GUIEnter * if x > 560 au GUIEnter * let x=560 au GUIEnter * elseif x < 16 au GUIEnter * let x=16 au GUIEnter * endif au GUIEnter * if y > 170 au GUIEnter * let y=170 au GUIEnter * elseif y < 16 au GUIEnter * let y=16 au GUIEnter * endif au GUIEnter * exe "winpos " . x y au GUIEnter * unlet x y au GUIEnter * au! my_winpos_au augroup END
"mswin.vim 은 주석처리 @_@ "slate 색 파일에서 PreProc 주석
ctags - Summary 코드 들의 태그파일<tags> 를 생성 - Usage command prompt> ctags -R 헤더파일에서 함수 proto-type 가져올 땐 -c-types=+p옵션 추가 - URL http://ctags.sourceforge.net/
taglist - Summary ctags 로 생성된 코드 태그에서 함수/매크로/변수 등을 출력하여 vsw에서 보여줌 - Usage vim command mode> :Tlist - URL http://www.vim.org/scripts/script.php?script_id=273 - Tip 오른쪽에 띄우고 싶으면 플러그인 파일을 열어서 "Tlist_Use_Right_Window" 를 1로 설정
svncommand - Summary Subversion (svn) integration plugin - Usage - URL http://www.vim.org/scripts/script.php?script_id=922 - Tip vim에서 \sv 하면 :SVNVimDiff
NERDTree - Summary Explorering filesystem in vim - Usage :NERDTree<tab> - URL https://raw.github.com/scrooloose/nerdtree/master/plugin/NERD_tree.vim
- Summary explore code - Usage 1. make shell-script as following and execute