I change often filetypes of files to see them with different syntax
coloring.

I would like to do this with a map (let say CTRL-K) and cycle through
a number of filetypes settings, p.e.:

1st CTRL-K --> set filetype=vim
2nd CTRL-K --> set filetype=html
3rd CTRL-K --> set filetype=txt
4th CTRL-K --> set filetype=    (empty)

I know that I need an array to do this but I do not know how to cycle
through the array using a map.
Can anyone please help me?

-- 
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Reply via email to