티스토리 뷰

Software/Tips

gvim configuration. (_vimrc)

coart 2009. 2. 16. 17:29

set nocompatible
source $VIMRUNTIME/mswin.vim
behave mswin

set guioptions-=m
set guioptions-=T
set lines=50

set gfn=Consolas:h12:cANSI:b:i
"set gfn=Andale_Mono:h10:cANSI
"set gfn=Monaco:h12:cANSI:
"set gfn=Bitstream_Vera_Sans_Mono:h11:cANSI:i:b
"set gfn=DejaVu_Sans_Mono:h11:cANSI
set fileformats=unix,dos
set scrolloff=3
set tags=tags;/
set hlsearch
set incsearch
set nostartofline
set showmatch
"set textwidth=80
set laststatus=2
set wrap
set ruler
filetype indent on
set autoindent
set sts=4
set shiftwidth=4
set encoding=utf-8

let c_space_errors=1
let java_space_errors=1

colorscheme evening

syntax on
au BufNewFile,BufReadPost *.c,*.h set cindent smarttab shiftwidth=4 et
au BufNewFile,BufReadPost *.cpp,*.cc set cindent smarttab shiftwidth=4 et
au BufNewFile,BufReadPost *.java set cindent smarttab shiftwidth=8 noet
au BufNewFile,BufReadPost *.php3 set cindent smarttab shiftwidth=4 et
au BufNewFile,BufReadPost *.pl  set cindent smarttab shiftwidth=4 et
au BufNewFile,BufReadPost *.js  set cindent smarttab shiftwidth=4 et
au BufNewFile,BufReadPost *.py  set cindent smarttab shiftwidth=4 et
au BufNewFile,BufReadPost *.tex  set autoindent
au BufNewFile,BufReadPost *.txt  setf txt
au BufNewFile,BufReadPost Makefile*,makefie*,*.mk set noet

nnoremap <silent> <F9> :TlistToggle<CR>
nnoremap <silent> <F10> :TlistAddFilesRecursive . *.java<CR>
nnoremap <silent> <F11> :!python % <CR>
nnoremap <silent> <F12> :!svn commit <CR


댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
«   2024/11   »
1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30