많은 플러그인중에서도 반드시 프로그래밍에서 써줘야 하는 플러그인이다.
1. Taglist
taglist.vim : Source code browser (supports C/C++, java, perl, python, tcl, sql, php, etc)
참조사이트: http://www.geocities.com/yegappan/taglist/
http://vim.sourceforge.net/scripts/script.php?script_id=273
Version 3.1 (1st November 2003)
The latest version of the taglist plugin is 3.1. You can download this version from here
2. Install & Configuration
2.1 install
설치는 간단하게 다음파일에 위치하면 된다.
VIM 홈디렉토리. $VIM 밑에 다음파일을 복사.
plugin/taglist.vim - main taglist plugin file
doc/taglist.txt - documentation (help) file
2.2 configuration
$VIM 에서 실행하기 위한 환경을 읽는 vimrc 에 다음행을 추가
nnoremap <silent> <F7> :TlistUpdate<CR>
nnoremap <silent> <F8> :Tlist<CR>
nnoremap <silent> <F9> :TlistSync<CR>
F7 ~ F8 키를 맵핑시킨다.
F8 을 누르면 tag 파일이 열린다. (토글 )
현재 키보드위치의 태그리스트를 보려면 파일의 원하는 위치에서 F9 를 누른다.
$VIM 에서 태그파일의 위치를 검사하기위해서 다음줄을 추가
set tags=.\tags,..\tags,
* 소스 파일로 부터 태그를 만들려면 ctags 툴이 필요하다.
33개의 프로그래밍 언어를 지원한다.C,C++,C#, Perl/PHP/SQL, Python 등.
출처: http://ctags.sourceforge.net/
ex·u·ber·ant : produced in extreme abundance : PLENTIFUL synonym see PROFUSE
- Used in at least 46 countries in all 7 continents (including Antarctica!)
- Supports 33 programming languages
- Featured in the book, Learning the vi Editor, a title in the O'Reilly series
- Covered in the March 2001 issue of C++ Users Journal, "Navigating Linux Source Code"
- Praised in the Weekend Mechanic column of the June 1997 issue of Linux Gazette
- Freely available under the terms of the GNU General Public License
- Included in major Linux distributions
Version 5.5.2 [17 September 2003]
Contents | Package |
Source only distribution (gzipped) | ctags-5.5.2.tar.gz |
Red Hat source RPM | ctags-5.5.2-1.src.rpm |
Red Hat 9 binary RPM | ctags-5.5.2-1.i386.rpm |
Source and binary for Windows 98/NT/2000/XP | ec552w32.zip |
1. 태그파일 만드는 법.
ctags *.* : 현재 디렉토리부터의 모든 파일로부터 태그 파일 (tags) 를 만든다.
ctags -R . : 현재 디렉토리부터 (서브디렉토리포함) 의 모든 파일로부터 태그 파일 (tags) 를 만든다.
[출처] [본문스크랩] VIM. Plugin - Taglist|작성자 쿠마
'OS > Linux' 카테고리의 다른 글
리눅스에서 사용되는 메모리 모델을 이해 (0) | 2012.03.09 |
---|---|
gdb 및 gdbserver 컴파일 및 간단한 사용기 (0) | 2012.03.09 |
리눅스 압축 - tar zip gz bz2 정리 (0) | 2012.03.09 |
ctags & cscope 설치 및 사용 (0) | 2012.03.09 |
리눅스에서 intel compiler (0) | 2012.03.06 |