"Vim"의 두 판 사이의 차이
ph
1번째 줄: | 1번째 줄: | ||
+ | ==autocomplete에 dash포함== | ||
+ | :set lisp [http://stackoverflow.com/a/10789559/766330] | ||
+ | 다른 방법으로는, | ||
+ | :set iskeyword+=\- [http://stackoverflow.com/a/27070192/766330] | ||
+ | 이용 | ||
+ | {{break}} | ||
+ | |||
==Auto completion in command line mode== | ==Auto completion in command line mode== | ||
:help wildmode | :help wildmode | ||
I am using | I am using | ||
:set wildemode=list:longest | :set wildemode=list:longest | ||
− | |||
− | |||
==Display line numbers== | ==Display line numbers== |
2017년 4월 10일 (월) 15:13 판
목차
autocomplete에 dash포함
:set lisp [1]
다른 방법으로는,
:set iskeyword+=\- [2]
이용
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
이미 읽은 파일의 인코딩 변경
:e ++enc=euc-kr
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()
Copy using t command
:81,91t.<enter>
Copy the current lines to your present cursor location. [5]