歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux綜合 >> Linux資訊 >> 更多Linux >> VI 快速上手

VI 快速上手

日期:2017/2/27 9:43:07   编辑:更多Linux
按鍵 功能h leftj downk upl rightnh n char leftnj n char downw fwd Wordb back wordH upper left of screenM mid screenL lowest line of screenG bottom of filenG to line n0 begin line$ end linei insert beforea insert afterA ins end lineo opens lineO opens line aboveXP transposeJ join linesrC rep char "C"r rep with <CR>R rep to escu undoes lastx del chardw del wordnx del n charndw del n wordsdd del linendd del n linesD to end the line^L redraw screenz current line to topz- current line to bottomz. line to middle screen^F page fwd ^B page back^D 1/2 page forward^U 1/2 page backyy stores current line in buffer nyy stores n lines in bufferynw stores n words in bufferp puts buffered text after current line or wordP puts buffered text before current line or word/string search forward?string search backward n,N repeat last searchn same direction, N oppositeZZ writes changes - quits:wq writes changes - quits:q no changes - quits, q! for sure:w writes changes, doesn't quit




Copyright © Linux教程網 All Rights Reserved