来一发凌驾130个你必要懂得的vim命令
要明白学好linux不是一件一蹴而就的事,一定要能坚持使用它,特别是在使用初期。从1970年入手下手,vi和vim就成了程序员最喜好的文本编纂器之一。5年前,我写了一个问本人名为“每一个程序员都应当晓得的100个vim命令”此次算是之前那篇文章的改善版,但愿你会喜好。
基本
:efilenameOpenfilenameforedition:wSavefile:qExitVim:q!Quitwithoutsaving:xWritefile(ifchangeshasbeenmade)andexit:savfilenameSavesfileasfilename.Repeatsthelastchangemadeinnormalmode5.Repeats5timesthelastchangemadeinnormalmode 在文件中挪动
korUpArrowmovethecursoruponelinejorDownArrowmovethecursordownonelineemovethecursortotheendofthewordbmovethecursortothebeginingoftheword0movethecursortothebeginingofthelineGmovethecursortotheendofthelineggmovethecursortothebeginingofthefileLmovethecursortotheendofthefile:59movecursortoline59.Replace59bythedesiredlinenumber.20|movecursortocolumn20.%Movecursortomatchingparenthesis[ 剪切、复制和粘贴
yCopytheselectedtexttoclipboardpPasteclipboardcontentsddCutcurrentlineyyCopycurrentliney$CopytoendoflineDCuttoendofline 搜刮
/wordSearchwordfromtoptobottom?wordSearchwordfrombottomtotop*Searchthewordundercursor/cstringSearchSTRINGorstring,caseinsensitive/jonSearchjohnorjoan/<theSearchthe,theatreorthen/the>Searchtheorbreathe/<the>Searchthe/< 虽然大家都比较喜欢漂亮的mm,但是在学linux的过程中,还是要多和“男人”接触一下:P遇到问题的时候,出来看说和上网查之外,就是要多用linux下的man命令找找帮助。 为了更好的学习这门课程,我不仅课上认真听讲,课下也努力学习,为此还在自己的电脑上安装了Ubuntu系统。 熟读Linux系统有关知识,如系统目录树,有关内容可购书阅读或搜索论坛。 在学习linux的工程中,linux学习方法有很多种,这里是小编的学习心得,给大家拿出来分享一下。 熟悉并掌握安装Linux,安装是学习的前提。目前较常见的安装方法有二种: Linux只是个内核!这点很重要,你必须理解这一点。只有一个内核是不能构成一个操作系统的。 其中不乏很多IT精英的心血。我们学透以后更可以做成自己的OS!? 即便是非英语国家的人发布技术文档,Linux也都首先翻译成英语在国际学术杂志和网络上发表。
页:
[1]