{"id":145,"date":"2014-11-02T00:00:09","date_gmt":"2014-11-01T23:00:09","guid":{"rendered":"http:\/\/kurt.www.pinboard.jp\/blog\/?p=145"},"modified":"2014-10-30T19:35:14","modified_gmt":"2014-10-30T18:35:14","slug":"history","status":"publish","type":"post","link":"https:\/\/kurt.www.pinboard.jp\/blog\/kurt\/145\/","title":{"rendered":"history"},"content":{"rendered":"<p>Sometimes I see people typing the same set of commands in vim or search strings over and over. This is not only cumbersome, but also error prone. Probably they do not know that vim does have<!--more--> a history function for commands, search strings and even more. Simply press the <span style=\"color: #008000;\">Up<\/span> and <span style=\"color: #008000;\">Down<\/span> or <span style=\"color: #008000;\">CTRL-p<\/span> and <span style=\"color: #008000;\">CTRL-n<\/span> keys to scroll through the history while on the command or search prompt.<\/p>\n<table>\n<tbody valign=\"top\">\n<tr>\n<td style=\"background-color: lightyellow; color: green;\">Up<\/td>\n<td> <span style=\"color: #008000;\">CTRL-p<\/span><\/td>\n<td>scroll backward in the history<\/td>\n<\/tr>\n<tr>\n<td style=\"background-color: lightyellow; color: green;\">Down<\/td>\n<td> <span style=\"color: #008000;\">CTRL-n<\/span><\/td>\n<td>scroll forward in the history<\/td>\n<\/tr>\n<\/table>\n","protected":false},"excerpt":{"rendered":"<p>Sometimes I see people typing the same set of commands in vim or search strings over and over. This is not only cumbersome, but also error prone. Probably they do not know that vim does have<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[2],"tags":[21],"_links":{"self":[{"href":"https:\/\/kurt.www.pinboard.jp\/blog\/wp-json\/wp\/v2\/posts\/145"}],"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=145"}],"version-history":[{"count":1,"href":"https:\/\/kurt.www.pinboard.jp\/blog\/wp-json\/wp\/v2\/posts\/145\/revisions"}],"predecessor-version":[{"id":146,"href":"https:\/\/kurt.www.pinboard.jp\/blog\/wp-json\/wp\/v2\/posts\/145\/revisions\/146"}],"wp:attachment":[{"href":"https:\/\/kurt.www.pinboard.jp\/blog\/wp-json\/wp\/v2\/media?parent=145"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kurt.www.pinboard.jp\/blog\/wp-json\/wp\/v2\/categories?post=145"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kurt.www.pinboard.jp\/blog\/wp-json\/wp\/v2\/tags?post=145"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}