Source code indexer. What does it do?  Indexes source code for fast lookups of methods, variables, structs, macros, …  But LXR does this… Ctags can.

Slides:



Advertisements
Similar presentations
Seven habits of effective text editing
Advertisements

The continuing story of Vim Bram Moolenaar
MARKETPLACE TRANSITION FROM CLASSIC INTERFACE TO PHOENIX INTERFACE.
SalsaJ tutorial.
QWERTY Keyboards.
A Guide to Unix Using Linux Fourth Edition
Firefox Addon development tutorial 谢烜
Program Development Tools IDE vs point tools Two tool flavors exist for developing embedded software: -IDEs: (Integrated Development Environments) i.e.,
VIM: The basics Tang Wai-Chung, Matthew (MaFai) 29/12/2006.
Vi Editor TA for ITIS3100: Xu Fei
Linux+ Guide to Linux Certification, Second Edition
CS 497C – Introduction to UNIX Lecture 10: The vi/vim Editor Chin-Chih Chang
Verbatim 5.0 Word 2010 David Williams Newton High School
Computers as an Expressive Medium Lab 8: jar signing, debugging Mayhew Seavey.
CSE 451: Operating Systems Section 2 Interrupts, Syscalls, Virtual Machines, and Project 1.
Linux Shell. 2 Linux Command-Line Interface ■ Linux shells: A shell is a command interpreter that allows you to type commands from the keyboard to interact.
L INUX C OMMAND L INE I NTERFACE G UNAANBAN.G
Keyboard Shortcuts In The Web Browser Betül Şahin
Using Linux Text Editors. Use Non-Graphical Linux Text Editors Graphical Text Editor.
CprE 288 – Quick intro for compiling C in Linux
PHP. Why should we learn web programming? No need write socket programming. - You can forget TCP/IP & OSI layers. - Web server handles socket tasks for.
Chapter 3 Mastering Editors
Chapter Three The UNIX Editors. 2 Lesson A The vi Editor.
Linux+ Guide to Linux Certification Chapter Four Exploring Linux Filesystems.
Linux+ Guide to Linux Certification, Third Edition
Web Design (2) Brackets - introduction. Brackets Brackets is a web design code editor It is an open-source project initiated by Adobe (creator of Dreamweaver)
HTML INTRODUCTION. What is HTML?  HTML stands for Hypertext Markup Language  Developed in 1990  Hidden code that helps us communicate with others on.
Vim Editor and Unix Command gcc compiler Computer Networks.
Week 3 Exploring Linux Filesystems. Objectives  Understand and navigate the Linux directory structure using relative and absolute pathnames  Describe.
Introduction to Unix – CS 21 Lecture 8. Lecture Overview More detail on emacs and vi Regular expression matching in emacs and vi.
Chapter 5 Editing Text Files. Basic Concept A text editor works on a file buffer that is a memory copy of a disk file The disk file is not updated until.
Text editors Why should I use an editor ? It is very important to able to use at least one text mode editor a text mode editor is so useful on remote machines.
Unix Editors. u Editors in Unix come in two general flavours: –modal editors have "modes" v generally input mode and command mode –input mode allows entry.
EMACS Jim Vallino Proud emacs user since The truth about editors Editors are like religions. Everyone has one that they like.
NA-MIC National Alliance for Medical Image Computing Slicer / ITK / VTK Development Tools Steve Pieper, PhD.
Chapter Three The UNIX Editors.
NA-MIC National Alliance for Medical Image Computing Slicer / ITK / VTK Development Tools Steve Pieper, PhD.
PYP002 Intro.to Computer Science Microsoft Word1 Lab 04 - a Microsoft Windows Applications Common Features.
Headings are defined with the to tags. defines the largest heading. defines the smallest heading. Note: Browsers automatically add an empty line before.
Lesson 3 Notes. 1.Existing presentations can be opened and modified 2.You can open an existing presentation by choosing Open under the File Tab, by double.
Practical Kinetics Exercise 0: Getting Started Objectives: 1.Install Python and IPython Notebook 2.print “Hello World!”
Linux+ Guide to Linux Certification, Second Edition Chapter 4 Exploring Linux Filesystems.
HTML-I Basic HTML Elements. HTML (Hyper Text Markup Language) HTML is a document layout and hyperlink- specification language. i.e. a language used to.
McGraw-Hill Technology Education © 2004 by the McGraw-Hill Companies, Inc. All rights reserved. Office Word 2003 Working Together 1 Word 2003 and Your.
Installing and Using Evolve Evolve is written in Java and runs on any system with Java 1.6 Download Evolve from Unzip.
By Justin Higgins. What is a text editor? If you’ve ever used Microsoft word you know what a text editor is (albeit a bloated one). When you write a program.
Purdue Linux Users Group Presents Linux 201: Session 1 Everything you ever wanted to do in VIM Thor Smith.
Advanced Vim (Vi Improved). Announcement Managements requests that all the Emacs chauvinist in the audience refrain from arguing with the Vim chauvinist.
Introduction to the Command Line for Data Analysts Gus Cavanaugh
Development Environment Basics
Turning method call into an object
Chapter 11 Command-Line Master Class
Vim basics Vi IMproved.
Linux/Unix - Download Ubuntu Linux :
What Every Vi User Should Know about Vim
Guide To UNIX Using Linux Third Edition
Linux.
Technical University of Kosice
CENG2400 Tutorial 1 Keil IDE CENG2400 tutorial 1 v.7a.
VIM - Vi IMproved Bryce Handerson
Text Editors Vim (Chapter 6) Emacs (Chapter 7)
A Brief Overview of Unix
Java External Libraries & Case Study
Run Java file with Window cmd
Tools for Source Browsing and Debugging
Dreamweaver Basics.
Linux Operations and Administration
The Emacs Editor Read: Forouzan, Appendix C
CSCI The UNIX System Editing files
RText CSSE2003 Tu8a Adam Setch Dale Bliss Steven Edge Milosh Kovacevic.
Presentation transcript:

