[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-seo-689144-105":3,"detail-sidebar-cat-0-en-105":80,"doc-detail-689144-en":130,"doc-similar-689144":170},{"code":4,"msg":5,"data":6},0,"ok",{"site_id":7,"language":8,"slug":9,"title":10,"keywords":11,"description":12,"schema_data":13,"social_meta":73,"head_meta":75,"extra_data":77,"updated_unix":79},105,"en","mastering-vim","Mastering Vim","","Mastering Vim is a practical guide that teaches efficient text editing in the Vim editor through concise tips and structured explanations. It covers core concepts such as modes, buffers, and command-driven editing, then expands into navigation, searching, completion, editing workflows, and safer file operations. The content emphasizes learning Vim’s command “alphabet,” quitting and saving effectively, and using registers, marks, and visual techniques to streamline everyday editing tasks.",{"@graph":14,"@context":72},[15,34,55],{"@type":16,"itemListElement":17},"BreadcrumbList",[18,23,27,31],{"item":19,"name":20,"@type":21,"position":22},"https://docshare.wps.com","Home","ListItem",1,{"item":24,"name":25,"@type":21,"position":26},"https://docshare.wps.com/document/","Document",2,{"item":28,"name":29,"@type":21,"position":30},"https://docshare.wps.com/document/technology/","Technology",3,{"item":32,"name":10,"@type":21,"position":33},"https://docshare.wps.com/document/mastering-vim/689144/",4,{"url":32,"name":10,"@type":35,"image":36,"author":41,"headline":10,"publisher":44,"fileFormat":47,"inLanguage":8,"description":12,"dateModified":48,"datePublished":49,"encodingFormat":47,"isAccessibleForFree":50,"interactionStatistic":51},"DigitalDocument",{"url":37,"@type":38,"width":39,"height":40},"https://docshare.wps.com/thumbnails/mastering-vim/689144.png","ImageObject",300,407,{"name":42,"@type":43},"River Wang","Person",{"url":19,"name":45,"@type":46},"DocShare","Organization","application/pdf","2026-11-12","2026-11-08",true,{"@type":52,"interactionType":53,"userInteractionCount":33},"InteractionCounter",{"@type":54},"ViewAction",{"@type":56,"mainEntity":57},"FAQPage",[58,64,68],{"name":59,"@type":60,"acceptedAnswer":61},"What are the main Vim modes described in the guide?","Question",{"text":62,"@type":63},"The guide explains Normal mode for moving and making large changes, Insert mode for typing literal text, and additional modes such as command-line, Visual/Visual-Block, and Replace.","Answer",{"name":65,"@type":60,"acceptedAnswer":66},"How do buffers work in Vim according to the document?",{"text":67,"@type":63},"Vim stores edits in buffers that update immediately in memory; changes are written back to the file only when you use the buffer write command.",{"name":69,"@type":60,"acceptedAnswer":70},"How can you get help for Vim topics as described here?",{"text":71,"@type":63},"Use :help, :help \u003Ctopic>, search help topics with :help \u003Cstring> using TAB completion, or use :helpgrep \u003Cpattern> then :cnext to step through matches.","https://schema.org",{"og:url":32,"og:type":74,"og:title":10,"og:site_name":45,"og:description":12},"article",{"robots":76,"canonical":32},"index,follow",{"doc_id":78,"site_id":7},689144,1794097591,{"code":4,"msg":81,"data":82},"success",[83,87,91,95,100,104,109,114,119,122,126],{"id":22,"doc_module":4,"doc_module_name":25,"category_name":84,"show_sort_weight":85,"slug":86},"Story & Novel",90,"story-novel",{"id":26,"doc_module":4,"doc_module_name":25,"category_name":88,"show_sort_weight":89,"slug":90},"Literature",80,"literature",{"id":33,"doc_module":4,"doc_module_name":25,"category_name":92,"show_sort_weight":93,"slug":94},"Exam",70,"exam",{"id":96,"doc_module":4,"doc_module_name":25,"category_name":97,"show_sort_weight":98,"slug":99},5,"Comic",60,"comic",{"id":101,"doc_module":4,"doc_module_name":25,"category_name":29,"show_sort_weight":102,"slug":103},6,50,"technology",{"id":105,"doc_module":4,"doc_module_name":25,"category_name":106,"show_sort_weight":107,"slug":108},7,"Healthcare",40,"healthcare",{"id":110,"doc_module":4,"doc_module_name":25,"category_name":111,"show_sort_weight":112,"slug":113},8,"Research & Report",30,"research-report",{"id":115,"doc_module":4,"doc_module_name":25,"category_name":116,"show_sort_weight":117,"slug":118},9,"Religion & Spirituality",20,"religion-spirituality",{"id":117,"doc_module":4,"doc_module_name":25,"category_name":120,"show_sort_weight":117,"slug":121},"World Cup","world-cup",{"id":123,"doc_module":4,"doc_module_name":25,"category_name":124,"show_sort_weight":123,"slug":125},10,"Lifestyle","lifestyle",{"id":127,"doc_module":4,"doc_module_name":25,"category_name":128,"show_sort_weight":96,"slug":129},19,"General","general",{"code":4,"msg":81,"data":131},{"doc_id":78,"user_id":132,"nickname":42,"user_avatar":133,"doc_module":4,"category_id":101,"category_name":29,"doc_title":10,"doc_description":12,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":33,"is_deleted":4,"is_public":22,"is_downloadable":22,"audit_status":22,"page_count":139,"language":140,"language_code":8,"site_id":7,"html_lang":8,"table_of_contents":141,"faqs":142,"seo_title":143,"seo_description":12,"update_tm":79,"read_time":144,"preview_page_count":101,"preview_urls":145},1099514067438,"https://ap-avatar.wpscdn.com/avatar/100002539ee87300030?x-image-process=image/resize,m_fixed,w_180,h_180&k=1780474512215547542","Mastering Vim  \nDamian Conway  \nSummary  \n4 Targeted copy-and-paste18Tip 2:Seek help4 Targeted cut-and-paste18Tip 3:Understand the metaphors4    Tip 20:Store text in registers19Modes4Tip 21:Travel through time19Buffers5Branched undo20Commands5Tip 22:Read and write files efficiently20Tip4:Learn your alphabet5Reading buffers21Tip 5:Quit smarter6Tip 23:Use a filter21Tip6:Learn to move6Tip 24:Sort internally22Word motions6Tip 25:Remember your history22Line and paragraph motions7Tip 26:Autocomplete your text23Miscellaneous motions7Filename completion23Matching delimiters7Navigating a completion23Repeated motions7Smarter completion23Scrolling a large buffer8Selective completion24Tip7:Keep track of where you are8Other forms of completion24Tip8:Keep track of where you were8Tip 27:Complete your text too24Editing with marks9Filenamelfilepath completion24Tip9:Use vim's own navigation marks9Defined symbol completion25Tip 10:Learn how to change text efficiently10Identifier completion25Tip 11:Repeat yourself numerically10Other completions25  \nTip 1:Get vim  \nTip 12:Fix your deletions11Tip 28:Vim is a file browser26Tip 13:Control your insertions11Tip 29:Explore vim's many options26Tip 14:Search smarter12Tip 30:Show your line numbers27Searching within a line12Tip 31:Constrain your line widths27Searching for existing word13Tip 32:Write before you leave28Case (in)sensitivity13Tip 33:Configure your .vimrc file28Tip 15:Use searches as motions13Tip 34:Set your options by browsing28Tip 16:Preview your search results14Tip 35:Defang those tabs29Tip 17:Highlight your search results14Sticking with eight-column tabs29Tip 18:Search and destroy14Adjusting tabs29Multiple substitutions16Replacing tabs as you type30Cautious substitution16Tip 36:Indent cleverly30Substitute again16Smarter indenting31Tip 19:Copy shamelessly16Total tabular control31Copying text objects17Tip 37:Recover after a disaster32Copying delimited objects17Recovering after a crash32Internal copiesError!Bookmark not defined.Preventing mishaps32Cutting text17Improving your chances33Pasting text18Tip 38:Make a backup34Indented pasting18Tip 39:Edit visually34  \nVisual mode35Tip 42:Colour your syntax43Visual-Line mode35Tip 43:Fixbugs fast43Visual-Block mode35Navigating errors44Terminating block mode36Tip 44:Let vim do the indenting for you44Visually selecting text objects36Tip 45:Script vim45Tip 40:Abbreviate your typing36Functions and maps46Restrictions on the LHS37Tip 46:Play tag47Expanding abreviations37Tip 47:Have vim do some of the coding for you 48Reviewing your abbreviations37Automatic file skeletons48Targeted abbreviations38Patching files in vim49Computed abbreviations38Tip 48:Script vim in Perl/Python/Ruby/etc.49Tip 41:Map your commands39Tip 49:RTFM50Insertion maps39Tip 50:use vim as a pager50Normal maps39Conclusion50Command-line maps40Appendix A:vim's pattern syntax51Operator-pending maps40Characters and character classes52Other kinds of maps41Repetitions53Managing maps41Alternatives,synternatives,and sequences53Unremappable maps42Context specifiers54Match boundaries54  \n# Tip 1:Get vim\n\n·If you're still using vanilla vi it's time to upgrade to vim  \n·Download it from:http://www.vim.org/download.php  \n·Binary distributions available for \"troublesome\"platforms  \n# Tip 2:Seek help\n\n·Type:  \n:help  \n·Or for a specific topic:  \n:help \u003Ctopic>\u003CCR>  \n·Or for a list of topics containing a given string:  \n:help \u003Cstring>\u003CTAB>  \n·Or for any topic matching a given(vim-ish)pattern:  \n:helpgrep \u003Cpattern>  \n·Then :cnext\u003CCR>to step through matches  \n·Within help files,anything in vertical bars is a hyperlink  \n·When the cursor is within bars,hit CTRL-]to jump to that topic  \n·At any time,hit CTRL-T to back out of the sequence of links  \n# Tip 3:Understand the metaphors\n\n·Vi-like editors all work on the same basic set of principles  \n·Understanding them helps make sense of the enormous complexity of the viminterface  \nModes  \n·Almost all versions of vi are modal  \n·Usually in one of two basic modes.. ","cbCaihGsxvsUPJKz","https://ap.wps.com/l/cbCaihGsxvsUPJKz","pdf",35246197,54,"English","# Tip 1:Get vim\n# Tip 2:Seek help\n# Tip 3:Understand the metaphors\n## Modes\n# Buffers\n# Commands\n# Tip 4:Learn your alphabet\n# Tip 5:Quit smarter\n# Tip 6:Learn t","[{\"question\":\"What are the main Vim modes described in the guide?\",\"answer\":\"The guide explains Normal mode for moving and making large changes, Insert mode for typing literal text, and additional modes such as command-line, Visual/Visual-Block, and Replace.\"},{\"question\":\"How do buffers work in Vim according to the document?\",\"answer\":\"Vim stores edits in buffers that update immediately in memory; changes are written back to the file only when you use the buffer write command.\"},{\"question\":\"How can you get help for Vim topics as described here?\",\"answer\":\"Use :help, :help \\u003ctopic\\u003e, search help topics with :help \\u003cstring\\u003e using TAB completion, or use :helpgrep \\u003cpattern\\u003e then :cnext to step through matches.\"}]","Mastering Vim | PDF",136,[146,150,154,158,162,166],{"page_no":22,"url":147,"width":148,"height":149},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/56c8ec75bf4033da8acb4150720853c7.webp",983,1390,{"page_no":26,"url":151,"width":152,"height":153},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/7717b5e60f19c1b1ae9d67726b90909e.webp",982,1388,{"page_no":30,"url":155,"width":156,"height":157},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/d7f9df0c0fe375e532ae344f32cf93c2.webp",981,1387,{"page_no":33,"url":159,"width":160,"height":161},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/170d7fa1cd4d036620f21cfdb0483562.webp",980,1385,{"page_no":96,"url":163,"width":164,"height":165},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/d875fa503a9ad3c060e70cfe1ec5ecd0.webp",979,1384,{"page_no":101,"url":167,"width":168,"height":169},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/c3d2e49463dc2ccd67caafc2cb8d8e80.webp",978,1383,{"list":171,"token":11},[172,178,184,190,196,202,208,214,220,226],{"doc_id":173,"doc_title":174,"file_type":137,"home_preview_img_url":175,"slug":176,"view_count":30,"category_name":29,"create_tm":177},689140,"Vim Reference Guide - Learn Vim Editing and Navigation","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230001521890/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111939&Signature=40Elt0G4hUh%2FKjVTxBNiwQyWjCM%3D","vim-reference-guide-learn-vim-editing-and-navigation",1794097583,{"doc_id":179,"doc_title":180,"file_type":137,"home_preview_img_url":181,"slug":182,"view_count":96,"category_name":29,"create_tm":183},689147,"Learning the vi and Vim Editors - Seventh Edition","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230001521964/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111939&Signature=8uxIgCv5FbPwClWqqx7WdlGpmiA%3D","learning-the-vi-and-vim-editors-seventh-edition",1794097598,{"doc_id":185,"doc_title":186,"file_type":137,"home_preview_img_url":187,"slug":188,"view_count":96,"category_name":29,"create_tm":189},689145,"Let there be vim - Part 3 - editor war, modes, and keyboard power","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230000681798/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111939&Signature=FwLcppWG3armCf%2BhztqZAWofHP4%3D","let-there-be-vim-part-3-editor-war-modes-and-keyboard-power",1794097592,{"doc_id":191,"doc_title":192,"file_type":137,"home_preview_img_url":193,"slug":194,"view_count":33,"category_name":29,"create_tm":195},687596,"Learning The Vi Editor - Mastering Text Editing with Vim and Vi Skills","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230001262682/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111939&Signature=6%2Fr%2BEp%2FIYwq5ChAkLOL3cWAS6j4%3D","learning-the-vi-editor-mastering-text-editing-with-vim-and-vi-skills",1794084230,{"doc_id":197,"doc_title":198,"file_type":137,"home_preview_img_url":199,"slug":200,"view_count":101,"category_name":29,"create_tm":201},686889,"Ultimate Guide to Microsoft Keyboard Shortcuts - V1","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230001200914/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111939&Signature=VEpnOp7yRz6mgmzC22cTCnvFxko%3D","ultimate-guide-to-microsoft-keyboard-shortcuts-v1",1794072533,{"doc_id":203,"doc_title":204,"file_type":137,"home_preview_img_url":205,"slug":206,"view_count":101,"category_name":29,"create_tm":207},687585,"Vim Editor Tutorial - Chapter 1 Basic Editing","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230001262640/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111939&Signature=FJHusWqeC1VjNvIkYfTWdClx%2BzM%3D","vim-editor-tutorial-chapter-1-basic-editing",1794084209,{"doc_id":209,"doc_title":210,"file_type":137,"home_preview_img_url":211,"slug":212,"view_count":110,"category_name":29,"create_tm":213},687606,"Linux Text Editors - Part 3 - Commands and Text Editors","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230001262816/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111939&Signature=t%2BuiTZeoBO83pSzYKhL1goDjqA8%3D","linux-text-editors-part-3-commands-and-text-editors",1794084268,{"doc_id":215,"doc_title":216,"file_type":137,"home_preview_img_url":217,"slug":218,"view_count":30,"category_name":29,"create_tm":219},689133,"The Linux Programmer’s Toolbox - Chapter 4 - Editing and Maintaining Source Files","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230001519955/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111939&Signature=0EKwVKlXyUHIqEoUj1en5u18p%2FM%3D","the-linux-programmers-toolbox-chapter-4-editing-and-maintaining-source-files",1794097421,{"doc_id":221,"doc_title":222,"file_type":137,"home_preview_img_url":223,"slug":224,"view_count":30,"category_name":29,"create_tm":225},689142,"Editing with gVim","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230001521916/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111939&Signature=9E41RHQe2qYGMgWqtbv%2FYPfdkDk%3D","editing-with-gvim",1794097588,{"doc_id":227,"doc_title":228,"file_type":137,"home_preview_img_url":229,"slug":230,"view_count":33,"category_name":29,"create_tm":231},687591,"VIM USER MANUAL - Getting Started - Editing Effectively - Tuning Vim","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230001262652/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111939&Signature=aFjKrijuoGJkDVX2JzhcAk%2B7ZQA%3D","vim-user-manual-getting-started-editing-effectively-tuning-vim",1794084219]