{"id":470,"date":"2009-09-22T14:38:25","date_gmt":"2009-09-22T13:38:25","guid":{"rendered":"http:\/\/wp.devco.net\/?p=470"},"modified":"2009-10-09T17:54:05","modified_gmt":"2009-10-09T16:54:05","slug":"vim_and_puppet","status":"publish","type":"post","link":"https:\/\/www.devco.net\/archives\/2009\/09\/22\/vim_and_puppet.php","title":{"rendered":"Vim and Puppet"},"content":{"rendered":"
I use vim for almost all my editing needs, till now I often thought I should give using TextMate another try due to the nice Bundle<\/a> that Masterzen<\/a> made but there’s just something about desktop editing that puts me off.<\/p>\nI’ve also been renewing my efforts to better my VIM use and came across the excellent snipMate<\/a> that enables you to do almost the same thing as textmate – the syntax for the snippets is even roughly the same.<\/p>\nI made a quick snippet file this morning for some common used bits that you can find here<\/a>, see it in action below or view the movie better here<\/a>:<\/p>\n<\/embed><\/object><\/center><\/p>\nEach time you see the input cursor jump between fields in the templates I’m simply pressing tab<\/em>, shift-tab<\/em> would cycle backward.<\/p>\nThere are some nice things here you might not notice, for example editing a file test.pp<\/em> and adding a class it will automatically fill in the class name as test<\/em>.\u00a0 Same for nodes, it’s really very powerful and the snippets are trivial to write.<\/p>\nI am using the vim syntax file that comes in the puppet tarball and the adaryn<\/em> color scheme that ships with vim.<\/p>\n","protected":false},"excerpt":{"rendered":"I use vim for almost all my editing needs, till now I often thought I should give using TextMate another try due to the nice Bundle that Masterzen made but there’s just something about desktop editing that puts me off. I’ve also been renewing my efforts to better my VIM use and came across the […]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_et_pb_use_builder":"","_et_pb_old_content":"","footnotes":""},"categories":[7],"tags":[21],"_links":{"self":[{"href":"https:\/\/www.devco.net\/wp-json\/wp\/v2\/posts\/470"}],"collection":[{"href":"https:\/\/www.devco.net\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.devco.net\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.devco.net\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.devco.net\/wp-json\/wp\/v2\/comments?post=470"}],"version-history":[{"count":3,"href":"https:\/\/www.devco.net\/wp-json\/wp\/v2\/posts\/470\/revisions"}],"predecessor-version":[{"id":975,"href":"https:\/\/www.devco.net\/wp-json\/wp\/v2\/posts\/470\/revisions\/975"}],"wp:attachment":[{"href":"https:\/\/www.devco.net\/wp-json\/wp\/v2\/media?parent=470"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devco.net\/wp-json\/wp\/v2\/categories?post=470"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devco.net\/wp-json\/wp\/v2\/tags?post=470"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}
I’ve also been renewing my efforts to better my VIM use and came across the excellent snipMate<\/a> that enables you to do almost the same thing as textmate – the syntax for the snippets is even roughly the same.<\/p>\nI made a quick snippet file this morning for some common used bits that you can find here<\/a>, see it in action below or view the movie better here<\/a>:<\/p>\n<\/embed><\/object><\/center><\/p>\nEach time you see the input cursor jump between fields in the templates I’m simply pressing tab<\/em>, shift-tab<\/em> would cycle backward.<\/p>\nThere are some nice things here you might not notice, for example editing a file test.pp<\/em> and adding a class it will automatically fill in the class name as test<\/em>.\u00a0 Same for nodes, it’s really very powerful and the snippets are trivial to write.<\/p>\nI am using the vim syntax file that comes in the puppet tarball and the adaryn<\/em> color scheme that ships with vim.<\/p>\n","protected":false},"excerpt":{"rendered":"I use vim for almost all my editing needs, till now I often thought I should give using TextMate another try due to the nice Bundle that Masterzen made but there’s just something about desktop editing that puts me off. I’ve also been renewing my efforts to better my VIM use and came across the […]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_et_pb_use_builder":"","_et_pb_old_content":"","footnotes":""},"categories":[7],"tags":[21],"_links":{"self":[{"href":"https:\/\/www.devco.net\/wp-json\/wp\/v2\/posts\/470"}],"collection":[{"href":"https:\/\/www.devco.net\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.devco.net\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.devco.net\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.devco.net\/wp-json\/wp\/v2\/comments?post=470"}],"version-history":[{"count":3,"href":"https:\/\/www.devco.net\/wp-json\/wp\/v2\/posts\/470\/revisions"}],"predecessor-version":[{"id":975,"href":"https:\/\/www.devco.net\/wp-json\/wp\/v2\/posts\/470\/revisions\/975"}],"wp:attachment":[{"href":"https:\/\/www.devco.net\/wp-json\/wp\/v2\/media?parent=470"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devco.net\/wp-json\/wp\/v2\/categories?post=470"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devco.net\/wp-json\/wp\/v2\/tags?post=470"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}
I made a quick snippet file this morning for some common used bits that you can find here<\/a>, see it in action below or view the movie better here<\/a>:<\/p>\n<\/embed><\/object><\/center><\/p>\nEach time you see the input cursor jump between fields in the templates I’m simply pressing tab<\/em>, shift-tab<\/em> would cycle backward.<\/p>\nThere are some nice things here you might not notice, for example editing a file test.pp<\/em> and adding a class it will automatically fill in the class name as test<\/em>.\u00a0 Same for nodes, it’s really very powerful and the snippets are trivial to write.<\/p>\nI am using the vim syntax file that comes in the puppet tarball and the adaryn<\/em> color scheme that ships with vim.<\/p>\n","protected":false},"excerpt":{"rendered":"I use vim for almost all my editing needs, till now I often thought I should give using TextMate another try due to the nice Bundle that Masterzen made but there’s just something about desktop editing that puts me off. I’ve also been renewing my efforts to better my VIM use and came across the […]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_et_pb_use_builder":"","_et_pb_old_content":"","footnotes":""},"categories":[7],"tags":[21],"_links":{"self":[{"href":"https:\/\/www.devco.net\/wp-json\/wp\/v2\/posts\/470"}],"collection":[{"href":"https:\/\/www.devco.net\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.devco.net\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.devco.net\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.devco.net\/wp-json\/wp\/v2\/comments?post=470"}],"version-history":[{"count":3,"href":"https:\/\/www.devco.net\/wp-json\/wp\/v2\/posts\/470\/revisions"}],"predecessor-version":[{"id":975,"href":"https:\/\/www.devco.net\/wp-json\/wp\/v2\/posts\/470\/revisions\/975"}],"wp:attachment":[{"href":"https:\/\/www.devco.net\/wp-json\/wp\/v2\/media?parent=470"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devco.net\/wp-json\/wp\/v2\/categories?post=470"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devco.net\/wp-json\/wp\/v2\/tags?post=470"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}
Each time you see the input cursor jump between fields in the templates I’m simply pressing tab<\/em>, shift-tab<\/em> would cycle backward.<\/p>\nThere are some nice things here you might not notice, for example editing a file test.pp<\/em> and adding a class it will automatically fill in the class name as test<\/em>.\u00a0 Same for nodes, it’s really very powerful and the snippets are trivial to write.<\/p>\nI am using the vim syntax file that comes in the puppet tarball and the adaryn<\/em> color scheme that ships with vim.<\/p>\n","protected":false},"excerpt":{"rendered":"I use vim for almost all my editing needs, till now I often thought I should give using TextMate another try due to the nice Bundle that Masterzen made but there’s just something about desktop editing that puts me off. I’ve also been renewing my efforts to better my VIM use and came across the […]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_et_pb_use_builder":"","_et_pb_old_content":"","footnotes":""},"categories":[7],"tags":[21],"_links":{"self":[{"href":"https:\/\/www.devco.net\/wp-json\/wp\/v2\/posts\/470"}],"collection":[{"href":"https:\/\/www.devco.net\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.devco.net\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.devco.net\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.devco.net\/wp-json\/wp\/v2\/comments?post=470"}],"version-history":[{"count":3,"href":"https:\/\/www.devco.net\/wp-json\/wp\/v2\/posts\/470\/revisions"}],"predecessor-version":[{"id":975,"href":"https:\/\/www.devco.net\/wp-json\/wp\/v2\/posts\/470\/revisions\/975"}],"wp:attachment":[{"href":"https:\/\/www.devco.net\/wp-json\/wp\/v2\/media?parent=470"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devco.net\/wp-json\/wp\/v2\/categories?post=470"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devco.net\/wp-json\/wp\/v2\/tags?post=470"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}
There are some nice things here you might not notice, for example editing a file test.pp<\/em> and adding a class it will automatically fill in the class name as test<\/em>.\u00a0 Same for nodes, it’s really very powerful and the snippets are trivial to write.<\/p>\nI am using the vim syntax file that comes in the puppet tarball and the adaryn<\/em> color scheme that ships with vim.<\/p>\n","protected":false},"excerpt":{"rendered":"I use vim for almost all my editing needs, till now I often thought I should give using TextMate another try due to the nice Bundle that Masterzen made but there’s just something about desktop editing that puts me off. I’ve also been renewing my efforts to better my VIM use and came across the […]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_et_pb_use_builder":"","_et_pb_old_content":"","footnotes":""},"categories":[7],"tags":[21],"_links":{"self":[{"href":"https:\/\/www.devco.net\/wp-json\/wp\/v2\/posts\/470"}],"collection":[{"href":"https:\/\/www.devco.net\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.devco.net\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.devco.net\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.devco.net\/wp-json\/wp\/v2\/comments?post=470"}],"version-history":[{"count":3,"href":"https:\/\/www.devco.net\/wp-json\/wp\/v2\/posts\/470\/revisions"}],"predecessor-version":[{"id":975,"href":"https:\/\/www.devco.net\/wp-json\/wp\/v2\/posts\/470\/revisions\/975"}],"wp:attachment":[{"href":"https:\/\/www.devco.net\/wp-json\/wp\/v2\/media?parent=470"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devco.net\/wp-json\/wp\/v2\/categories?post=470"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devco.net\/wp-json\/wp\/v2\/tags?post=470"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}
I am using the vim syntax file that comes in the puppet tarball and the adaryn<\/em> color scheme that ships with vim.<\/p>\n","protected":false},"excerpt":{"rendered":"I use vim for almost all my editing needs, till now I often thought I should give using TextMate another try due to the nice Bundle that Masterzen made but there’s just something about desktop editing that puts me off. I’ve also been renewing my efforts to better my VIM use and came across the […]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_et_pb_use_builder":"","_et_pb_old_content":"","footnotes":""},"categories":[7],"tags":[21],"_links":{"self":[{"href":"https:\/\/www.devco.net\/wp-json\/wp\/v2\/posts\/470"}],"collection":[{"href":"https:\/\/www.devco.net\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.devco.net\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.devco.net\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.devco.net\/wp-json\/wp\/v2\/comments?post=470"}],"version-history":[{"count":3,"href":"https:\/\/www.devco.net\/wp-json\/wp\/v2\/posts\/470\/revisions"}],"predecessor-version":[{"id":975,"href":"https:\/\/www.devco.net\/wp-json\/wp\/v2\/posts\/470\/revisions\/975"}],"wp:attachment":[{"href":"https:\/\/www.devco.net\/wp-json\/wp\/v2\/media?parent=470"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devco.net\/wp-json\/wp\/v2\/categories?post=470"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devco.net\/wp-json\/wp\/v2\/tags?post=470"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}
I use vim for almost all my editing needs, till now I often thought I should give using TextMate another try due to the nice Bundle that Masterzen made but there’s just something about desktop editing that puts me off. I’ve also been renewing my efforts to better my VIM use and came across the […]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_et_pb_use_builder":"","_et_pb_old_content":"","footnotes":""},"categories":[7],"tags":[21],"_links":{"self":[{"href":"https:\/\/www.devco.net\/wp-json\/wp\/v2\/posts\/470"}],"collection":[{"href":"https:\/\/www.devco.net\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.devco.net\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.devco.net\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.devco.net\/wp-json\/wp\/v2\/comments?post=470"}],"version-history":[{"count":3,"href":"https:\/\/www.devco.net\/wp-json\/wp\/v2\/posts\/470\/revisions"}],"predecessor-version":[{"id":975,"href":"https:\/\/www.devco.net\/wp-json\/wp\/v2\/posts\/470\/revisions\/975"}],"wp:attachment":[{"href":"https:\/\/www.devco.net\/wp-json\/wp\/v2\/media?parent=470"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devco.net\/wp-json\/wp\/v2\/categories?post=470"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devco.net\/wp-json\/wp\/v2\/tags?post=470"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}