]> code.delx.au - dotfiles/commitdiff
Vim commenter supports more filetypes
authorJames Bunton <jamesbunton@delx.net.au>
Fri, 12 Oct 2007 09:55:57 +0000 (19:55 +1000)
committerJames Bunton <jamesbunton@delx.net.au>
Fri, 12 Oct 2007 09:55:57 +0000 (19:55 +1000)
.vim/commenter.vim

index 46519f4c95068fa5c334f3ae9e70a09160f9c30f..05e2d607fc6b940f0483d043865a1f97d7fcd369 100644 (file)
@@ -11,10 +11,11 @@ function! ToggleCommentify()
                let commentSymbol = ''
 
                let commentMapping = {
-                                       \'###': ['python', 'sh', 'muttrc', 'sshconfig', 'make'], 
-                                       \'///': ['ox', 'java', 'cpp', 'c', 'php'],      
+                                       \'###': ['python', 'sh', 'muttrc', 'sshconfig', 'make', 'vrml', 'ruby', 'perl'], 
+                                       \'///': ['ox', 'java', 'cpp', 'c', 'php', 'javascript'],        
                                        \'"""': ['vim'], 
-                                       \'!!!': ['xdefaults']
+                                       \'!!!': ['xdefaults'],
+                                       \'%%%': ['tex']
                                \}
 
                for commentChar in keys(commentMapping)