摘要:一直覺得按鍵不好記,直到最近系統(tǒng)的學(xué)了一遍,按增刪改查找移動(dòng)光標(biāo)滾動(dòng)生產(chǎn)效率其它分類記憶,才感覺舒坦了。
一直覺得 Vim 按鍵不好記,直到最近系統(tǒng)的學(xué)了一遍,按增(add)、刪(delete)、改(update)、查找(find)、移動(dòng)光標(biāo)(navigate)、滾動(dòng)(scroll)、生產(chǎn)效率(productivity)、其它(other)分類記憶,才感覺舒坦了。
add- basic a append A append at the end of the line i insert I insert at the beginning of the line
- line o append a new line O insert a new line before the current linedelete
- basic x delete a character X delete the character before the cursor D delete to the end of the line
- combo d? delete ? dd delete the current line di? delete inner contents, for example: di> da? delete whole groupupdate
- basic s substitute a character C change to the end of the current line
- combo c? change ? cc change the current line r replace (overwrite) a characterfind
- in line f? find forward in the current line F? find backward
- in file * find the word under cursor % find matching bracket: ( ), [ ] or { } / search forward ? search backward n find next N find previous [Tab goto definationnavigate
- direction h left j down k up l right
- by word w next beginning e next end b previous beginning
- in line 0 beginning $ end _ first non-blank character
- in file gg beginning G end :10 goto line 10
- in screen H highest M middle L lowest
- history C-o jump to last cursor position (ctrl-o) C-i jump to next (ctrl-i)
- bookmark m? create a bookmark and assign a key to it `? goto a bookmarkscroll
- by line C-y line down (ctrl-y) C-e line up (ctrl-e)
- by page C-f page down (ctrl-f) C-b page up (ctrl-b)
- locked zz scroll the line with the cursor to the center of the screen zt scroll the line with the cursor to the top zb scroll the line with the cursor to the bottomproductivity
- select v select V select rows C-v select block (ctrl-v)
- copy y? yank yy yank the current line
- paste p paste after P paste before
- undo/redo u undo C-r redo (ctrl-r)
- replace :s/old/new replace in the current line :s/old/new/g replace all in the current line :10,20s/old/new/g replace all in between line 10 and 20 :%s/old/new/g replace all in the file :%s/old/new/gc replace all in the file with confirmation
- indent >> indent the current line << unindent the current line >iB indent in-block code - macro q? start recording a macro and assign a key to it q stop recording @? playback a macro @@ replay previously played macro- misc . repeat last command 10x remove 1 character, repeat 10 times C-n auto-complete (ctrl-n) ~ invert the case of selected text J join the next lineother- quit :q quit :wq write and quit :q! quit without saving changes- tab :tabe open file in a new tab :tabn next tab :tabp previous tab- regex in regular expressions you must backslash the character + v reduce backslashing- misc :e new :o open :w write C-z goto console (ctrl-z) C-g show current status (ctrl-g) :! ? execute an external command :h ? get help info about ?
文章版權(quán)歸作者所有,未經(jīng)允許請(qǐng)勿轉(zhuǎn)載,若此文章存在違規(guī)行為,您可以聯(lián)系管理員刪除。
轉(zhuǎn)載請(qǐng)注明本文地址:http://systransis.cn/yun/24920.html
摘要:隨著時(shí)間的流逝,這些與自己相關(guān)的信息就散落在了各個(gè)角落,有的偶爾回頭檢索,大多數(shù)用后即丟棄,最終被遺忘遺失。私鏈信息目錄私鏈的目標(biāo)是分類整理存放用戶積累的知識(shí)信息,幫助用戶構(gòu)建管理自己的知識(shí)信息體系。 這是一個(gè)信息社會(huì),這是一個(gè)數(shù)字化時(shí)代,移動(dòng)設(shè)備、互聯(lián)網(wǎng)、信息數(shù)字化已經(jīng)成為人所共知的常識(shí)。在這種環(huán)境中,你有沒有問過自己:屬于我的數(shù)字化信息都有哪些,都在什么地方呢? 每個(gè)人在每天都會(huì)生...
摘要:一組就是一個(gè)插件,的很多功能都由各式插件實(shí)現(xiàn)。與相反到行頭到本行的第一個(gè)非字符到行尾到本行最后一個(gè)不是字符的位置。到逗號(hào)前的第一個(gè)字符。在當(dāng)前行查找第三個(gè)出現(xiàn)的。工程文件菜單自定義快捷鍵顯示文件菜單自帶快捷鍵顯示隱藏隱藏文件在新 這里是我新配置出來(lái)的 jaywcjlove/vim-web 一直在打磨中,基本上可以用了。拿出來(lái)騙 star 先上圖 showImg(https://segm...
摘要:相關(guān)最大的特性就在于直接操縱網(wǎng)頁(yè)上的節(jié)點(diǎn),從而實(shí)現(xiàn)網(wǎng)頁(yè)的局部刷新而非全局刷新。該回調(diào)函數(shù)會(huì)在送回響應(yīng)的時(shí)候被調(diào)用。當(dāng)然了,如果瀏覽器不支持對(duì)象,會(huì)返回,在這時(shí)需要進(jìn)行額外的處理。 前言 馬上就要參加一個(gè)團(tuán)隊(duì)項(xiàng)目進(jìn)行React的前端開發(fā)了。最近正在著手熟練React語(yǔ)法,然后發(fā)現(xiàn)本質(zhì)上還是建立在對(duì)javascript的深刻理解上。市面上在js基礎(chǔ)上封裝出了非常多優(yōu)秀的車輪,其中最被新手廣...
摘要:原文地址實(shí)戰(zhàn)指南二光標(biāo)移動(dòng)技巧提升的打字效率的一個(gè)技巧就是快速移動(dòng)光標(biāo)?;蛟S你覺得這不值一提,用或者上下左右也能移動(dòng),不過相信我,我下面要介紹的移動(dòng)光標(biāo)技巧絕對(duì)物超所值。 原文地址:Vim實(shí)戰(zhàn)指南(二):光標(biāo)移動(dòng)技巧 Introduction 提升Vim/vi的打字效率的一個(gè)技巧就是快速移動(dòng)光標(biāo)?;蛟S你覺得這不值一提,用hjkl或者上下左右也能移動(dòng),不過相信我,我下面要介紹的移動(dòng)光標(biāo)技...
閱讀 1533·2021-11-23 09:51
閱讀 3646·2021-09-26 09:46
閱讀 2135·2021-09-22 10:02
閱讀 1850·2019-08-30 15:56
閱讀 3333·2019-08-30 12:51
閱讀 2235·2019-08-30 11:12
閱讀 2069·2019-08-29 13:23
閱讀 2331·2019-08-29 13:16