{"id":205,"date":"2008-09-09T12:27:05","date_gmt":"2008-09-09T20:27:05","guid":{"rendered":"http:\/\/www.codebelay.com\/blog\/?p=205"},"modified":"2008-09-09T12:27:05","modified_gmt":"2008-09-09T20:27:05","slug":"ctags-and-code-completion-in-vim-72","status":"publish","type":"post","link":"https:\/\/www.codebelay.com\/blog\/2008\/09\/09\/ctags-and-code-completion-in-vim-72\/","title":{"rendered":"Ctags and Code Completion in Vim 7.2"},"content":{"rendered":"<p>At <a href=\"http:\/\/www.dogster.com\/\">work<\/a> we switched the whole dev team over to using <a href=\"http:\/\/www.eclipse.org\/pdt\/\">Eclipse<\/a>. I still haven&#8217;t gotten used to all the point and click crap on it, but really admire the use of code completion and ctags.<\/p>\n<p>When I saw that <a href=\"http:\/\/vim.org\/\">Vim<\/a> had these, I&#8217;ve upgraded and now use ctags and code completion from Vim.<\/p>\n<p>To get code completion, I type out the little bit I know and then type ctrl-o and ctrl-x:<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/codebelay.com\/img\/vim_code_completion.png\" alt=\"pic of code completion in vim\" \/><\/p>\n<p>To get ctags working, I installed it using sudo apt-get install ctags and then at the root of all my php files I typed:<\/p>\n<p>ctags -R .<\/p>\n<p>This generated a tags file.<\/p>\n<p>Now when I open any file and have the cursor over a function or class, I just type ctrl-] and the file containing the class or function opens up.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>At work we switched the whole dev team over to using Eclipse. I still haven&#8217;t gotten used to all the point and click crap on it, but really admire the use of code completion and ctags. When I saw that Vim had these, I&#8217;ve upgraded and now use ctags and code completion from Vim. To [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,33],"tags":[144,145,143],"class_list":["post-205","post","type-post","status-publish","format-standard","hentry","category-how-to","category-webapps","tag-code-completion","tag-ctags","tag-vim"],"_links":{"self":[{"href":"https:\/\/www.codebelay.com\/blog\/wp-json\/wp\/v2\/posts\/205","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.codebelay.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.codebelay.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.codebelay.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.codebelay.com\/blog\/wp-json\/wp\/v2\/comments?post=205"}],"version-history":[{"count":0,"href":"https:\/\/www.codebelay.com\/blog\/wp-json\/wp\/v2\/posts\/205\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.codebelay.com\/blog\/wp-json\/wp\/v2\/media?parent=205"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.codebelay.com\/blog\/wp-json\/wp\/v2\/categories?post=205"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.codebelay.com\/blog\/wp-json\/wp\/v2\/tags?post=205"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}