"Vim"의 두 판 사이의 차이
ph
5번째 줄: | 5번째 줄: | ||
** <code>:Te</code> | ** <code>:Te</code> | ||
* if you fix this options " set ic, set noic". it is somewhere sometimes teasing. when you are searching, insert '\c'(or '\C') at the end. (eg: /example\c will match with 'Example'). :help pattern | * if you fix this options " set ic, set noic". it is somewhere sometimes teasing. when you are searching, insert '\c'(or '\C') at the end. (eg: /example\c will match with 'Example'). :help pattern | ||
− | * <code>function! GnuIndent() | + | * <code> |
+ | function! GnuIndent() | ||
setlocal cinoptions=>4,n-2,{2,^-2,:2,=2,g0,h2,p5,t0,+2,(0,u0,w1,m1,//0 | setlocal cinoptions=>4,n-2,{2,^-2,:2,=2,g0,h2,p5,t0,+2,(0,u0,w1,m1,//0 | ||
setlocal shiftwidth=2 | setlocal shiftwidth=2 |
2011년 11월 20일 (일) 14:16 판
- auto completion in command line mode. :help wildmode I am using
:set wildemode=list:longest
- :highlight LineNr term=bold cterm=NONE ctermfg=DarkGrey ctermbg=NONE gui=NONE guifg=DarkGrey guibg=NONE (from here)
- 이미 읽은 파일의 인코딩 변경
:e ++enc=euc-kr
(from here) - tab으로 편집 :help tabpage or :help tabe
:Te
- if you fix this options " set ic, set noic". it is somewhere sometimes teasing. when you are searching, insert '\c'(or '\C') at the end. (eg: /example\c will match with 'Example'). :help pattern
function! GnuIndent()
setlocal cinoptions=>4,n-2,{2,^-2,:2,=2,g0,h2,p5,t0,+2,(0,u0,w1,m1,//0
setlocal shiftwidth=2
setlocal tabstop=8
endfunction
au FileType c,cpp,php call GnuIndent()