Home
Projects
Downloads
About me
Lang
HR EN

mpsub.vim

NAME
mpsub.vim - Syntax file for vim which adds coloring scheme for Mplayer (mpsub) format.

DESCRIPTION
mpsub.vim - Vim is extended and improved version of one of the first full screen text editors which today comes with all unix like systems. Among huge number of options which makes vim very powerful text editor, vim also supports syntax highlighting which is implemented on the way which makes creating new, or modifying existing highlighting extensions very easy. I was playing with divx for some time and and sometimes I had to modify .mpsub files. Some specialized editors for .mpsub files imports their own extensions which could not be understood by divx players I used. To make errors like this or missing brackets easier to encounter, I wrote syntax file for vim helped me a lot and maybe will be of use to somebody else. To make coloring syntax of .mpsub files working, you just have to copy mpsub.vim to the /usr/share/vim/vim61/syntax directory (path depends on version of vim you have) and to add those lines to your ~/.vimrc file:
" Syntax highlighting for subtitle files in Mplayer (mpsub) format
au BufNewFile,BufRead *.mpsub setf mpsub
mpsub.vim is a project similar to sub.vim and srt.vim.

SCREENSHOTS
mpsub.vim_screenshot.png

DOWNLOAD
mpsub.vim download

BUGS
Current version of mpsub.vim syntax file does not contain known bugs.

FILES
/usr/share/vim/vim61/syntax/mpsub.vim - Syntax file for Mplayer (mpsub) format.
~/.vimrc - Vim's configuration file.

SEE ALSO
vimtutor(1), vim(1)

AUTHORS
Josip Deanovic djosip@linuxpages.org