{"id":128,"date":"2013-03-18T23:31:34","date_gmt":"2013-03-18T23:31:34","guid":{"rendered":"http:\/\/chewett.co.uk\/?p=128"},"modified":"2013-05-02T00:23:50","modified_gmt":"2013-05-01T23:23:50","slug":"show-trailing-whitespace-in-vim","status":"publish","type":"post","link":"https:\/\/chewett.co.uk\/blog\/128\/show-trailing-whitespace-in-vim\/","title":{"rendered":"Show trailing whitespace in Vim"},"content":{"rendered":"<figure id=\"attachment_129\" aria-describedby=\"caption-attachment-129\" style=\"width: 278px\" class=\"wp-caption alignleft\"><a href=\"https:\/\/i0.wp.com\/chewett.co.uk\/wp-content\/uploads\/2013\/03\/trailing_whitspace.png\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-129\" alt=\"A small snippet of code showing trailing whitespace being shown in vim\" src=\"https:\/\/i0.wp.com\/chewett.co.uk\/wp-content\/uploads\/2013\/03\/trailing_whitspace.png?resize=278%2C90\" width=\"278\" height=\"90\" \/><\/a><figcaption id=\"caption-attachment-129\" class=\"wp-caption-text\">A small snippet of code showing trailing whitespace being shown in vim<\/figcaption><\/figure>\n<p>Vim is a wonderful command line text editor with syntax highlighting and everything you could ask for provided you turn on the functionality. Recently i was shown that it was also show trailing whitespace with a quick addition to the .vimrc file.<\/p>\n<p>All you need to do is add the following:<\/p>\n<pre>set list\r\nset listchars=tab:\u2192\\ ,trail:\u2603<\/pre>\n<p>Thanks to Sam for showing me this, Here is his <a href=\"https:\/\/github.com\/samphippen\/dotfiles\/blob\/master\/vim\/vimrc.symlink\">full vimrc<\/a> or a directory of all of his\u00a0<a href=\"https:\/\/github.com\/samphippen\/dotfiles\">settings files<\/a>. Have a browse!<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Vim is a wonderful command line text editor with syntax highlighting and everything you could ask for provided you turn on the functionality. Recently i was shown that it was also show trailing whitespace with a quick addition to the .vimrc file. All you need to do is add the following: set list set listchars=tab:\u2192\\ [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[5],"tags":[56,57,39,58,59,55],"class_list":["post-128","post","type-post","status-publish","format-standard","hentry","category-informational","tag-vimrc","tag-commandline-text-editor","tag-linux","tag-text-editor","tag-vi","tag-vim"],"wppr_data":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p2toWX-24","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":479,"url":"https:\/\/chewett.co.uk\/blog\/479\/debian-apt-get-installer-asking-insert-cd-install-disk\/","url_meta":{"origin":128,"position":0},"title":"Debian apt-get installer asking to insert CD install disk","author":"Chewett","date":"July 22, 2017","format":false,"excerpt":"inThis blog post describes why Debian is asking you to insert a CD while using apt-get and how you can stop this. Why apt-get asks for a DVD If you installed Debian via the install DVD it will set up apt to install from the DVD. This is because the\u2026","rel":"","context":"In &quot;Fixes&quot;","block_context":{"text":"Fixes","link":"https:\/\/chewett.co.uk\/blog\/category\/fixes\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/07\/debian_apt_get_install_insert_cd.jpg?fit=800%2C800&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/07\/debian_apt_get_install_insert_cd.jpg?fit=800%2C800&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/07\/debian_apt_get_install_insert_cd.jpg?fit=800%2C800&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/07\/debian_apt_get_install_insert_cd.jpg?fit=800%2C800&ssl=1&resize=700%2C400 2x"},"classes":[]},{"id":1933,"url":"https:\/\/chewett.co.uk\/blog\/1933\/using-the-nano-editor-with-a-raspberry-pi\/","url_meta":{"origin":128,"position":1},"title":"Using the Nano Editor with a Raspberry Pi","author":"Chewett","date":"February 16, 2019","format":false,"excerpt":"Today I talk about the Nano editor which can be used to edit files on the Raspberry Pi over SSH. What is Nano? Nano is an easy to use command line text editor. It is very useful when you need to edit files on your Raspberry Pi over SSH. Using\u2026","rel":"","context":"In &quot;Informational&quot;","block_context":{"text":"Informational","link":"https:\/\/chewett.co.uk\/blog\/category\/informational\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2019\/01\/using_nano_on_the_pi.jpg?fit=800%2C800&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2019\/01\/using_nano_on_the_pi.jpg?fit=800%2C800&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2019\/01\/using_nano_on_the_pi.jpg?fit=800%2C800&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2019\/01\/using_nano_on_the_pi.jpg?fit=800%2C800&ssl=1&resize=700%2C400 2x"},"classes":[]},{"id":375,"url":"https:\/\/chewett.co.uk\/blog\/375\/setting-up-the-ci20-for-the-cluster\/","url_meta":{"origin":128,"position":2},"title":"Setting up the CI20 for the cluster","author":"Chewett","date":"October 27, 2018","format":false,"excerpt":"This post talks about the steps I have followed to set up my Creator CI20 for the Raspberry Pi Cluster. Burning Debian to the onboard NAND and configuring it To run the CI20 on the Raspberry Pi Cluster I am going to write Debian 8 to the NAND storage. First\u2026","rel":"","context":"In &quot;Raspberry Pi Cluster&quot;","block_context":{"text":"Raspberry Pi Cluster","link":"https:\/\/chewett.co.uk\/blog\/category\/raspberry-pi-cluster\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2018\/10\/ci40_setup.jpg?fit=800%2C800&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2018\/10\/ci40_setup.jpg?fit=800%2C800&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2018\/10\/ci40_setup.jpg?fit=800%2C800&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2018\/10\/ci40_setup.jpg?fit=800%2C800&ssl=1&resize=700%2C400 2x"},"classes":[]},{"id":82,"url":"https:\/\/chewett.co.uk\/blog\/82\/raspberry-pi\/","url_meta":{"origin":128,"position":3},"title":"Raspberry Pi!","author":"Chewett","date":"January 22, 2013","format":false,"excerpt":"During Christmas I got a raspberry pi and I have been waiting to start playing around with it for ages. Finally I decided to order the remaining pieces for it such as the power cable and SD card. Since I didn't have a HDMI TV around I decided to plug\u2026","rel":"","context":"In \"Linux\"","block_context":{"text":"Linux","link":"https:\/\/chewett.co.uk\/blog\/tag\/linux\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":409,"url":"https:\/\/chewett.co.uk\/blog\/409\/setting-raspberry-pi-cluster-node\/","url_meta":{"origin":128,"position":4},"title":"Setting up a Raspberry Pi Cluster Node","author":"Chewett","date":"August 19, 2017","format":false,"excerpt":"To set up a Raspberry Pi node I will follow a specific set of steps so that every Pi is set up \u00a0similarly. For the initial deployment I will follow this once and then clone the SD Card multiple times. If at a later date more are added I will\u2026","rel":"","context":"In &quot;Raspberry Pi Cluster&quot;","block_context":{"text":"Raspberry Pi Cluster","link":"https:\/\/chewett.co.uk\/blog\/category\/raspberry-pi-cluster\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/08\/setting_up_a_raspi_cluster_node.jpg?fit=800%2C800&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/08\/setting_up_a_raspi_cluster_node.jpg?fit=800%2C800&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/08\/setting_up_a_raspi_cluster_node.jpg?fit=800%2C800&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/08\/setting_up_a_raspi_cluster_node.jpg?fit=800%2C800&ssl=1&resize=700%2C400 2x"},"classes":[]},{"id":619,"url":"https:\/\/chewett.co.uk\/blog\/619\/installing-latex-texmaker-windows\/","url_meta":{"origin":128,"position":5},"title":"Installing LaTeX and TeXMaker on Windows","author":"Chewett","date":"September 2, 2017","format":false,"excerpt":"LaTeX is a document writing system allows you to focus on the content of the letter or paper. In this post I describe how to set up a LaTeX typesetting program and TeX editor on Windows. Why install LaTeX LaTeX is primarily used in the academical fields where many scientific\u2026","rel":"","context":"In &quot;Informational&quot;","block_context":{"text":"Informational","link":"https:\/\/chewett.co.uk\/blog\/category\/informational\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/08\/latex_on_windows.jpg?fit=800%2C800&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/08\/latex_on_windows.jpg?fit=800%2C800&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/08\/latex_on_windows.jpg?fit=800%2C800&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/08\/latex_on_windows.jpg?fit=800%2C800&ssl=1&resize=700%2C400 2x"},"classes":[]}],"_links":{"self":[{"href":"https:\/\/chewett.co.uk\/blog\/wp-json\/wp\/v2\/posts\/128","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/chewett.co.uk\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/chewett.co.uk\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/chewett.co.uk\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/chewett.co.uk\/blog\/wp-json\/wp\/v2\/comments?post=128"}],"version-history":[{"count":4,"href":"https:\/\/chewett.co.uk\/blog\/wp-json\/wp\/v2\/posts\/128\/revisions"}],"predecessor-version":[{"id":139,"href":"https:\/\/chewett.co.uk\/blog\/wp-json\/wp\/v2\/posts\/128\/revisions\/139"}],"wp:attachment":[{"href":"https:\/\/chewett.co.uk\/blog\/wp-json\/wp\/v2\/media?parent=128"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/chewett.co.uk\/blog\/wp-json\/wp\/v2\/categories?post=128"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/chewett.co.uk\/blog\/wp-json\/wp\/v2\/tags?post=128"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}