在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
1. install vim and vim-gnome
sudo apt-get install vim
sudo apt-get install vim-gnome
2. install vim plugin c.vim download cvim.zip from http://www.vim.org/scripts/script.php?script_id=213
if there already have ~/.vim, unzip cvim.zip and copy the files to ~/.vim matched folders.
$ mkdir ~/.vim $ cd ~/.vim $ unzip cvim.zip Add the following line to the ~/.vimrc to enable the plugin for Vim editor.
$ vim ~/.vimrc filetype plugin on for details,following http://www.thegeekstuff.com/2009/01/tutorial-make-vim-as-your-cc-ide-using-cvim-plugin/
3.install ctags downloadhttp://ctags.sourceforge.net/
tar -xvjpf ctags-5.8.tar.gz
install from source code.
$ tar -xzvf ctags-5.8.tar.gz $ cd ctags-5.6 $ ./configure $ make # sudo make install
:set tags=/home/mark/vim71/tags
or set tags in ~/.vimrc. Now can go the the routine using Ctrl+] and back using Ctrl+T 4.TagList download TagList from http://vim-taglist.sourceforge.net/
unzip taglist_45.zip
copy the files in doc and plugin to ~/.vim matched folders
Add the following line to the ~/.vimrc
let Tlist_Show_One_File=1 let Tlist_Exit_OnlyWindow=1 and start vim taglist window :Tlist 5 WinManager http://www.vim.org/scripts/script.php?script_id=95 unzip winmanager.zip in ~/.vim
open folder using :e ~/vim71 add to ~/.vimrc
let g:winManagerWindowLayout='FileExplorer|TagList' nmap wm :WMToggle<cr> 6. install cscope
sudo apt-get install cscope
add following lines to ~/vimrc
set cscopequickfix=s-,c-,d-,i-,t-,e-
cd /home/pathofsourcefile cscope -Rbq
cs add /home/pathofsourcefile/cscope.out /home/pathofsourcefile
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论