{"id":4147,"date":"2016-10-17T21:58:21","date_gmt":"2016-10-17T19:58:21","guid":{"rendered":"http:\/\/michlstechblog.info\/blog\/?p=4147"},"modified":"2022-01-20T21:18:16","modified_gmt":"2022-01-20T20:18:16","slug":"vivim-enable-syntax-highlightning-in-vi","status":"publish","type":"post","link":"https:\/\/michlstechblog.info\/blog\/vivim-enable-syntax-highlightning-in-vi\/","title":{"rendered":"VI\/VIM: Enable syntax highlightning in vi"},"content":{"rendered":"<div class=\"twoclick_social_bookmarks_post_4147 social_share_privacy clearfix 1.6.4 locale-en_US sprite-en_US\"><\/div><div class=\"twoclick-js\"><script type=\"text\/javascript\">\/* <![CDATA[ *\/\njQuery(document).ready(function($){if($('.twoclick_social_bookmarks_post_4147')){$('.twoclick_social_bookmarks_post_4147').socialSharePrivacy({\"services\":{\"flattr\":{\"uid\":\"Michl\",\"status\":\"on\",\"the_title\":\"VI%2FVIM%3A%20Enable%20syntax%20highlightning%20in%20vi\",\"the_excerpt\":\"Hi%2C%0D%0A%0D%0Athere%20are%20two%20options%20to%20enable%20syntax%20highlightning%20in%20vi%2Fvim.%0D%0A%0D%0AJust%20for%20your%20current%20editor%20session.%20Open%20your%20file%20%0D%0A%20%28more%26hellip%3B%29\",\"txt_info\":\"2 clicks for more data protection:\\r\\n\\r\\nOnly when you click here, the button will be come active and you can send your recommendation to Flattr. When activating, data are transmitted to third parties. \",\"perma_option\":\"off\"}},\"txt_help\":\"When you activate these fields by clicking, information to Flattr may be transferred abroad, and probably may also stored there.\",\"settings_perma\":\"Enable permanently and accept data transmission. \",\"info_link\":\"http:\\\/\\\/www.heise.de\\\/ct\\\/artikel\\\/2-Klicks-fuer-mehr-Datenschutz-1333879.html\",\"uri\":\"https:\\\/\\\/michlstechblog.info\\\/blog\\\/vivim-enable-syntax-highlightning-in-vi\\\/\",\"post_id\":4147,\"post_title_referrer_track\":\"VI%2FVIM%3A+Enable+syntax+highlightning+in+vi\",\"display_infobox\":\"on\"});}});\n\/* ]]> *\/<\/script><\/div><p>Hi,<\/p>\n<p>there are two options to enable syntax highlightning in vi\/vim.<\/p>\n<p>Just for your current editor session. Open your file<br \/>\n<!--more--><\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nmichael@debdev # vi .\/src\/examples\/knxtool.c\r\n<\/pre>\n<p>and enable highlightning<br \/>\n<code><br \/>\nESC<br \/>\n:syntax on<br \/>\n<\/code><\/p>\n<p>Or persitent. Open .vimrc in your home folder<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nmichael@debdev # vi ~\/.vimrc\r\n<\/pre>\n<p>and add<br \/>\n<code><br \/>\nsyntax on<br \/>\n<\/code><\/p>\n<p>To show line numbers add<br \/>\n<code><br \/>\nset number<br \/>\n<\/code><\/p>\n<p>Michael<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hi, there are two options to enable syntax highlightning in vi\/vim. Just for your current editor session. Open your file<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[47,224,936,933,934,935],"class_list":["post-4147","post","type-post","status-publish","format-standard","hentry","category-linux","tag-enable","tag-linux-2","tag-syntax-highlightning","tag-unix","tag-vi","tag-vim"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/posts\/4147","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/comments?post=4147"}],"version-history":[{"count":4,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/posts\/4147\/revisions"}],"predecessor-version":[{"id":4835,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/posts\/4147\/revisions\/4835"}],"wp:attachment":[{"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/media?parent=4147"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/categories?post=4147"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/tags?post=4147"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}