Linux???????vi??y???
???????????? ???????[ 2015/9/29 13:36:32 ] ????????Linux
????vi??????????Unix??Linux???????????
??????Unix??Linux?????????????汾???vi??????????????
??????????vi??????????????????????????(commandmode)????????(insert mode)???????(last line mode)??????????????
?????????????????????????????????????е?????????????????μ?????insert mode?£??????last line mode.
????????????????????insert mode???????????????????”Esc”????????????????
?????????????????????????vi??????????????????????????????г??к?…???
??????Terminal????????????????£?????vi testVi???????vi????????????testVi????????????????д???????????????????????????testVi??????????????vi??????????(?????????????????????????????)??
?????????vi????????“??????”????л???“??????”?????????????
???????????????????????????????“??????”?°????Сд???”i”??”a”??”o”?????????“??????”???????????????????????
????????????????????????????????”Esc”????
??????????????????????????”:”????
????????????????????????????Сд???”i”??”a”??”o”?????????“??????”??
???????vi???????????????????£?????
????(1)??w testVi1 (??testVi??????????????testVi1?????testVi?е???????????????testVi??????????????)??
????(2)??wq (?????????testVi????????vi)??
????(3)??q!(??q) (???????????testVi??????vi?????testVi??????????????????????)??
????????????????????????
????(1)????”i”??????????λ?????????????
????(2)????”a”??????????1??????λ????????λ?????????????
????(3)????”o”?????????1???????в????μ???У??????????????????
??????????????????
????(1)????Сд???”k”?? ”j”??”h”??”l”????????????????????С?????????????С???????????????????????????????????????
????(2)??”Ctrl+b”??”Ctrl+f”?????????????????????????
????(3)??”Ctrl+u”??”Ctrl+d”?????????????????°???????
????(4)????????0(??”^”)??”$”??????????????????е????????β??
????(5)????”$”???????????????е???β??
????(6)??????д???”G”?????????????β??????????”????”???????д???”G”???????????????”????”?????
????(7)????”w”??”e”??????????????(????)????????????(????)????β??
????(8)????”b”??????????????(????)???????
????(9)????”#”???????????????????????
????????????????????
????(1)????????Сд???”x”????????????λ??????????????
????(2)???????δ?д???”X”????????????λ??????????????
????(3)????????????Сд???”d”?????????????С?
????????????????
????(1)????Сд???”yw”??????????????????β??????????????????С?
????(2)????Сд???”p”????????????????????????????λ?á?
??????????????????β???????????????????????????????????Сд???”u”?????????β?????
??????????????????????У?
????(1)????”Ctrl + g”??????????????????????????е??к??
????(2)????”??????? + G”???????????????????”???????”???????
?????????????г??к??????”set nu”?????????????????????????г??к??
???????????????????????????У???e??(:)???????????????????????????????????
???????????2????????
????(1)?????”/”????????????????????????????????keyword???????????????????Сд???”n”????????(????д???”N”???????)?????????keyword????
????(2)?????”?”??????????????????????????????????keyword???????????????????Сд???”n”???????(????д???”N”????????)?????????keyword????
????vi???Щ????(?????????????)?????http://blog.chinaunix.net/uid-10638908-id-2944538.html??
????(1)??????:vi ~/.vimrc ?????????????????
????(2)??vimrc????????????
????syntax on
????set tabstop=4
????set softtabstop=4
????set shiftwidth=4
????set autoindent
????set cindent
????set cinoptions={0??1s??t0??n-2??p2s??(03s??=.5s??>1s??:1s}
????set nu
????set hlsearch
????(3)??????vimrc????????????vi???????????????????Sorry?? the command is not available in thisversion: syntax enable Press ENTER ortype command to continue ?????譎?vim????????????????sudo apt-get install vim ;
????(4)?????vi???????????????????????????????????
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11