Source code indexer

What does it do?  Indexes source code for fast lookups of methods, variables, structs, macros, …  But LXR does this… Ctags can be used directly in vim or emacs Don’t need to switch to a browser Faster

How to install  aptitude install ctags (installs exuberant ctags)  Run “ctags –R” while in the linux kernel source directory Creates a file called “tags” in the source directory Running “ctags –R ” creates an index of, but creates the file in the pwd

Basic Commands  Vim –t Jumps to first match of tag  In normal mode :tjump or :tjump / ○ Search for tag or pattern, allow user to select from matches :tag or :tag / ○ Search for tag or pattern, jump to first match

More Commands  In normal mode :tags ○ Display current tag stack :pop ○ Pop top tag from stack, go to tag on top of stack

Basic Key Mappings  In normal mode g Ctrl-] :tjump ○ Allow user to select match for tag under cursor Ctrl-] :tag ○ Jump to first match of tag under cursor Ctrl-T :pop ○ Pop top tag from stack, go to new tag on top of stack

Window Key Mappings Ctrl-W g ] :stjump ○ Split window, and allow user to select match of tag Ctrl-W ] :stag ○ Split window, go to first match of tag Ctrl-W g } :ptjump ○ Open preview window, allow user to select match of tag Ctrl-W } :ptag ○ Open preview window, go to first match of tag

Other notes  Vim looks for tags file in tags option, or, if it doesn’t exist, for the tags file in its pwd :set tags= Add to.vimrc if lazy  ctags --list-kinds=c, list kinds of tags for c language

More Notes  Ctrl-] and g Ctrl-] open result in current window If current buffer in vim isn’t saved, vim complains Auto save buffer on buffer switch with :set autowrite, or tell vim to ignore unsaved buffers with :set hidden (be careful doing :q! with this option) Or just save the file

References  ams_with_tags 