{"id":128,"date":"2017-11-10T18:49:36","date_gmt":"2017-11-10T18:49:36","guid":{"rendered":"https:\/\/www.tobanet.de\/s\/?p=128"},"modified":"2017-11-10T18:49:36","modified_gmt":"2017-11-10T18:49:36","slug":"vim-adjust-the-screen","status":"publish","type":"post","link":"https:\/\/www.tobanet.de\/s\/2017\/11\/vim-adjust-the-screen\/","title":{"rendered":"vim &#8211; adjust current line at screen"},"content":{"rendered":"<p>Here I want to focus on a few keystrokes which help to adjust where your current line appears on your screen in Normal mode.<\/p>\n<table>\n<tbody>\n<tr>\n<td>z[RETURN]<\/td>\n<td>redraw screen with current line at top<\/td>\n<\/tr>\n<tr>\n<td>zz<\/td>\n<td>redraw screen with current line at center<\/td>\n<\/tr>\n<tr>\n<td>z-<\/td>\n<td>redraw screen with current line at bottom (as far down as possible)<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<p>You can display the screen at center even while you are in Insert mode. No need to leave Insert mode, center the screen and reenter Insert mode. That&#8217;s especially helpful if you just want to see more context above and beneath your current position.<\/p>\n<table>\n<tbody>\n<tr>\n<td>[ctrl-o]zz<\/td>\n<td>run just one command while in Insert mode,<br \/>\ndisplay screen at center and return to Insert mode<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Here I want to focus on a few keystrokes which help to adjust where your current line appears on your screen in Normal mode. z[RETURN] redraw screen with current line at top zz redraw screen with current line at center z- redraw screen with current line at bottom (as far down as possible) &nbsp; You can display the screen at center even while you are in Insert mode. No need to leave Insert mode, center the screen and reenter Insert&#8230;<\/p>\n<p class=\"read-more\"><a class=\"btn btn-default\" href=\"https:\/\/www.tobanet.de\/s\/2017\/11\/vim-adjust-the-screen\/\"> Read More<span class=\"screen-reader-text\">  Read More<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12],"tags":[13],"class_list":["post-128","post","type-post","status-publish","format-standard","hentry","category-tools","tag-vim"],"_links":{"self":[{"href":"https:\/\/www.tobanet.de\/s\/wp-json\/wp\/v2\/posts\/128","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.tobanet.de\/s\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.tobanet.de\/s\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.tobanet.de\/s\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tobanet.de\/s\/wp-json\/wp\/v2\/comments?post=128"}],"version-history":[{"count":3,"href":"https:\/\/www.tobanet.de\/s\/wp-json\/wp\/v2\/posts\/128\/revisions"}],"predecessor-version":[{"id":138,"href":"https:\/\/www.tobanet.de\/s\/wp-json\/wp\/v2\/posts\/128\/revisions\/138"}],"wp:attachment":[{"href":"https:\/\/www.tobanet.de\/s\/wp-json\/wp\/v2\/media?parent=128"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tobanet.de\/s\/wp-json\/wp\/v2\/categories?post=128"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tobanet.de\/s\/wp-json\/wp\/v2\/tags?post=128"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}