{"id":1058,"date":"2013-12-07T21:18:03","date_gmt":"2013-12-07T20:18:03","guid":{"rendered":"http:\/\/blog.techmedia.pl\/?p=1058"},"modified":"2020-07-18T23:01:16","modified_gmt":"2020-07-18T21:01:16","slug":"ubuntu-domyslny-edytor-zmiana","status":"publish","type":"post","link":"https:\/\/www.techmedia.pl\/blog\/ubuntu-domyslny-edytor-zmiana\/","title":{"rendered":"Ubuntu domy\u015blny edytor &#8211; zmiana"},"content":{"rendered":"<p>W celu zmiany domy\u015blnego edytora systemowego, wykorzystywanego mi\u0119dzy innymi przez polecenie <em>visudo<\/em> wydajemy z konsoli poni\u017csze polecenie:<\/p>\n<pre>root@server:\/# <strong>update-alternatives --config editor<\/strong><\/pre>\n<p>Po wykonaniu polecenia<!--more--> wy\u015bwietli nam si\u0119 lista z dost\u0119pnymi w systemie edytorami. Mo\u017cemy wcisn\u0105\u0107 enter i pozostawi\u0107 domy\u015blny edytor bez zmiany lub wpisa\u0107 odpowiedni do naszych preferencji numer, odpowiadaj\u0105cy ulubionemu edytorowi (np. 4).<\/p>\n<pre> There are 5 choices for the alternative editor (providing \/usr\/bin\/editor).\r\n\r\n  Selection    Path                Priority   Status\r\n------------------------------------------------------------\r\n* 0            \/bin\/nano            40        auto mode\r\n  1            \/bin\/ed             -100       manual mode\r\n  2            \/bin\/nano            40        manual mode\r\n  3            \/usr\/bin\/mcedit      25        manual mode\r\n  4            \/usr\/bin\/vim.basic   30        manual mode\r\n  5            \/usr\/bin\/vim.tiny    10        manual mode<\/pre>\n<p>Od tego momentu <em>domy\u015blnym edytorem systemowym<\/em> b\u0119dzie wybrany przez nas.<\/p>\n<p>Je\u015bli po tej czynno\u015bci w Midnight Commander (MC) nadal b\u0119dzie standardowy edytor MC. Po jego uruchomieniu w lini komend nale\u017cy wpisa\u0107:<\/p>\n<pre>root@server:\/# select-editor\r\nSelect an editor. To change later, run 'select-editor'.\r\n1. \/bin\/ed\r\n2. \/bin\/nano &lt;---- easiest\r\n3. \/usr\/bin\/mcedit\r\n4. \/usr\/bin\/vim.basic\r\n5. \/usr\/bin\/vim.tiny\r\n\r\nChoose 1-5 [2]:<\/pre>\n<p>Wpisujemy cyfr\u0119 od 1 do 5 znajduj\u0105c\u0105 si\u0119 przy wybranym edytorze i wciskamy enter.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>W celu zmiany domy\u015blnego edytora systemowego, wykorzystywanego mi\u0119dzy innymi przez polecenie visudo wydajemy z konsoli poni\u017csze polecenie: root@server:\/# update-alternatives &#8211;config editor Po wykonaniu polecenia<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[4],"tags":[229,131,22,98],"yst_prominent_words":[],"_links":{"self":[{"href":"https:\/\/www.techmedia.pl\/blog\/wp-json\/wp\/v2\/posts\/1058"}],"collection":[{"href":"https:\/\/www.techmedia.pl\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.techmedia.pl\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.techmedia.pl\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.techmedia.pl\/blog\/wp-json\/wp\/v2\/comments?post=1058"}],"version-history":[{"count":6,"href":"https:\/\/www.techmedia.pl\/blog\/wp-json\/wp\/v2\/posts\/1058\/revisions"}],"predecessor-version":[{"id":2893,"href":"https:\/\/www.techmedia.pl\/blog\/wp-json\/wp\/v2\/posts\/1058\/revisions\/2893"}],"wp:attachment":[{"href":"https:\/\/www.techmedia.pl\/blog\/wp-json\/wp\/v2\/media?parent=1058"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.techmedia.pl\/blog\/wp-json\/wp\/v2\/categories?post=1058"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.techmedia.pl\/blog\/wp-json\/wp\/v2\/tags?post=1058"},{"taxonomy":"yst_prominent_words","embeddable":true,"href":"https:\/\/www.techmedia.pl\/blog\/wp-json\/wp\/v2\/yst_prominent_words?post=1058"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}