Nushell syntax highlighting and indentation for Vim
- create the ~/.vim directory and required subdirectories if they do not already exist
mkdir -p ~/.vim/ftdetect && \
mkdir -p ~/.vim/ftplugin && \
mkdir -p ~/.vim/syntax && \
mkdir -p ~/.vim/indent
- copy the .vim-files to their corresponding directories in ~/.vim
- restart vim, if necessary
- requires 'nu' to be in your PATH
- use at your own risk
- tested with Nushell 0.88.1 on Debian 12 and Windows 11
git clone "https://github.com/elkasztano/nushell-syntax-vim"
cd nushell-syntax-vim
nu install.nu
to uninstall navigate to the 'nushell-syntax-vim' directory, then type
nu uninstall.nu
I am new to both Nushell and Vimscript, and I am currently learning both at the same time. Please bear in mind that this little project is still very much a work in progress. I couldn't find a Nushell plugin for Vim, so I decided to create one myself. Suggestions for improvement are highly appreciated.
Tested with Vim 9.0