Skip to content

Commit

Permalink
Ben Armstron - 2 Only Show Exact Contexts
Browse files Browse the repository at this point in the history
  • Loading branch information
David O'Callaghan committed Nov 16, 2007
1 parent 21008c8 commit b48f2d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ftplugin/taskpaper.vim
Expand Up @@ -19,7 +19,7 @@ set iskeyword+=@-@
function! ShowContext()
let s:wordUnderCursor = expand("<cword>")
if(s:wordUnderCursor =~ "@\k*")
let @/ = s:wordUnderCursor
let @/ = "\\<".s:wordUnderCursor."\\>"
"adapted from http://vim.sourceforge.net/tips/tip.php?tip_id=282
set foldexpr=(getline(v:lnum)=~@/)?0:(getline(v:lnum)=~@/)\|\|(getline(v:lnum)=~@/)?0:1
set foldmethod=expr foldlevel=0 foldcolumn=1 foldminlines=0
Expand Down

0 comments on commit b48f2d1

Please sign in to comment.