Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/elkasztano/nushell-syntax-vim

Nushell syntax highlighting for Vim
https://github.com/elkasztano/nushell-syntax-vim

Last synced: 14 days ago
JSON representation

Nushell syntax highlighting for Vim

Awesome Lists containing this project

README

        

# nushell-syntax-vim
Nushell syntax highlighting and indentation for Vim

## Installation
* 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

## Installation using Nushell script (experimental)
* 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
```

## Notes
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