어쩌라구..?? ㅡㅡa..

Posted
Filed under Linux/vi
윈도우용 gvim 에는 visual studio용 plug-in이 있다.
나도 아직 설치는 안해봤고, visual studio 6.0만 쓰긴 하지만
어딘가의 블로그에서 괜찮은걸 건진것 같다.

gVim - VS6.0 plug-in

사용기는 나중에...
2006/12/05 01:32 2006/12/05 01:32
Posted
Filed under Linux/vi
vim 7버전에서 ^P나 ^N을 누르면 자동 완성 기능이 작동한다.
이때 팝업으로 자동완성 목록을 보여주는 기능이 vim에 내장되어있는데,
그 기능을 켜고 끄는 방법이다.

끄기
:set cot=

켜기
:set cot=


도움말은 :h 'completeopt' 를 입력하면 볼 수 있다.
2006/10/18 22:32 2006/10/18 22:32
Posted
Filed under Linux/vi
ubuntu의 경우 다음의 명령으로 설치한다.
sudo apt-get install vim-gnome

설치할수 있는 vim종류가 여러가지 있지만, 이리저리 설치해본 결과로
vim-gnome 패키지를 설치하는게 가장 이상없이 잘 동작하였다.

패키지마다 어떠한 차이가 있는지는 모르겠지만
아마도 내부는 거의 비슷하지 않을까 생각된다.

Fedora core 5 의 경우 설치 디스크에 rpm 패키지로 들어있다.



그리고 기본으로 들어있는 컬러 스킴 외에 다른 스킨을 써 보고 싶다면,
여기에서 찾아보기 바란다. vim 홈페이지의 컬러 스킴 목록으로 연결된다.
추천하는 다운로드는 Colors Sampler Pack이다. 많이 쓰이는 컬러 스킴을
모아놓은 배포판 스타일의 스킴인데, 설치하면 gvim 메뉴에 Theme라는 스킴
관리 메뉴가 따로 생겨서 사용하기 쉽다.
2006/06/04 14:26 2006/06/04 14:26
Posted
Filed under Linux/vi
원래 소스는 다른데서 업어와서
내 필요와 기호에 따라 이리저리 선택하고 설정해서 쓰는 파일이다.

실제로 내가 안 쓰는 옵션도 있지만 주석으로 막혀있고,
그것들도 언젠가 필요할때가 올 것이다.

set nocompatible
" source $VIMRUNTIME/vimrc_example.vim

" set nu
syntax on
filetype on

"set tabstop=2
set shiftwidth=2
set softtabstop=2
set backspace=indent
set expandtab

au BufNewFile,BufReadPost Makefile set sw=4 sts=0 noexpandtab
au BufNewFile,BufReadPost *.py set ts=4 sw=4 sts=0 noexpandtab

set nowrap
"set cinoptions=>s:0=s(0W0g0hsi2s
set cindent
set ignorecase
set smartcase
set nohlsearch
set incsearch

colo pablo
"colo koehler
"colo elflord
"colo torteiocharset=utf8
"colo delek

"colo billw
"colo darkblack
"colo dante
"colo sean

"set bg=dark
" set backupdir=~/.vim.backup
" set tw=72
" set fileencodings=utf8
"set csprg=/usr/bin/cscope
" set path=.,~/
" set path=.,~/data,~/data/ani
" lang ko_KR

" let g:winManagerWindowLayout = 'TodoList,FileExplorer|BufExplorer'

" runtime ftplugin/man.vim

" if has("cscope")
" set csprg=/usr/bin/cscope
" set csto=0
" set cst
" set nocsverb
" add any database in current directory
" if filereadable(".cscope.out")
   " cs add .cscope.out
" else add database pointed to by environment
" elseif $CSCOPE_DB != ""
   " cs add $CSCOPE_DB
" endif
" set csverb
" endif

"set tags+=./.tags
"set tags+=/usr/include/GL/tags
"set tags+=/usr/src/linux-source-2.6.15/tags
"/usr/include/linux/tags


" ctags commands
if version >= 500

func! Sts()
     let st = expand("<cword>")
     exe "sts ".st
endfunc
nmap ,st :call Sts()<CR>

func! Tj()
     let st = expand("<cword>")
     exe "tj ".st
endfunc
nmap ,tj :call Tj()<CR>

endif


" Java commands
func! Jc()
     let jc = expand("%")
     exe "!javac ".jc
endfunc
nmap ,jc :call Jc()<CR>

func! Jr()
     let jr = expand("%:r")
     exe "!java ".jr
endfunc
nmap ,jr :call Jr()<CR>



nmap ,b1 :b!1<CR>
nmap ,b2 :b!2<CR>
nmap ,b3 :b!3<CR>
nmap ,b4 :b!4<CR>
nmap ,b5 :b!5<CR>
nmap ,b6 :b!6<CR>
nmap ,b7 :b!7<CR>
nmap ,b8 :b!8<CR>
nmap ,b9 :b!9<CR>
nmap ,bn :bn!<CR>
nmap ,bp :bp!<CR>

map ,n :cn<CR>
map ,p :cp<CR>
map ,l :cl<CR>
map ,w :cw<CR>

map ,ma :w<CR>:make<CR>

"set gfn=curier\ 10
set gfn=Bitstream\ Vera\ Sans\ Mono\ 10
set nohls
set nobackup
set noswapfile


2009년 9월 21일 수정
2006/02/23 17:37 2006/02/23 17:37