{"id":805,"date":"2025-08-29T12:14:51","date_gmt":"2025-08-29T10:14:51","guid":{"rendered":"https:\/\/blog.chloesoe.ch\/?p=805"},"modified":"2025-08-29T12:43:53","modified_gmt":"2025-08-29T10:43:53","slug":"vim-commands","status":"publish","type":"post","link":"https:\/\/blog.chloesoe.ch\/?p=805","title":{"rendered":"Vim Commands"},"content":{"rendered":"<p>Some commands, unsorted, written down when I found something interessting<\/p>\n<h3>See definition of a variable:<\/h3>\n<pre><code>[ i<\/code><\/pre>\n<p>Good article: <a href=\"https:\/\/begriffs.com\/posts\/2019-07-19-history-use-vim.html\">https:\/\/begriffs.com\/posts\/2019-07-19-history-use-vim.html<\/a><\/p>\n<h3>Check if two lines differ:<\/h3>\n<ul>\n<li>mark them with v\n<pre><code>:sort u<\/code><\/pre>\n<\/li>\n<li>if only one line stays, they are the same<\/li>\n<li>press <code>u<\/code> to undo<\/li>\n<\/ul>\n<h3>Create Columns<\/h3>\n<p>columns with delimiter &quot;,&quot;<\/p>\n<pre><code>:%!column -t -s&#039;,&#039;<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Some commands, unsorted, written down when I found something interessting See definition of a variable: [ i Good article: https:\/\/begriffs.com\/posts\/2019-07-19-history-use-vim.html Check if two lines differ: mark them with v :sort u if only one line stays, they are the same press u to undo Create Columns columns with delimiter &quot;,&quot; :%!column -t -s&#039;,&#039;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[],"class_list":["post-805","post","type-post","status-publish","format-standard","hentry","category-vim"],"_links":{"self":[{"href":"https:\/\/blog.chloesoe.ch\/index.php?rest_route=\/wp\/v2\/posts\/805","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.chloesoe.ch\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.chloesoe.ch\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.chloesoe.ch\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.chloesoe.ch\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=805"}],"version-history":[{"count":1,"href":"https:\/\/blog.chloesoe.ch\/index.php?rest_route=\/wp\/v2\/posts\/805\/revisions"}],"predecessor-version":[{"id":806,"href":"https:\/\/blog.chloesoe.ch\/index.php?rest_route=\/wp\/v2\/posts\/805\/revisions\/806"}],"wp:attachment":[{"href":"https:\/\/blog.chloesoe.ch\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=805"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.chloesoe.ch\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=805"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.chloesoe.ch\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=805"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}