Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.
  • by depesz (7751) on 2008.04.27 9:08 (#62419)
    run: :help dictionary

    i think this is what you need.

    you might want to add this to your .vimrc:

    function! MyFileStartup()
            set complete-=k complete+=k
            if exists("b:current_syntax")
                    let &dictionary = substitute("~/.vim/dict/FT.dict", "FT", b:current_syntax, "")

    autocmd BufRead,BufNewFile * call MyFileStartup()

    with this - you can store per-filetype dictionaries in ~/.vim/dict/FILETYPE.dict