Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,11 @@ Extends (presumed-available) groovy syntax highlighting.

### Manual

git clone https://github.com/LukeGoodsell/nextflow-vim ~/nextflow-vim;
mkdir ~/.vim/ftdetect; mkdir ~/.vim/ftplugin;
cp ~/nextflow-vim/ftdetect/nextflow.vim ~/.vim/ftdetect;
cp ~/nextflow-vim/syntax/nextflow.vim ~/.vim/ftplugin;
git clone https://github.com/LukeGoodsell/nextflow-vim.git
for subdir in ftdetect ftplugin syntax; do
mkdir -p ~/.vim/$subdir
cp nextflow-vim/$subdir/* ~/.vim/$subdir
done

## Goals

Expand Down
27 changes: 27 additions & 0 deletions ftplugin/nextflow.vim
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
" Vim filetype plugin file
" Language: Nextflow

if exists('b:did_ftplugin')
finish
endif

runtime! ftplugin/groovy.vim

let s:cpo_save = &cpo
set cpo&vim

setlocal expandtab
setlocal shiftwidth=4
setlocal softtabstop=4
setlocal colorcolumn=80

if exists('b:undo_ftplugin')
let b:undo_ftplugin .= ' | setl et< sw< sts< cc<'
else
let b:undo_ftplugin = 'setl et< sw< sts< cc<'
endif

let &cpo = s:cpo_save
unlet s:cpo_save

" vim: sw=2
6 changes: 0 additions & 6 deletions syntax/nextflow.vim
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,6 @@ if exists("b:current_syntax")
finish
endif

setlocal expandtab
setlocal shiftwidth=4
setlocal softtabstop=4
setlocal colorcolumn=80

source $VIMRUNTIME/syntax/groovy.vim

syn region nextflowBlockString start=+'''+ keepend end=+'''+ contains=groovySpecialChar,groovySpecialError,@Spell,nextflowELExpr,@shell
Expand Down Expand Up @@ -43,4 +38,3 @@ hi def link nextflowSpecial Special
hi def link nextflowBlock Function

hi def link nextflowBlockString String