This is vim syntax plugin for Wannier90. If you write a Wannier90 input, this syntax will help you.
I made this with reference to quantum_espresso-vim. Please check the package when you see the source codes in this plugin.
Vim 8.0+ recognizes plugins under $HOME/.vim/pack/**/start
.
% git clone https://github.com/KensukeKurita/wannier90vim.git $HOME/.vim/pack/**/start
Vim recognizes plugins for syntax highlighting under $HOME/.vim/syntax
and $HOME/.vim/ftdetect
.
% git clone https://github.com/KensukeKurita/wannier90vim.git
% mkdir -p $HOME/.vim/syntax $HOME/.vim/ftdetect
% cp ./syntax/wannier.vim $HOME/.vim/syntax/wannier.vim
% cp ./ftdetect/wannier-detect.vim $HOME/.vim/ftdetect/wannier-detect.vim
The details about param2vim.py
are omitted since you may not use this script.
To use param2vim.py
, one should have:
- quantum_espresso-vim plugin
- Wannier90 userguide in Wannier90 homepage
One can createwannier.vim
using param2vim.py
alongwith these file, but wannier.vim
includes only namelist of *.win
file.