{"id":284,"date":"2014-01-19T13:31:56","date_gmt":"2014-01-19T13:31:56","guid":{"rendered":"http:\/\/notnull.ro\/log\/?p=284"},"modified":"2014-01-20T21:52:32","modified_gmt":"2014-01-20T21:52:32","slug":"vim-show-lines-number-eclipse-show-lines-number","status":"publish","type":"post","link":"https:\/\/notnull.ro\/log\/vim-show-lines-number-eclipse-show-lines-number\/","title":{"rendered":"VIM: show lines number; Eclipse: show lines number"},"content":{"rendered":"<p>\nEclipse and VIM are my favorite editors. For tasks that requires a lot of coding and especially for java Eclipse is the best, but it requires a lot of resources (CPU and RAM). When I have to modify just couple of lines, then VIM is the choice; I fix the code faster that Eclipse starts.\n<\/p>\n<p>\nFor both cases there are situations when you would like to see the lines number. Here is how I do it.<br \/>\nIn VIM, having the editor open in command mode, just type <em>:set number<\/em>, or only <em>:set nu<\/em>.<br \/>\nHere is the result:<\/p>\n<p><div id=\"attachment_285\" style=\"width: 628px\" class=\"wp-caption alignleft\"><a href=\"https:\/\/notnull.ro\/log\/wp-content\/uploads\/2014\/01\/vim_show_lines_number.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-285\" src=\"https:\/\/notnull.ro\/log\/wp-content\/uploads\/2014\/01\/vim_show_lines_number.png\" alt=\"vim show lines number\" width=\"618\" height=\"508\" class=\"size-full wp-image-285\" srcset=\"https:\/\/notnull.ro\/log\/wp-content\/uploads\/2014\/01\/vim_show_lines_number.png 618w, https:\/\/notnull.ro\/log\/wp-content\/uploads\/2014\/01\/vim_show_lines_number-300x246.png 300w\" sizes=\"auto, (max-width: 618px) 100vw, 618px\" \/><\/a><p id=\"caption-attachment-285\" class=\"wp-caption-text\">vim show lines number<\/p><\/div><br \/>\n<br style=\"clear:both !important\" \/>To revert it (make lines number not visible), just type <em>:set no number<\/em>, or <em>:set nonu<\/em>\n<\/p>\n<p>\nTo make the lines number visible in Eclipse, we have to play a little with the menu entries: <strong>Window-&gt;Preferences<\/strong>, a popup will open and then select in the tree <strong>General->&gt;Editors-&gt;Text Editors<\/strong> and check the <strong>Show line numbers<\/strong>, just like bellow<br \/>\n<a href=\"https:\/\/notnull.ro\/log\/wp-content\/uploads\/2014\/01\/eclipse_show_lines_number.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/notnull.ro\/log\/wp-content\/uploads\/2014\/01\/eclipse_show_lines_number.png\" alt=\"eclipse_show_lines_number\" width=\"576\" height=\"563\" class=\"alignleft size-full wp-image-295\" srcset=\"https:\/\/notnull.ro\/log\/wp-content\/uploads\/2014\/01\/eclipse_show_lines_number.png 576w, https:\/\/notnull.ro\/log\/wp-content\/uploads\/2014\/01\/eclipse_show_lines_number-300x293.png 300w, https:\/\/notnull.ro\/log\/wp-content\/uploads\/2014\/01\/eclipse_show_lines_number-24x24.png 24w, https:\/\/notnull.ro\/log\/wp-content\/uploads\/2014\/01\/eclipse_show_lines_number-36x36.png 36w, https:\/\/notnull.ro\/log\/wp-content\/uploads\/2014\/01\/eclipse_show_lines_number-48x48.png 48w, https:\/\/notnull.ro\/log\/wp-content\/uploads\/2014\/01\/eclipse_show_lines_number-64x64.png 64w\" sizes=\"auto, (max-width: 576px) 100vw, 576px\" \/><\/a><br \/>\n<br style=\"clear: both !important;\">And the result is something like this:<br \/>\n<div id=\"attachment_296\" style=\"width: 606px\" class=\"wp-caption alignleft\"><a href=\"https:\/\/notnull.ro\/log\/wp-content\/uploads\/2014\/01\/eclipse_show_lines_number1.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-296\" src=\"https:\/\/notnull.ro\/log\/wp-content\/uploads\/2014\/01\/eclipse_show_lines_number1.png\" alt=\"Eclipse show lines number\" width=\"596\" height=\"410\" class=\"size-full wp-image-296\" srcset=\"https:\/\/notnull.ro\/log\/wp-content\/uploads\/2014\/01\/eclipse_show_lines_number1.png 596w, https:\/\/notnull.ro\/log\/wp-content\/uploads\/2014\/01\/eclipse_show_lines_number1-300x206.png 300w\" sizes=\"auto, (max-width: 596px) 100vw, 596px\" \/><\/a><p id=\"caption-attachment-296\" class=\"wp-caption-text\">Eclipse show lines number<\/p><\/div><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Eclipse and VIM are my favorite editors. For tasks that requires a lot of coding and especially for java Eclipse is the best, but it requires a lot of resources (CPU and RAM). When I have to modify just couple of lines, then VIM is the choice; I fix the code faster that Eclipse starts. <a href='https:\/\/notnull.ro\/log\/vim-show-lines-number-eclipse-show-lines-number\/' class='excerpt-more'>&#8230; Read Full Article<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,18],"tags":[79,82,80,81,30],"class_list":["post-284","post","type-post","status-publish","format-standard","hentry","category-programming","category-vim","tag-eclipse","tag-editor","tag-lines","tag-number","tag-vim-2","category-5-id","category-18-id","post-seq-1","post-parity-odd","meta-position-corners","fix"],"_links":{"self":[{"href":"https:\/\/notnull.ro\/log\/wp-json\/wp\/v2\/posts\/284","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/notnull.ro\/log\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/notnull.ro\/log\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/notnull.ro\/log\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/notnull.ro\/log\/wp-json\/wp\/v2\/comments?post=284"}],"version-history":[{"count":11,"href":"https:\/\/notnull.ro\/log\/wp-json\/wp\/v2\/posts\/284\/revisions"}],"predecessor-version":[{"id":308,"href":"https:\/\/notnull.ro\/log\/wp-json\/wp\/v2\/posts\/284\/revisions\/308"}],"wp:attachment":[{"href":"https:\/\/notnull.ro\/log\/wp-json\/wp\/v2\/media?parent=284"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/notnull.ro\/log\/wp-json\/wp\/v2\/categories?post=284"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/notnull.ro\/log\/wp-json\/wp\/v2\/tags?post=284"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}