'vim'에 해당되는 글 2건

  1. 2007/02/13 vim + ctags
  2. 2004/06/14 VIEWING TABS

vim + ctags

컴퓨터/System 2007/02/13 02:17
http://www.vim.org/scripts/script.php?script_id=273

taglist 플러그인을 받는다.
압축을 풀고 vim 디렉토리의 plugin 이나 ~/.vim/plugin 아래에 taglist.vim 파일을 복사한다.

ctags 설치한다.

젠투에서 emerge ctags 한 다음 which ctags 해도 해당 명령어를 찾지 못해서 검색해보니 확장된 ctags 인 exuberant-ctags 가 설치되어 있었다. ctags 로 링크 걸어준다.

c 소스 파일이 있는 디렉토리에서

$ ctags `find . -name "*c" -o -name "*h"`

ctags 는 recursive하게 검색해서 tag를 생성한다.
이제 vim으로 c 소스파일을 열고 :Tlist 하면 좌측에 소스트리가 나타난다.
TAG ctags, vim

VIEWING TABS

컴퓨터/System 2004/06/14 20:12

/usr/share/vim/vim61/doc/usr_05.txt


VIEWING TABS

When there are tabs in a file, you cannot see where they are. To make them
visible: >

:set list

Now every Tab is displayed as ^I. And a $ is displayed at the end of each line, so that you can spot trailing spaces that would otherwise go unnoticed.
A disadvantage is that this looks ugly when there are many Tabs in a file.
If you have a color terminal, or are using the GUI, Vim can show the spaces and tabs as highlighted characters. Use the 'listchars' option: >

:set listchars=tab:>-,trail:-

Now every tab will be displayed as ">---" and trailing white space as "-".
Looks a lot better, doesn't it?
TAG tabs, vim