黑龙江快乐十分

Ubuntu下vim的安装和基本配置简介

10/21/2015来源:网络管理人气:18822

  anzhuanghejibenyongfa

  1.yongrootzhanghudenglu,minglingxingzhongshuruvim,ruguoweianzhuanghuidedaoxiamiandetishi:

  chengxu“vim”yibaohanzaixialieruanjianbaozhong:

  * vim

  * vim-gnome

  * vim-tiny

  * vim-gtk

  * vim-nox

  qingchangshi:

  daimaruxia:

  apt-get install <xuandingderuanjianbao>

  anzhaotishishuru

  daimaruxia:

  apt-get install vim

  anzhuang。

  2.anzhuangwanchenghou,shuruvimhuijinruvimdebiaozhunmoshi,zheishianjianpandeijinrucharumoshi,zailimianxiedianshenmeba。

  3.anesctuichucharumoshi,jinrubiaozhunmoshi,zaizheigemoshixiayoujigejibenminglingyaozhangwo。

  :wq baocuntuichu

  i jinrucharumoshi

  x shanchudangqianguangbiaodezifu

黑龙江快乐十分  dd shanchudangqianxing,bingqiebaocundangqianxingdaojianqieban

  p zhantie

  :help 查看命令的帮助

  shangxiazuoyouyidongguangbiao

  4.shuru:w filename baocunwenjiandaodangqianmulu。

  5.:qtuichuvimyemian。

  6.xiacishuruvim filenamejiukeyibianjihuozhechakanzheigewenjianle。

  changyongchajian:

黑龙江快乐十分  1.ctagsanzhuang

黑龙江快乐十分  ctagskeyijianlishudesuoyin,shichengxuyuanzaibianchengshinengxunsudingweihanshu、bianliang、hongdingyidengweizhiquchakanyuanxing

  yixiashizaiubuntuxiactagsdexiazaianzhuanghepeizhiguocheng:

  xiazaibinganzhuangctags,zhongduanshurumingling

  fuzhidaima

  daimaruxia:

黑龙江快乐十分  sudo apt-get install ctags

黑龙江快乐十分  jianliyuanmasuoyin,biruwojingchangxuyaochayuedeneihedaima,erzheixiedaimafangzai/home/hjw951/arm/linux-2.6.12muluxia

黑龙江快乐十分  neimezaizhongduanjinrudaogaimuluhou,shuruminglingctags -r *,nihuifaxianduoleyigetagswenjian,zheigejiushisuoyinwenjian

黑龙江快乐十分  xiangvimzhucesuoyinwenjiantagsdelujing,yongrootyonghuzaizhongduanshurugedit /etc/vim/vimrc

  zaidakaiwenjiandezuihoutianjiayixing(dangran,jutilujinggenjunizijideqingkuang)

  set tags=/home/user/arm/linux-2.6.12/tags

  ranhouguanbizhongduanzhongxindakai,nijiukeyiyongvimzairenyidifangchakanyouguanlinuxdehanshuyuanxing

  2.taglistchajian

黑龙江快乐十分  xiangbiyongguosource insightderendoujidezheiyangyigegongneng:sinenggoubadangqianwenjianzhongdehong、quanjubianliang、hanshudengtagxianshizaisymbolchuangkou,yongshubiaodianshangshutag,jiutiaodaogaitagdingyideweizhi;keyianzimuxu、gaitagsuoshudeleihuoscope,yijigaitagzaiwenjianzhongchuxiandeweizhijinxingpaixu;ruguoqiehuandaolingwaiyigewenjian,symbolchuangkougengxinxianshizheigewenjianzhongdetag。

黑龙江快乐十分  zaivimzhongdetaglistchajiansuoshixiandejiushishangshuleisidegongneng,youxiegongnengbisiruo,youxiegongnengbisigengqiang。erqie,taglistchajianhaizaibuduanwanshanzhong!

  yaoshiyongtaglist plugin,bixumanzu:

黑龙江快乐十分  dakaivimdewenjianleixingzidongjiancegongneng:filetype on

  xitongzhongzhuangleexuberant ctagsgongju,bingqietaglist pluginnenggouzhaodaocigongju(yinweitaglistxuyaodiaoyongtalaishengchengtagwenjian)

  nidevimzhichisystem()diaoyong

黑龙江快乐十分  3.taglistanzhuang

黑龙江快乐十分  (1)zaiyonghuzhumulujianli.vim

  daimaruxia:

  [atom@localhost ~]$ mkdir .vim

  (2)jieyataglist_45.zdao.vimmuluxia

  daimaruxia:

  [atom@localhost ~]$ unzip taglist_45.zip -d .vim

  jieyahoudemulujiegouruxia

  daimaruxia:

  [atom@localhost ~]$ ls -r taglist

  taglist:

  doc plugin

黑龙江快乐十分  taglist/doc:

  taglist.txt

  taglist/plugin:

  taglist.vim

黑龙江快乐十分  (3)anzhuangtaglist

  [/code]

  [root@localhost atom]# cp /taglist/doc/taglist.txt /usr/share/vim/vim71/doc/

黑龙江快乐十分  [root@localhost atom]# cp /taglist/plugin/taglist.vim /usr/share/vim/vim71/plugin/[/code]

  (4)shengchengbangzhubiaoqian

  jinruvimdedoclujing。

  daimaruxia:

黑龙江快乐十分  cd /usr/share/vim/vim71/doc

黑龙江快乐十分  qidongvim,minglingmoshixiashuru

  :helptags . (.bukeshao,biaoshidangqianmulu。yekeyizairenyimuluzhongqidongvim,zhiyaozhiding:helptags usr/share/vim/vim71/doc/)

黑龙江快乐十分  shengchengbangzhubiaoqianhou,jiukeyishiyongxiamiandeminglingchakantaglistbangzhu

  :help taglist.txt

黑龙江快乐十分  xianzaikeyivimzhongshizhedakaitaglist,shurumingling

黑龙江快乐十分  :tlisttoggle laidakaiheguanbitaglistchuangkou。(minglingkeyijianxieweitlist)

  minglingshiyongjieshao

  ctrl+] :zaihanshudiaoyongdedifangtiaozhuandaohanshudingyidedifang

  ctrl+t:fanhuidaoshangyigechazhaodedifangjieyahoudemulujiegouruxia



优质网站模板

  • 1
  • 2
  • 3

组网技术文章分类

最新文章推荐

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10

组网技术推荐

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10