摘要:一直覺得按鍵不好記,直到最近系統的學了一遍,按增刪改查找移動光標滾動生產效率其它分類記憶,才感覺舒坦了。
一直覺得 Vim 按鍵不好記,直到最近系統的學了一遍,按增(add)、刪(delete)、改(update)、查找(find)、移動光標(navigate)、滾動(scroll)、生產效率(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 ?
文章版權歸作者所有,未經允許請勿轉載,若此文章存在違規行為,您可以聯系管理員刪除。
轉載請注明本文地址:http://m.specialneedsforspecialkids.com/yun/24920.html
摘要:隨著時間的流逝,這些與自己相關的信息就散落在了各個角落,有的偶爾回頭檢索,大多數用后即丟棄,最終被遺忘遺失。私鏈信息目錄私鏈的目標是分類整理存放用戶積累的知識信息,幫助用戶構建管理自己的知識信息體系。 這是一個信息社會,這是一個數字化時代,移動設備、互聯網、信息數字化已經成為人所共知的常識。在這種環境中,你有沒有問過自己:屬于我的數字化信息都有哪些,都在什么地方呢? 每個人在每天都會生...
摘要:一組就是一個插件,的很多功能都由各式插件實現。與相反到行頭到本行的第一個非字符到行尾到本行最后一個不是字符的位置。到逗號前的第一個字符。在當前行查找第三個出現的。工程文件菜單自定義快捷鍵顯示文件菜單自帶快捷鍵顯示隱藏隱藏文件在新 這里是我新配置出來的 jaywcjlove/vim-web 一直在打磨中,基本上可以用了。拿出來騙 star 先上圖 showImg(https://segm...
摘要:相關最大的特性就在于直接操縱網頁上的節點,從而實現網頁的局部刷新而非全局刷新。該回調函數會在送回響應的時候被調用。當然了,如果瀏覽器不支持對象,會返回,在這時需要進行額外的處理。 前言 馬上就要參加一個團隊項目進行React的前端開發了。最近正在著手熟練React語法,然后發現本質上還是建立在對javascript的深刻理解上。市面上在js基礎上封裝出了非常多優秀的車輪,其中最被新手廣...
摘要:原文地址實戰指南二光標移動技巧提升的打字效率的一個技巧就是快速移動光標。或許你覺得這不值一提,用或者上下左右也能移動,不過相信我,我下面要介紹的移動光標技巧絕對物超所值。 原文地址:Vim實戰指南(二):光標移動技巧 Introduction 提升Vim/vi的打字效率的一個技巧就是快速移動光標。或許你覺得這不值一提,用hjkl或者上下左右也能移動,不過相信我,我下面要介紹的移動光標技...
閱讀 1533·2021-11-23 09:51
閱讀 3647·2021-09-26 09:46
閱讀 2136·2021-09-22 10:02
閱讀 1856·2019-08-30 15:56
閱讀 3334·2019-08-30 12:51
閱讀 2238·2019-08-30 11:12
閱讀 2069·2019-08-29 13:23
閱讀 2331·2019-08-29 13:16