日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 运维知识 > linux >内容正文

linux

linux vim tag,Vim基础知识之ctags 及 Taglist 插件

發(fā)布時間:2025/3/12 linux 38 豆豆
生活随笔 收集整理的這篇文章主要介紹了 linux vim tag,Vim基础知识之ctags 及 Taglist 插件 小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.

Vim基礎知識之ctags 及 Taglist 插件

1. 我的界面

2. ctags

exuberant ctags是一般Linux系統(tǒng)上缺省的ctags

我的ctags版本:Exuberant Ctags 5.9~svn20110310

簡單介紹

Used in at least 50 countries in all 7 continents (including Antarctica!)

Supports 41 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

Praised in Perl Buzz

Freely available under the terms of the GNU General Public License

Included in major Linux distributions

安裝方式

sudo apt-get install exuberant-ctags

.vimrc配置

""""""""""""""""""""""""""""""""""

"plugin-->ctags(exuberant-ctags)

""""""""""""""""""""""""""""""""""

set tags=tags

set autochdir

3. taglist

我的taglist版本:4.6

下載

taglist_46.zip 可以到Linux公社資源站下載:

------------------------------------------分割線------------------------------------------

具體下載目錄在 /2017年資料/3月/8日/Vim基礎知識之ctags 及 Taglist 插件/

------------------------------------------分割線------------------------------------------

安裝

解壓:得到doc和plugin兩個文件夾

轉移:

//the version of vim on my linux is 7.4

sudo cp doc/taglist.txt /usr/share/vim/vim74/doc/

sudo cp plugin/taglist.vim /usr/share/vim/vim74/plugin/

.vimrc配置

""""""""""""""""""""""""""""""""""

"plugin-->taglist

""""""""""""""""""""""""""""""""""

let Tlist_Auto_Open=1 "auto open Tlist

let Tlist_Exit_OnlyWindow = 1 "exit Tlist if close sourse file

let Tlist_Show_One_File = 1 "only show current file's Tlist

let Tlist_Compact_Format=1 "Hide help menu

let Tlist_Ctags_Cmd = '/usr/bin/ctags'

taglist命令

ctrl + ww taglist與代碼窗口的切換

跳到光標下tag所定義的位置,用鼠標雙擊此tag功能也一樣

o 在一個新打開的窗口中顯示光標下tag

顯示光標下tag的原型定義

u 更新taglist窗口中的tag

s 更改排序方式,在按名字排序和按出現(xiàn)順序排序間切換

x taglist窗口放大和縮小,方便查看較長的tag

+ 打開一個折疊,同zo

- 將tag折疊起來,同zc

* 打開所有的折疊,同zR

= 將所有tag折疊起來,同zM

[[ 跳到前一個文件

]] 跳到后一個文件

q 關閉taglist窗口

顯示幫助

總結

以上是生活随笔為你收集整理的linux vim tag,Vim基础知识之ctags 及 Taglist 插件的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內容還不錯,歡迎將生活随笔推薦給好友。