env/env. vim2015. 1. 20. 17:52
C:\Program Files\Vim\_vimrc.html
 1 :colo koehler
 2 set tabstop=4
 3 set title
 4 set number
 5 syntax on
 6 set background=dark
 7 set nu
 8 
 9 set hls is
10 set ic
11 
12 set ai
13 set si
14 set shiftwidth=4
15 
16 set nobackup
17 set ruler
18 
19 set showcmd
20 set showmatch
21 
22 set autowrite
23 set fenc=korean
24 set fencs=ucs-bom,utf-8,euc-kr,latin1
25 
26 au BufWinLeave *.sh mkview
27 au BufWinLeave *.sh silent loadview
28 set nocompatible
29 source $VIMRUNTIME/vimrc_example.vim
30 source $VIMRUNTIME/mswin.vim
31 behave mswin
32 
33 set showcmd             " Show (partial) command in status line.
34 set showmatch           " Show matching brackets.
35 set ignorecase          " Do case insensitive matching
36 set smartcase           " Do smart case matching
37 set incsearch           " Incremental search
38 set autowrite           " Automatically save before commands like :next and :make
39 set nu
40 set hidden              " Hide buffers when they are abandoned
41 "set mouse=a            " Enable mouse usage (all modes)
42 set background=dark
43 
44 autocmd BufReadCmd *.class call <SID>ReadClass(expand("<afile>:p:h"), expand("<afile>:t:r"))
45 
46 function s:ReadClass(dir, classname)
47     execute "cd " . a:dir
48     "execute "!jad -noctor -ff -i -p " . a:class
49     execute "0read !jad -noctor -ff -i -p " . a:classname
50     "au bufreadpost, filereadpost %!d:jad -noctor -ff -i -p %
51     1
52     set ft=java
53     setlocal readonly
54     setlocal nomodified
55 endfunction
56 
57 set diffexpr=MyDiff()
58 function MyDiff()
59   let opt = '-a --binary '
60   if &diffopt =~ 'icase' | let opt = opt . '-i ' | endif
61   if &diffopt =~ 'iwhite' | let opt = opt . '-b ' | endif
62   let arg1 = v:fname_in
63   if arg1 =~ ' ' | let arg1 = '"' . arg1 . '"' | endif
64   let arg2 = v:fname_new
65   if arg2 =~ ' ' | let arg2 = '"' . arg2 . '"' | endif
66   let arg3 = v:fname_out
67   if arg3 =~ ' ' | let arg3 = '"' . arg3 . '"' | endif
68   let eq = ''
69   if $VIMRUNTIME =~ ' '
70     if &sh =~ '\<cmd'
71       let cmd = '""' . $VIMRUNTIME . '\diff"'
72       let eq = '"'
73     else
74       let cmd = substitute($VIMRUNTIME, ' ', '" ', '') . '\diff"'
75     endif
76   else
77     let cmd = $VIMRUNTIME . '\diff'
78   endif
79   silent execute '!' . cmd . ' ' . opt . arg1 . ' ' . arg2 . ' > ' . arg3 . eq
80 endfunction

'env > env. vim' 카테고리의 다른 글

vim encoding 변경  (0) 2014.04.29
빈줄삭제  (0) 2013.12.09
[Vim] .vimrc 기본 설정  (0) 2013.04.16
Posted by wooix