Vim

ph
Admin (토론 | 기여)님의 2017년 4월 10일 (월) 10:55 판
이동: 둘러보기, 검색

Auto completion in command line mode

:help wildmode  

I am using

:set wildemode=list:longest


Display line numbers

:highlight LineNr term=bold cterm=NONE ctermfg=DarkGrey ctermbg=NONE gui=NONE guifg=DarkGrey guibg=NONE  

[1]


이미 읽은 파일의 인코딩 변경

:e ++enc=euc-kr

[2]


tab으로 편집

:help tabpage
:help tabe

ref. :Te


temporary ic when searching

insert '\c'(or '\C') at the end. (eg: /example\c will match with 'Example').
ref. :help pattern


Gnu indent

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()