This is not built-in, so you have to fetch the snipMate-plugin from vim.org here: http://www.vim.org/scripts/script.php?script_id=2540.
Installation:
- Unzip it into your /home/$USER/.vim/ -directory
- Open your /home/$USER/.vimrc-file and add ":filetype plugin on" on a separate line.
Now, depending on what your files end with, you get completion for a lot of tags and snippets! Try creating a .html-file and write "html" and press<Tab>, or even better - "head" and <Tab>.
Ingen kommentarer:
Legg inn en kommentar