欢迎来到天天文库
浏览记录
ID:12001955
大小:31.12 KB
页数:35页
时间:2018-07-15
《vi高级命令集锦及vim应用实例(collection of vi advanced commands and application examples of vim)》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、vi高级命令集锦及vim应用实例(CollectionofVIadvancedcommandsandapplicationexamplesofvim)CBmodifiedtoaspacedelimitedwordsasthestartpositionC7Bmodificationstothefront7inspaceasthedelimiterwordstartpositionC0changestotheendofarowC)modifytotheendofastatementC4)tomodifythefourthst
2、atementattheendpositionC(modifythestartpositionofastatementC}modifiestotheendofaparagraphC{modifytothebeginningofaparagraphC7{modificationstotheinitialpositionbeforethecurrentparagraphseventhparagraphpositionCTCtomodifythecurrentlineuntilthenextcharacterpositionc
3、ontentbetweenCCchangestotheendofarowCCmodifiesthecurrentline5CCtomodifythe5linesstartingfromthecurrentrowcontentRepeatthelastmodification!Table8-4replacementcommandReplacecommandoperationSwillreplacethecurrentcharacterforoneormorecharactersSreplacesthecurrentroww
4、ithoneormorecharacters5sfromthe5characterstoreplacethecurrentcharactertooneormorecharactersVIreplacementusagerules::g/s1/s/s2/s3/gThefirstgrepresentsasubstitutionforeachrowincludingS1,andthesecondgrepresentsarowforeachrow,includingS1,andalltheS2isreplacedbyS3Ssai
5、dthereplacementstringS2istobereplaced,andthesameS1(ifhecanusethesamewords,S3//instead)isareplacementstringSixteenFXNoautoindentnomodelinesnoshowmodeAutoPrintnonumbernoslowopenNoautowritenonovicetabstop=8Nobeautifynooptimizetaglength=0Directory=/var/tmpparagraphs=
6、IPLPPPQPPLIpplpipnpBTags=tags/usr/lib/tagsNoedcompatibleprompttagstackNoerrorbellsnoreadonlyterm=vt100NoexrcredrawnoterseFlashremaptimeoutHardtabs=8report=5ttytype=vt100Noignorecasescroll=11warnNolispsections=NHSHHHUuhsh+cwindow=23Nolistshell=/bin/kshwrapscanMagi
7、cshiftwidth=8wrapmargin=0MESGnoshowmatchnowriteanyForC-Shell:SetenvEXINIT"setNu""ForBourneorKornShell:EXINIT="setNu";exportEXINITForKornShellOnly(alternatemethod):Typeset-xEXINIT="setNu""Inthe.ProfileVIenvironmentsettings,alltested18.marktextWiththelettercharmark
8、ingthecurrentpositionofthecursormchar`charmovestothemarkedplaceofcharAtthebeginningof'chartocharmarktheline"Thelocationtothecurrentrowlast(thecursorafter)--ado
此文档下载收益归作者所有