Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/elkasztano/nushell-syntax-vim
Nushell syntax highlighting for Vim
https://github.com/elkasztano/nushell-syntax-vim
Last synced: about 2 months ago
JSON representation
Nushell syntax highlighting for Vim
- Host: GitHub
- URL: https://github.com/elkasztano/nushell-syntax-vim
- Owner: elkasztano
- License: mit
- Created: 2023-10-29T12:31:58.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-05-16T18:46:43.000Z (7 months ago)
- Last Synced: 2024-08-02T10:27:33.039Z (5 months ago)
- Language: Vim Script
- Homepage:
- Size: 42 KB
- Stars: 16
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-nu - vim plugin
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