diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..a82f145 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,17 @@ +test-vim-latest: + image: thinca/vim:v7.4 + script: + - cd tests + - bash runtests.sh + +test-vim-7.4: + image: thinca/vim:v7.4 + script: + - cd tests + - bash runtests.sh + +test-neovim: + image: lambdalisue/neovim-ci + script: + - cd tests + - bash runtests.sh diff --git a/autoload/todo.vim b/autoload/todo.vim index d3026d7..c6c679c 100644 --- a/autoload/todo.vim +++ b/autoload/todo.vim @@ -102,7 +102,11 @@ endfunction function! todo#MarkAsDone(status) call todo#CreateNewRecurrence(1) - exec ':s/\C^(\([A-Z]\))\(.*\)/\2 pri:\1/e' + if get(g:, 'TodoTxtStripDoneItemPriority', 0) + exec ':s/\C^(\([A-Z]\))\(.*\)/\2/e' + else + exec ':s/\C^(\([A-Z]\))\(.*\)/\2 pri:\1/e' + endif if a:status!='' exec 'normal! I'.a:status.' ' endif diff --git a/tests/runtests.sh b/tests/runtests.sh index 5774bfa..368140f 100644 --- a/tests/runtests.sh +++ b/tests/runtests.sh @@ -1,4 +1,4 @@ -#/bin/bash +#!/bin/bash REPO_TOP=$(git rev-parse --show-toplevel) cd "${REPO_TOP}"