'env'에 해당되는 글 5건

  1. 2015.01.20 [env.vim] vimrc
  2. 2014.04.29 vim encoding 변경
  3. 2013.12.09 빈줄삭제
  4. 2013.04.18 [git] 간편 안내서 link
  5. 2013.04.16 [Vim] .vimrc 기본 설정
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
env/env. vim2014. 4. 29. 17:25

:e ++enc=euc-kr

:w ++enc=euc-kr (저장해라고 라올때)


여기서 안바뀌면 

:set fencs=ucs-bom,utf-8,cp949


fencs 정보부터 수정




출처 : https://kldp.org/node/32987



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

[env.vim] vimrc  (0) 2015.01.20
빈줄삭제  (0) 2013.12.09
[Vim] .vimrc 기본 설정  (0) 2013.04.16
Posted by wooix
env/env. vim2013. 12. 9. 10:41

:g/^$/d



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

[env.vim] vimrc  (0) 2015.01.20
vim encoding 변경  (0) 2014.04.29
[Vim] .vimrc 기본 설정  (0) 2013.04.16
Posted by wooix
env/env. git2013. 4. 18. 00:01

http://rogerdudler.github.io/git-guide/index.ko.html

Posted by wooix
env/env. vim2013. 4. 16. 13:44

set nocompatible

set tabstop=4

set title

set number

syntax on

set background=dark

set nu


set hls is

set ic


set ai

set si

set shiftwidth=4


set nobackup

set ruler


set showcmd

set showmatch


set autowrite "Ctrl+z 사용시 buffer의 내용을 저장하고 stop시킴


:colo koehler


" java decompiler 설정      --> jad.exe 미리 설치 하세욤

autocmd BufReadCmd *.class call <SID>ReadClass(expand("<afile>:p:h"), expand("<afile>:t:r"))


function s:ReadClass(dir, classname) 

 execute "cd " . a:dir

 execute "0read !jad -noctor -ff -i -p " . a:classname

 1

 set ft=java

 setlocal readonly

 setlocal nomodified

endfunction



이걸로 간다 자세한 설명은 생략한다.

optional ) :set list


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

[env.vim] vimrc  (0) 2015.01.20
vim encoding 변경  (0) 2014.04.29
빈줄삭제  (0) 2013.12.09
Posted by wooix