aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2016-04-05 15:07:51 -0400
committerTeddy Wing2016-04-05 15:07:51 -0400
commit7d653fe8ab84a1cda45e0cea625d7a1c07cc784d (patch)
tree9876d8e2fca0be1e433ef81f727682cbd7c61ab0
parentf41b57a0d1c76bb8810388734e4a9f0df2b8bc65 (diff)
downloadvim-twodo-7d653fe8ab84a1cda45e0cea625d7a1c07cc784d.tar.bz2
ftplugin: Use :nohlsearch in mappings
Don't highlight matches from our `:substitute` calls. It looks weird when search matches are highlighted but the user didn't explicitly initiate a search.
-rw-r--r--ftplugin/todo.vim8
1 files changed, 4 insertions, 4 deletions
diff --git a/ftplugin/todo.vim b/ftplugin/todo.vim
index 3009845..c8a0cad 100644
--- a/ftplugin/todo.vim
+++ b/ftplugin/todo.vim
@@ -6,10 +6,10 @@ let b:did_ftplugin = 1
nnoremap <silent> <buffer> <Plug>TwodoNewTodoBelow o-
nnoremap <silent> <buffer> <Plug>TwodoNewTodoAbove O-
-nnoremap <silent> <buffer> <Plug>TwodoMarkComplete m`:<c-u>s/\v^(\s*)- /\1v /<cr>``
-nnoremap <silent> <buffer> <Plug>TwodoMarkDeleted m`:<c-u>s/\v^(\s*)- /\1x /<cr>``
-nnoremap <silent> <buffer> <Plug>TwodoMarkPartiallyCompleted m`:<c-u>s/\v^(\s*)- /\1S /<cr>``
-nnoremap <silent> <buffer> <Plug>TwodoRemoveOldTodos :<c-u>g/^\s*[vSx] /d<cr>
+nnoremap <silent> <buffer> <Plug>TwodoMarkComplete m`:<c-u>s/\v^(\s*)- /\1v / \| nohlsearch<cr>``
+nnoremap <silent> <buffer> <Plug>TwodoMarkDeleted m`:<c-u>s/\v^(\s*)- /\1x / \| nohlsearch<cr>``
+nnoremap <silent> <buffer> <Plug>TwodoMarkPartiallyCompleted m`:<c-u>s/\v^(\s*)- /\1S / \| nohlsearch<cr>``
+nnoremap <silent> <buffer> <Plug>TwodoRemoveOldTodos :<c-u>g/^\s*[vSx] /d \| nohlsearch<cr>
if !hasmapto('<Plug>TwodoNewTodoBelow') || !maparg('<leader>n', 'n')
nmap <silent> <buffer> <leader>n <Plug>TwodoNewTodoBelow