vi 에서 % 로 짝을 찾을 수 있는 기능이 있는데 이때,,,
글쓴이: Seok-gi Hong@Google / 작성시간: 화, 2022/03/29 - 3:31오후
안녕하세요
vi 를 사용하면 % 를 이용하여
괄호 { 에서 % 를 누르면 } 이 괄호를 찾아 주고,
마찬가지로 ( ) 도 찾아 줍니다.
#ifdef 도 마찬가지로 찾아 주는데,
제가 문의 드릴 것은 <<<<<< >>>>>> 이런 문자열 % 로 짝지를 찾아 줄 수 있도록 수정하는 방법이 있는지 입니다.
patch 를 할 경우 conflict 가 발생하면 <<<<<< >>>>>> 이렇게 표기를 해주고 있어서
% 에 이 문자열을 추가 시키면 짝지찾는데 도움이 될 것 같아서요
Forums:
:help matchpairs
:set matchpairs+=<:>
.vimrc 에 아래 추가하면 됩니다.
.vimrc 에 아래 추가하면 됩니다.
packadd! matchit
let b:match_words = '<<<<<<<:=======:>>>>>>>'
댓글 달기