{"id":216,"date":"2020-07-25T14:42:08","date_gmt":"2020-07-25T13:42:08","guid":{"rendered":"https:\/\/blog.inplico.uk\/?p=216"},"modified":"2020-07-25T14:47:38","modified_gmt":"2020-07-25T13:47:38","slug":"vim-plugins","status":"publish","type":"post","link":"https:\/\/blog.inplico.uk\/?p=216","title":{"rendered":"Vim plugins"},"content":{"rendered":"<p>The vim configuration file on a user basis is ~\/.vimrc.\u00a0 If you don&#8217;t have this file then make it.<\/p>\n<p>I always like to start vim with numbering on so the first thing I put in this file is<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"godzilla\">set number<\/pre>\n<p>&nbsp;<\/p>\n<p>The global configuration file is \/etc\/vimrc.\u00a0 in here I like to uncomment the following (Note:\u00a0 You can use either config file, if you have different arguments for the same setting in both then the user setting overrides the global):<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"godzilla\">syntax on\r\nset shocmd\r\nset showmtach<\/pre>\n<p>There are other options in there, but this just a reminder of how I set it up.<\/p>\n<p><strong>YouCompleteMe<\/strong><\/p>\n<p>This is a fairly useful plugin for vim that assists when writing code.\u00a0 There is a debian package, but I find the best way is to install it manually.\u00a0 first add this to your ~\/.vimrc file<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"ini\" data-enlighter-theme=\"godzilla\">set nocompatible              \" be iMproved, required\r\nfiletype off                  \" required\r\n\r\n\" set the runtime path to include Vundle and initialize\r\nset rtp+=~\/.vim\/bundle\/Vundle.vim\r\ncall vundle#begin()\r\n\" alternatively, pass a path where Vundle should install plugins\r\n\"call vundle#begin('~\/some\/path\/here')\r\n\r\n\" let Vundle manage Vundle, required\r\nPlugin 'VundleVim\/Vundle.vim'\r\n\r\n\r\n\" All of your Plugins must be added before the following line\r\ncall vundle#end()            \" required\r\nfiletype plugin indent on    \" required<\/pre>\n<p>Then run the following:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"godzilla\">git clone https:\/\/github.com\/VundleVim\/Vundle.vim.git ~\/.vim\/bundle\/Vundle.vim\r\ncd ~\/.vim\/bundle\r\ngit clone https:\/\/github.com\/Valloric\/YouCompleteMe.git\r\ncd YouCompleteMe\r\n.\/install.py\r\n<\/pre>\n<p>Finally run vim and type<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"godzilla\">:PluginInstall<\/pre>\n<p>After a while it should say &#8220;done&#8221; and that is all there is to it.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The vim configuration file on a user basis is ~\/.vimrc.\u00a0 If you don&#8217;t have this file then make it. I always like to start vim with numbering on so the first thing I put in this file is set number &nbsp; The global configuration file is \/etc\/vimrc.\u00a0 in here I like to uncomment the following [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10,2],"tags":[],"class_list":["post-216","post","type-post","status-publish","format-standard","hentry","category-debian-server","category-hints-tricks"],"_links":{"self":[{"href":"https:\/\/blog.inplico.uk\/index.php?rest_route=\/wp\/v2\/posts\/216","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.inplico.uk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.inplico.uk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.inplico.uk\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.inplico.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=216"}],"version-history":[{"count":5,"href":"https:\/\/blog.inplico.uk\/index.php?rest_route=\/wp\/v2\/posts\/216\/revisions"}],"predecessor-version":[{"id":222,"href":"https:\/\/blog.inplico.uk\/index.php?rest_route=\/wp\/v2\/posts\/216\/revisions\/222"}],"wp:attachment":[{"href":"https:\/\/blog.inplico.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=216"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.inplico.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=216"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.inplico.uk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=216"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}