[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-1-en-105":3,"doc-seo-571585-105":53,"doc-detail-571585-en":127},{"code":4,"msg":5,"data":6},0,"success",[7,14,19,24,29,34,39,44,49],{"id":8,"doc_module":9,"doc_module_name":10,"category_name":11,"show_sort_weight":12,"slug":13},11,1,"Template","Presentations",90,"presentations",{"id":15,"doc_module":9,"doc_module_name":10,"category_name":16,"show_sort_weight":17,"slug":18},12,"Resumes",80,"resumes",{"id":20,"doc_module":9,"doc_module_name":10,"category_name":21,"show_sort_weight":22,"slug":23},14,"Invoices",70,"invoices",{"id":25,"doc_module":9,"doc_module_name":10,"category_name":26,"show_sort_weight":27,"slug":28},15,"Posters",60,"posters",{"id":30,"doc_module":9,"doc_module_name":10,"category_name":31,"show_sort_weight":32,"slug":33},16,"Social Media",50,"social-media",{"id":35,"doc_module":9,"doc_module_name":10,"category_name":36,"show_sort_weight":37,"slug":38},17,"Forms",40,"forms",{"id":40,"doc_module":9,"doc_module_name":10,"category_name":41,"show_sort_weight":42,"slug":43},18,"Letters",30,"letters",{"id":45,"doc_module":9,"doc_module_name":10,"category_name":46,"show_sort_weight":47,"slug":48},21,"Paper Templates",5,"papers-templates",{"id":50,"doc_module":9,"doc_module_name":10,"category_name":51,"show_sort_weight":4,"slug":52},158,"General","general-158",{"code":4,"msg":54,"data":55},"ok",{"site_id":56,"language":57,"slug":58,"title":59,"keywords":60,"description":61,"schema_data":62,"social_meta":120,"head_meta":122,"extra_data":124,"updated_unix":126},105,"en","vi-cheat-sheet2","Vi Cheat Sheet2","","Compact reference for efficient text editing in vi/vim. Covers basic cursor motions by character, word, sentence, paragraph, and line navigation to file ends, plus screen/page jumping and searching. Provides deletion, replacement, yank (copy) and paste workflows with numeric repeat counts, including change/delete combinations. Includes ex-mode command-line basics for customizing options, operating on line ranges, running external UNIX commands, file manipulation, and text insertion modes terminated by Esc.",{"@graph":63,"@context":119},[64,80,102],{"@type":65,"itemListElement":66},"BreadcrumbList",[67,71,74,77],{"item":68,"name":69,"@type":70,"position":9},"https://docshare.wps.com","Home","ListItem",{"item":72,"name":10,"@type":70,"position":73},"https://docshare.wps.com/template/",2,{"item":75,"name":11,"@type":70,"position":76},"https://docshare.wps.com/template/presentations/",3,{"item":78,"name":59,"@type":70,"position":79},"https://docshare.wps.com/template/vi-cheat-sheet2/571585/",4,{"url":78,"name":59,"@type":81,"image":82,"author":87,"headline":59,"publisher":90,"fileFormat":93,"inLanguage":57,"description":61,"dateModified":94,"datePublished":95,"encodingFormat":93,"isAccessibleForFree":96,"interactionStatistic":97},"DigitalDocument",{"url":83,"@type":84,"width":85,"height":86},"https://docshare.wps.com/thumbnails/vi-cheat-sheet2/571585.png","ImageObject",442,249,{"name":88,"@type":89},"Putri","Person",{"url":68,"name":91,"@type":92},"DocShare","Organization","application/pdf","2026-10-22","2026-10-13",true,{"@type":98,"interactionType":99,"userInteractionCount":101},"InteractionCounter",{"@type":100},"ViewAction",6,{"@type":103,"mainEntity":104},"FAQPage",[105,111,115],{"name":106,"@type":107,"acceptedAnswer":108},"How do cursor movements work in vi/vim (e.g., h/l, j/k, w/b, $/0)?","Question",{"text":109,"@type":110},"Use h/l for left/right one character and j/k for up/down one line. Use w/b for moving by one word, and $/0 to jump to end or beginning of a line.","Answer",{"name":112,"@type":107,"acceptedAnswer":113},"How do you delete text in vi/vim?",{"text":114,"@type":110},"Use d followed by a motion: d$ deletes to end of line, d0 deletes to beginning, d} deletes to end of paragraph, and dd deletes the whole current line. You can also use x to delete the character under the cursor.",{"name":116,"@type":107,"acceptedAnswer":117},"What are common ex-mode command-line operations in vi/vim?",{"text":118,"@type":110},"In ex mode, you can run set options (e.g., :set number), perform range edits like :18,24 del, copy/move ranges, and invoke external commands on a range with ! (e.g., :11,16! sort -r +3). You can also manage files with :w, :q, :wq, :w!, and :x.","https://schema.org",{"og:url":78,"og:type":121,"og:title":59,"og:site_name":91,"og:description":61},"article",{"robots":123,"canonical":78},"index,follow",{"doc_id":125,"site_id":56},571585,1792019209,{"code":4,"msg":5,"data":128},{"doc_id":125,"user_id":129,"nickname":88,"user_avatar":130,"doc_module":9,"category_id":8,"category_name":11,"doc_title":59,"doc_description":61,"doc_content":131,"file_id":132,"file_url":133,"file_type":134,"file_size":135,"view_count":101,"is_deleted":4,"is_public":9,"is_downloadable":9,"audit_status":9,"page_count":73,"language":136,"language_code":57,"site_id":56,"html_lang":57,"table_of_contents":137,"faqs":138,"seo_title":139,"seo_description":61,"update_tm":140,"read_time":9},962085571259,"https://ap-avatar.wpscdn.com/davatar_29158cc5080c5b710cf443261637dec0","vi cheat sheet  \nCursor movements (items below are sometimes called objects)  \nh - left one character  \nl - right one character  \nj -down one line  \nk -up one line  \nw - right one word  \nb -back one word  \n$ - to the end of line  \n0 - to the beginning of the line  \n) - right one sentence  \n( - left one sentence  \n} - right one paragraph  \n{ - left one paragraph  \nCtrl-F - forward one page  \nCtrl-B -back one page  \nG -go to (without arguments, go to end of file)  \nDeleting  \nd -delete  \nthen add one of the cursor movement symbols to  \nshow what should be deleted, i .e . :  \nd$ -delete to end of line  \nd0 -delete to the beginning of the line  \nd} -delete to the end of paragraph  \ndd -delete delete (delete the whole line)  \nx -delete character cursor is on  \nOther basic commands  \nr - replace one character  \nZZ - save and exit (hold down shift and press \"z\" twice)  \ny - yank (copy into temporary buffer)  \nthen add cursor movement symbol to show what should be  \ncopied, for example: y) - copy to the end of sentence  \nY - yank line cursor is on  \np -paste below cursor line (deleted or copied text)  \nP -paste above cursor line  \nu -undo last editing command  \n/sometext - search for \"sometext\"  \nAny command can take numeric argument before the name of \"object\", i.e.  \n5dd -delete 5 lines beginning with cursor line (or) d5d - same  \n2dw -delete two words (or) d2w -delete two words  \nc3w - change 3 words  \n3Ctrl-B -move up three pages  \n1G -go to the first line  \nExternal commands can be performed on the selected text (in lines)  \nif command is started with \"!\", i .e . :  \n!}fmt - reformat paragraph to 72 columns  \n[http://www.ensyncsolutions.com/](http://www.ensyncsolutions.com/)  \nCommand line (sometimes called \"ex mode\")  \n:  \nFrom the command line a \"set\" command can be executed to customize editing environment, i.e.  \n:set all -will show the state of all options  \n:set number -will show on the screen numbers of all lines  \n:set autoindent // obvious  \nFrom the command line operations can be performed on the range of lines, i.e.  \n:18,24 del -delete from line 18 to line 24  \n:23,48 copy 17 -block from line 23 to 48 copy to line 17  \n:2,17 move 92 -block from line 2 to 17 move to line 92  \nFrom the command line any external UNIX command can be performed on the range of lines if line range is superseded by \"!\"  \n:11,16! sed -e \"s/^/\\/\\*/\" -e \"s/$/\\*\\//\"  \n(the command above wraps the block of text with  \n\"C\" style comments - /* text */ . It can be done  \neasier, but this is an example)  \n:14,19! sort -r +3  \n(sort the table in reverse order by fourth column)  \nFile manipulation from the command line  \n:r somefile - read in \"somefile\"  \n:x - save and exit (if file is \"Read Only\", this command will  \nexit without saving)  \n:wq -write and quit (same as above)  \n:w -write (save) if the file permissions allow it  \n:w! - save file even if it is read-only as long as we own it  \n:w somefile - save this file as \"somefile\"  \n:q -quit without saving  \n:q! -quit without saving if changes were made  \nText input commands (all require \"Esc\" to terminate)  \ni - insert text before the character cursor is on  \nI - insert text at the beginning of the line  \na - append (insert text after the character cursor is on)  \nA - append text to the end of the line  \nc - change (replace previous text with new one)  \ntakes arguments just like the delete command - it is  \na fast and powerful way of changing original text   \nmuch more so than typical \"overwrite\"  \nR - start overwriting text  \no - start entering text at the beginning of the new line  \nbelow the cursor  \nO - start entering text at the beginning of the new line  \nabove the cursor  \nIf in doubt, press \"Esc\"  \n[http://www.ensyncsolutions.com/](http://www.ensyncsolutions.com/)","cbCaiq8bTOnALje3","https://ap.wps.com/l/cbCaiq8bTOnALje3","pdf",84957,"English","# Cursor movements\n# Deleting and editing\n# Other basic commands\n# Search and numeric arguments\n# ex mode (command line)\n## File and range operations\n## External UNIX commands","[{\"question\":\"How do cursor movements work in vi/vim (e.g., h/l, j/k, w/b, $/0)?\",\"answer\":\"Use h/l for left/right one character and j/k for up/down one line. Use w/b for moving by one word, and $/0 to jump to end or beginning of a line.\"},{\"question\":\"How do you delete text in vi/vim?\",\"answer\":\"Use d followed by a motion: d$ deletes to end of line, d0 deletes to beginning, d} deletes to end of paragraph, and dd deletes the whole current line. You can also use x to delete the character under the cursor.\"},{\"question\":\"What are common ex-mode command-line operations in vi/vim?\",\"answer\":\"In ex mode, you can run set options (e.g., :set number), perform range edits like :18,24 del, copy/move ranges, and invoke external commands on a range with ! (e.g., :11,16! sort -r +3). You can also manage files with :w, :q, :wq, :w!, and :x.\"}]","Vi Cheat Sheet2 | PDF",1791922479]