Vim

ph
175.193.109.55 (토론)님의 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()