{"id":19,"date":"2006-12-25T02:22:05","date_gmt":"2006-12-25T00:22:05","guid":{"rendered":"http:\/\/gcolpart.evolix.net\/blog21\/nobreakspace-in-vim-with-utf-8-encoding\/"},"modified":"2006-12-25T02:22:05","modified_gmt":"2006-12-25T00:22:05","slug":"nobreakspace-in-vim-with-utf-8-encoding","status":"publish","type":"post","link":"https:\/\/gcolpart.evolix.net\/blog21\/nobreakspace-in-vim-with-utf-8-encoding\/","title":{"rendered":"NoBreakSPace in Vim with utf-8 encoding"},"content":{"rendered":"<p>In Vim with iso-8859-1 encoding, when you press NBSP (NoBreakSPace) character (0xa0 in 8-bit ASCII), you see:<\/p>\n<pre>\u00ab| Es-tu l\u00e0| ?| \u00bb<\/pre>\n<p>But with utf-8 encoding, you see by default a common space for NBSP.<br \/>\nThen, you can add theses lines in your vimrc to see it:<\/p>\n<pre>if &encoding == \"utf-8\"\r\nset list lcs=nbsp:\u00b7\r\nendif<\/pre>\n<p>And you can see:<\/p>\n<pre>\u00ab\u00b7Es-tu l\u00e0\u00b7?\u00b7\u00bb<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>In Vim with iso-8859-1 encoding, when you press NBSP (NoBreakSPace) character (0xa0 in 8-bit ASCII), you see: \u00ab| Es-tu l\u00e0| ?| \u00bb But with utf-8 encoding, you see by default a common space for NBSP. Then, you can add theses lines in your vimrc to see it: if &#038;encoding == &#8220;utf-8&#8221; set list lcs=nbsp:\u00b7 endif [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-19","post","type-post","status-publish","format-standard","hentry","category-english"],"_links":{"self":[{"href":"https:\/\/gcolpart.evolix.net\/blog21\/wp-json\/wp\/v2\/posts\/19","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/gcolpart.evolix.net\/blog21\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/gcolpart.evolix.net\/blog21\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/gcolpart.evolix.net\/blog21\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/gcolpart.evolix.net\/blog21\/wp-json\/wp\/v2\/comments?post=19"}],"version-history":[{"count":0,"href":"https:\/\/gcolpart.evolix.net\/blog21\/wp-json\/wp\/v2\/posts\/19\/revisions"}],"wp:attachment":[{"href":"https:\/\/gcolpart.evolix.net\/blog21\/wp-json\/wp\/v2\/media?parent=19"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/gcolpart.evolix.net\/blog21\/wp-json\/wp\/v2\/categories?post=19"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/gcolpart.evolix.net\/blog21\/wp-json\/wp\/v2\/tags?post=19"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}