Skip to content

kazimuth/dwarffortress.vim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dwarffortress.vim

A Dwarf Fortress raw file plugin for Vim. Currently only provides syntax highlighting.

Installation

Plugin Manager Install with...
vim-plug Plug 'kazimuth/dwarffortress.vim'
pathogen git clone https:/kazimuth/dwarffortress.vim ~/.vim/bundle/dwarffortress.vim
neobundle.vim NeoBundle 'kazimuth/dwarffortress.vim'
vundle Plugin 'kazimuth/dwarffortress.vim'
dein.vim call dein#add('kazimuth/dwarffortress.vim')
none copy all of the files into your ~/.vim directory

Usage

Edit a raw file with vim. It should have colors.

If it doesn't have colors and it should, see the following section.

File detection

By default, the plugin looks at the first few lines of every .txt file to see if it looks like a raw file.

If it fails, you can do :set ft=dwarffortress to force the file to be detected correctly.

Or, you can go to the end of the file, add:

 vim:ft=dwarffortress:

and reopen it.

If you don't want the plugin to guess what files are raw files, you can put:

let g:dwarffortress_guess=0

in your .vimrc.

If you want to detect all .txt files as raw files, you can put:

let g:dwarffortress_always=1

in your .vimrc.

When you open a new raw file the highlighting might look a little wonky; just save and reopen it to fix that.

Other information

See :help dwarffortress.

About

Dwarf Fortress raw file plugin for Vim

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published