{"id":77,"date":"2014-08-31T00:00:27","date_gmt":"2014-08-30T22:00:27","guid":{"rendered":"http:\/\/kurt.www.pinboard.jp\/blog\/?p=77"},"modified":"2014-07-27T16:38:00","modified_gmt":"2014-07-27T14:38:00","slug":"visual-selection","status":"publish","type":"post","link":"https:\/\/kurt.www.pinboard.jp\/blog\/kurt\/77\/","title":{"rendered":"visual selection"},"content":{"rendered":"<p>Selecting text in vim in a terminal window without mouse support may be a bit difficult if it&#8217;s not something like <em>3 words<\/em> or <em>2 lines<\/em>. Visual mode to the rescue!<!--more--> With visual mode your selection is not only highlighted, but you can also select arbitrary parts of the text file.<\/p>\n<ol>\n<li>go to the start of your selection<\/li>\n<li>type <span style=\"color: green;\">v<\/span><\/li>\n<li>move to the end of the selection with the usual motion commands<\/li>\n<li>type the command you want to perform on the selected text (like y for yank, d for delete, etc.)<\/li>\n<\/ol>\n<p><BR><br \/>\nThere are three different selection modes:<\/p>\n<table>\n<tbody valign=\"top\">\n<tr>\n<td style=\"background-color: lightyellow; color: green;\">v<\/td>\n<td>start visual selection in character mode<\/td>\n<\/tr>\n<tr>\n<td style=\"background-color: lightyellow; color: green;\">V<\/td>\n<td>start visual selection in line mode<\/td>\n<\/tr>\n<tr>\n<td style=\"background-color: lightyellow; color: green;\">CTRL-v<\/td>\n<td>start visual selection in block mode<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n","protected":false},"excerpt":{"rendered":"<p>Selecting text in vim in a terminal window without mouse support may be a bit difficult if it&#8217;s not something like 3 words or 2 lines. Visual mode to the rescue!<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[2],"tags":[14],"_links":{"self":[{"href":"https:\/\/kurt.www.pinboard.jp\/blog\/wp-json\/wp\/v2\/posts\/77"}],"collection":[{"href":"https:\/\/kurt.www.pinboard.jp\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kurt.www.pinboard.jp\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kurt.www.pinboard.jp\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/kurt.www.pinboard.jp\/blog\/wp-json\/wp\/v2\/comments?post=77"}],"version-history":[{"count":3,"href":"https:\/\/kurt.www.pinboard.jp\/blog\/wp-json\/wp\/v2\/posts\/77\/revisions"}],"predecessor-version":[{"id":80,"href":"https:\/\/kurt.www.pinboard.jp\/blog\/wp-json\/wp\/v2\/posts\/77\/revisions\/80"}],"wp:attachment":[{"href":"https:\/\/kurt.www.pinboard.jp\/blog\/wp-json\/wp\/v2\/media?parent=77"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kurt.www.pinboard.jp\/blog\/wp-json\/wp\/v2\/categories?post=77"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kurt.www.pinboard.jp\/blog\/wp-json\/wp\/v2\/tags?post=77"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}