| _syphilis_ | what is the correct way to set formatoptions when opening a new buffer of a certain type? (e.g. C++ source) |
| jimmygoon | In jedit If i had typed "<div>blah" and then started to type "</" it would autocomplete the tag for me, based on the one that I had previously opened... is there a way of donig that in gvim? |
| Ori_B | probably. at the very worst, it'd take a bit of scripting jimmygoon: a few seconds of googling brings me this: http://www.stripey.com/vim/html.html |
| jamessan | there's also the xmledit.vim plugin on vim.org _syphilis_: either use a filetype autocmd or an ftplugin |
| jimmygoon | What do I do with a plugin like the one Ori_b linked to.. just save as plugin.vim and put in the appropriate folder? |
| Ori_B | or toss it into .vimrc, or... whatever. |
| jimmygoon | what is a ftplugin folder? is plugin not adequate? |
| Ori_B | jimmygoon: not ftplugin folder, ftplugin. file type plugin. and it wasn't directed at you. |
| jimmygoon | but the xmledit page mentions a ftplgin folder |
| Ori_B | ah. FileType plugin :help ftplugin |
| jimmygoon | thanks! Actually, both provides the best solution for me :) I don't understand what this plugin does: http://vim.sourceforge.net/scripts/script.php?script_id=39 |
| tpope | % bouncing it comes with vim too :runtime! macros/matchit.vim you can press % on the opening html tag and jump to the closing one, for example |
| jimmygoon | ......... english? :P sorry I am on my second day of vim |
| tpope | do you know what html tags are? |
| jimmygoon | :O yes of course :D |
| tpope | so load the plugin edit an html file put the cursor on a tag and press % |
| jimmygoon | :P ok |
| tpope | :runtime! macros/matchit.vim is how you load the one that comes with vim you can put that in your vimrc |
| jimmygoon | how can I find out what all is included with vim so that I'm not being redundant in any way? |
| tpope | there's only a few plugins that come with it most of them are just demos |
| jimmygoon | ok |
| tpope | this is one of the few that's really useful |
| jimmygoon | good deal |