久草资源网-久草资源网站-久草资源在线-久草资源在线播放-天天艹天天艹-天天艹夜夜

蒙狼科技logo
設(shè)為首頁(yè)| 聯(lián)系我們
咨詢熱線: 13917498722
  您的位置: 首頁(yè) > 網(wǎng)站資訊 > 實(shí)用手冊(cè)130+提高開(kāi)發(fā)效率的vim常用飭令
:e filename Open filename for edition :w Save file :q Exit Vim :q! Quit without saving :x Write file (if changes has been made) and exit :sav filename Saves file as filename . Repeats the last change made in normal mode 5. Repeats 5 times the last change made in normal mode

在文件中移動(dòng)

k or Up Arrow move the cursor up one line j or Down Arrow move the cursor down one line e move the cursor to the end of the word b move the cursor to the begining of the word 0 move the cursor to the begining of the line G move the cursor to the end of the file gg move the cursor to the begining of the file L move the cursor to the bottom of the screen :59 move cursor to line 59. Replace 59 by the desired line number. 20| move cursor to column 20. % Move cursor to matching parenthesis [[ Jump to function start [{ Jump to block start

剪切、拷貝和粘貼

y Copy the selected text to clipboard p Paste clipboard contents dd Cut current line yy Copy current line y$ Copy to end of line D Cut to end of line

搜索

/word Search word from top to bottom ?word Search word from bottom to top * Search the word under cursor /\cstring Search STRING or string, case insensitive /jo[ha]n Search john or joan /\< the Search the, theatre or then /the\> Search the or breathe /\< the\> Search the /\< ¦.\> Search all words of 4 letters /\/ Search fred but not alfred or frederick /fred\|joe Search fred or joe /\<\d\d\d\d\> Search exactly 4 digits /^\n\{3} Find 3 empty lines :bufdo /searchstr/ Search in all open files bufdo %s/something/somethingelse/g Search something in all the open buffers and replace it with somethingelse

替代

:%s/old/new/g Replace all occurences of old by new in file :%s/onward/forward/gi Replace onward by forward, case unsensitive :%s/old/new/gc Replace all occurences with confirmation :2,35s/old/new/g Replace all occurences between lines 2 and 35 :5,$s/old/new/g Replace all occurences from line 5 to EOF :%s/^/hello/g Replace the begining of each line by hello :%s/$/Harry/g Replace the end of each line by Harry :%s/onward/forward/gi Replace onward by forward, case unsensitive :%s/ *$//g Delete all white spaces :g/string/d Delete all lines containing string :v/string/d Delete all lines containing which didn’t contain string :s/Bill/Steve/ Replace the first occurence of Bill by Steve in current line :s/Bill/Steve/g Replace Bill by Steve in current line :%s/Bill/Steve/g Replace Bill by Steve in all the file :%s/^M//g Delete DOS carriage returns (^M) :%s/\r/\r/g Transform DOS carriage returns in returns :%s#<[^>]\+>##g Delete HTML tags but keeps text :%s/^\(.*\)\n\1$/\1/ Delete lines which appears twice Ctrl+a Increment number under the cursor Ctrl+x Decrement number under cursor ggVGg? Change text to Rot13

大小寫(xiě)

Vu Lowercase line VU Uppercase line g~~ Invert case vEU Switch word to uppercase vE~ Modify word case ggguG Set all text to lowercase gggUG Set all text to uppercase :set ignorecase Ignore case in searches :set smartcase Ignore case in searches excepted if an uppercase letter is used :%s/\<./\u&/g Sets first letter of each word to uppercase :%s/\<./\l&/g Sets first letter of each word to lowercase :%s/.*/\u& Sets first letter of each line to uppercase :%s/.*/\l& Sets first letter of each line to lowercase

讀寫(xiě)文件

:1,10 w outfile Saves lines 1 to 10 in outfile :1,10 w >> outfile Appends lines 1 to 10 to outfile :r infile Insert the content of infile :23r infile Insert the content of infile under line 23

文件瀏覽器

:e . Open integrated file explorer :Sex Split window and open integrated file explorer :Sex! Same as :Sex but split window vertically :browse e Graphical file explorer :ls List buffers :cd .. Move to parent directory :args List files :args *.php Open file list :grep expression *.php Returns a list of .php files contening expression gf Open file name under cursor

和 Unix 系統(tǒng)交互

:!pwd Execute the pwd unix command, then returns to Vi !!pwd Execute the pwd unix command and insert output in file :sh Temporary returns to Unix $exit Retourns to Vi

對(duì)齊

:%!fmt Align all lines !}fmt Align all lines at the current position 5!!fmt Align the next 5 lines

選項(xiàng)卡/窗口

:tabnew Creates a new tab gt Show next tab :tabfirst Show first tab :tablast Show last tab :tabm n(position) Rearrange tabs :tabdo %s/foo/bar/g Execute a command in all tabs :tab ball Puts all open files in tabs :new abc.txt Edit abc.txt in new window

分屏顯示

:e filename Edit filename in current window :split filename Split the window and open filename ctrl-w up arrow Puts cursor in top window ctrl-w ctrl-w Puts cursor in next window ctrl-w_ Maximize current window vertically ctrl-w| Maximize current window horizontally ctrl-w= Gives the same size to all windows 10 ctrl-w+ Add 10 lines to current window :vsplit file Split window vertically :sview file Same as :split in readonly mode :hide Close current window :­nly Close all windows, excepted current :b 2 Open #2 in this window

主動(dòng)完成

Ctrl+n Ctrl+p (in insert mode) Complete word Ctrl+x Ctrl+l Complete line :set dictionary=dict Define dict as a dictionnary Ctrl+x Ctrl+k Complete with dictionnary

標(biāo)記

m {a-z} Marks current position as {a-z} ' {a-z} Move to position {a-z} '' Move to previous position

縮寫(xiě)

:ab mail mail@provider1438 Define mail as abbreviation of mail@provider1438

文本縮進(jìn)

:set autoindent Turn on auto-indent :set smartindent Turn on intelligent auto-indent :set shiftwidth=4 Defines 4 spaces as indent size ctrl-t, ctrl-d Indent/un-indent in insert mode >> Indent << Un-indent =% Indent the code between parenthesis 1GVG= Indent the whole file

代碼高亮

:syntax on Turn on syntax highlighting :syntax off Turn off syntax highlighting :set syntax=perl Force syntax highlighting



實(shí)用手冊(cè)130+提高開(kāi)發(fā)效率的vim常用飭令

發(fā)布日期:2017/5/7

百度權(quán)重查詢 詞庫(kù)網(wǎng) 網(wǎng)站監(jiān)控 服務(wù)器監(jiān)控 seo監(jiān)控 手機(jī)游戲 iPhone游戲

基本飭令

其他相關(guān)文章
  • 網(wǎng)站建設(shè)不想成功的建站都不是好的企業(yè)
  • 多域名同內(nèi)容的常見(jiàn)問(wèn)題解答
  • 網(wǎng)站制作之色彩搭配終極指南
  • 為什么你在微信上投入這么多錢(qián) 公眾號(hào)就是不活
  • 如何做好網(wǎng)站推廣
  • 通過(guò)iOS人機(jī)交互指南的轉(zhuǎn)變看iOS7的設(shè)計(jì)理念




  • 企業(yè)網(wǎng)站后臺(tái)使用
    購(gòu)物網(wǎng)站后臺(tái)使用
    網(wǎng)站產(chǎn)品圖片的處理



    農(nóng)業(yè)銀行支付
    建設(shè)銀行支付
    郵政儲(chǔ)蓄銀行支付



    企業(yè)網(wǎng)站建設(shè)
    整站建設(shè)
    購(gòu)物網(wǎng)站



    企業(yè)網(wǎng)站建設(shè)建議
    注冊(cè)適合自己的域名
    什么是虛擬主機(jī)




    售前咨詢QQ: 838821345
    售后服務(wù)QQ: 464698733
    應(yīng)急手機(jī):13917498722


    微信掃一掃
    添加24小時(shí)微信客服


    郵箱:lang@MENGL.CN
    地址:上海寶山區(qū)城銀路555弄2號(hào)樓3樓
    ICP備案:滬ICP備12042844號(hào)-3
     滬公網(wǎng)安備:31011402002917號(hào)
    做網(wǎng)站 | 企業(yè)網(wǎng)站建設(shè) | 上海做網(wǎng)站 | 企業(yè)網(wǎng)站制作 | 做網(wǎng)站的公司 | 關(guān)于蒙狼 | 整站建設(shè) | 購(gòu)物網(wǎng)站 | 企業(yè)網(wǎng)絡(luò)營(yíng)銷 | 成功案例 | 加盟代理 | 在線訂單
    服務(wù)區(qū)域: 臨港新區(qū)做網(wǎng)站 徐匯做網(wǎng)站 閔行做網(wǎng)站 長(zhǎng)寧做網(wǎng)站 虹口做網(wǎng)站 黃浦做網(wǎng)站 盧灣做網(wǎng)站 靜安做網(wǎng)站 浦東做網(wǎng)站 楊浦做網(wǎng)站 普陀做網(wǎng)站 閘北做網(wǎng)站 寶山做網(wǎng)站 嘉定做網(wǎng)站 松江做網(wǎng)站 昆山做網(wǎng)站
    Copyright 2012-2025 上海蒙狼網(wǎng)絡(luò)科技有限公司 www.jnjiaoyu.cn All Rights Reserved
    午夜欧美福利| 国产高清在线精品一区a| 国产一区免费在线观看| 91麻豆国产| 久久成人综合网| 国产精品123| 欧美激情一区二区三区视频高清| 日韩中文字幕在线亚洲一区| 免费国产在线视频| 色综合久久天天综合观看| 四虎精品在线观看| 国产伦久视频免费观看视频| 九九久久国产精品| 99久久精品国产高清一区二区| 精品久久久久久中文| 好男人天堂网 久久精品国产这里是免费 国产精品成人一区二区 男人天堂网2021 男人的天堂在线观看 丁香六月综合激情 | 久久久久久久网| 999久久狠狠免费精品| 国产不卡在线播放| 精品视频在线看| 国产a视频| 久草免费在线观看| 国产亚洲精品成人a在线| 国产网站免费| 亚洲精品久久久中文字| 日韩专区第一页| 欧美激情影院| 精品国产亚洲人成在线| 九九久久国产精品| 亚州视频一区二区| 日本乱中文字幕系列 | 日本特黄特黄aaaaa大片| 日韩一级黄色片| 久久99欧美| 免费一级片在线观看| 成人影视在线播放| 国产欧美精品午夜在线播放| 可以免费看污视频的网站| 尤物视频网站在线观看| 亚久久伊人精品青青草原2020| 欧美大片a一级毛片视频| 国产不卡在线看| 日本伦理片网站| 台湾毛片| 国产亚洲精品成人a在线| 成人高清视频在线观看| 色综合久久天天综合观看| 精品在线视频播放| 国产综合91天堂亚洲国产| 人人干人人草| 国产91精品一区二区| 国产视频一区在线| 91麻豆精品国产自产在线观看一区| 国产成人精品影视| 国产成人女人在线视频观看 | 成人高清视频免费观看| 成人免费一级纶理片| 91麻豆国产| 欧美国产日韩久久久| 精品国产一区二区三区精东影业 | 中文字幕一区二区三区精彩视频 | 国产91素人搭讪系列天堂| 美女免费精品高清毛片在线视 | 99久久精品国产免费| 日日夜夜婷婷| 国产精品免费精品自在线观看| 精品国产一区二区三区国产馆| 亚久久伊人精品青青草原2020| 国产视频一区二区在线播放| 亚洲女初尝黑人巨高清在线观看| 日韩一级黄色| 国产不卡在线观看视频| 好男人天堂网 久久精品国产这里是免费 国产精品成人一区二区 男人天堂网2021 男人的天堂在线观看 丁香六月综合激情 | 夜夜操天天爽| 亚洲第一页乱| 好男人天堂网 久久精品国产这里是免费 国产精品成人一区二区 男人天堂网2021 男人的天堂在线观看 丁香六月综合激情 | 免费国产在线视频| 99色视频在线观看| 精品视频在线观看一区二区三区| 国产成人啪精品| 成人在免费观看视频国产| 久草免费在线观看| 国产精品123| 欧美激情一区二区三区在线 | 国产高清视频免费| 尤物视频网站在线观看| 天天色成人| 国产国语对白一级毛片| 精品视频免费看| 色综合久久天天综线观看| 亚洲爆爽| 久久精品大片| 欧美a免费| 国产高清在线精品一区二区| 国产综合成人观看在线| 好男人天堂网 久久精品国产这里是免费 国产精品成人一区二区 男人天堂网2021 男人的天堂在线观看 丁香六月综合激情 | 国产成人精品综合| 美女免费毛片| 青青久在线视频| 高清一级片| 日韩av东京社区男人的天堂| 国产成人精品影视| 国产一区二区精品久久91| 成人a级高清视频在线观看| 九九久久国产精品大片| 国产综合成人观看在线| 亚洲天堂在线播放| 精品国产三级a| 精品国产香蕉伊思人在线又爽又黄| 国产亚洲男人的天堂在线观看| 日日夜人人澡人人澡人人看免| 美女免费精品视频在线观看| 午夜欧美福利| 青青久久精品| 欧美激情一区二区三区中文字幕| 四虎精品在线观看| 色综合久久天天综合| 99色视频在线观看| 日本久久久久久久 97久久精品一区二区三区 狠狠色噜噜狠狠狠狠97 日日干综合 五月天婷婷在线观看高清 九色福利视频 | 日韩中文字幕在线播放| 日本在线www| 日韩欧美一二三区| 久久精品欧美一区二区| 麻豆网站在线免费观看| 精品久久久久久综合网| 亚欧视频在线| 成人免费高清视频| 亚久久伊人精品青青草原2020| 国产成+人+综合+亚洲不卡| 美女免费黄网站| 成人免费一级毛片在线播放视频| 99色视频| 精品久久久久久中文| 精品视频在线观看一区二区三区| 日日日夜夜操| 日韩中文字幕在线观看视频| 国产国语在线播放视频| 国产一区二区精品久久91| 亚洲精品久久玖玖玖玖| 美女免费黄网站| 台湾毛片| 久久国产一区二区| 欧美国产日韩久久久| 国产精品自拍在线观看| 九九九网站| 免费国产一级特黄aa大片在线| 久久国产一区二区| 欧美大片a一级毛片视频| 国产精品123| 国产国语在线播放视频| 国产视频久久久久| 精品国产一区二区三区久久久狼| 精品视频一区二区三区免费| 亚久久伊人精品青青草原2020| 高清一级毛片一本到免费观看| 日韩一级精品视频在线观看| 日日日夜夜操| 国产不卡在线观看视频| 亚洲精品久久久中文字| 日韩男人天堂| 国产精品1024在线永久免费| 日韩在线观看免费| 亚洲天堂一区二区三区四区| 欧美国产日韩在线| 免费的黄色小视频| 日韩专区一区| 日韩综合| 久久成人综合网| 亚洲第一页色| 欧美大片aaaa一级毛片| 亚洲女初尝黑人巨高清在线观看| 99色播| 成人影院久久久久久影院| 你懂的福利视频| 日本乱中文字幕系列 | 久草免费在线色站| 日日夜人人澡人人澡人人看免| 国产精品123| 国产成人精品综合| 深夜做爰性大片中文| 日韩中文字幕一区二区不卡| 欧美大片aaaa一级毛片| 香蕉视频三级| 精品国产香蕉伊思人在线又爽又黄| 日本在线不卡免费视频一区| 欧美激情中文字幕一区二区| 成人免费网站视频ww| 国产91丝袜在线播放0| 午夜家庭影院| 免费的黄视频| 国产亚洲精品aaa大片| 成人影视在线观看| 色综合久久天天综合观看| 国产亚洲男人的天堂在线观看| 国产福利免费观看| 国产成人精品综合在线| 欧美激情一区二区三区中文字幕| 一级女性全黄生活片免费| 久久精品免视看国产成人2021| 韩国妈妈的朋友在线播放|