Mercurial > vim
view src/testdir/test89.in @ 9980:b222552cf0c4 v7.4.2263
commit https://github.com/vim/vim/commit/d29459baa61819e59961804ed258efac5733ec70
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Aug 26 22:29:11 2016 +0200
patch 7.4.2263
Problem: :filter does not work for many commands. Can only get matching
messages.
Solution: Make :filter work for :command, :map, :list, :number and :print.
Make ":filter!" show non-matching lines.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Fri, 26 Aug 2016 22:30:07 +0200 |
parents | 08eb57382186 |
children |
line wrap: on
line source
- Some tests for setting 'number' and 'relativenumber' This is not all that useful now that the options are no longer reset when setting the other. - Some tests for findfile() function STARTTEST :so small.vim :set hidden nocp nu rnu viminfo+=nviminfo :redir @a | set nu? rnu? | redir END :e! xx :redir @b | set nu? rnu? | redir END :e! # :$put ='results:' :$put a :$put b :" :set nonu nornu :setglobal nu :setlocal rnu :redir @c | setglobal nu? | redir END :set nonu nornu :setglobal rnu :setlocal nu :redir @d | setglobal rnu? | redir END :$put =':setlocal must NOT reset the other global value' :$put c :$put d :" :set nonu nornu :setglobal nu :setglobal rnu :redir @e | setglobal nu? | redir END :set nonu nornu :setglobal rnu :setglobal nu :redir @f | setglobal rnu? | redir END :$put =':setglobal MUST reset the other global value' :$put e :$put f :" :set nonu nornu :set nu :set rnu :redir @g | setglobal nu? | redir END :set nonu nornu :set rnu :set nu :redir @h | setglobal rnu? | redir END :$put =':set MUST reset the other global value' :$put g :$put h :" :let cwd=getcwd() :cd .. :" Tests may be run from a shadow directory, so an extra cd needs to be done to :" get above src/ :if fnamemodify(getcwd(), ':t') != 'src' | cd ../.. | else | cd .. | endif :$put ='' :$put ='Testing findfile' :$put ='' :set ssl :$put =findfile('test19.in','src/test*') :exe "cd" cwd :cd .. :$put =findfile('test19.in','test*') :$put =findfile('test19.in','testdir') :exe "cd" cwd :/^results/,$w! test.out :q! ENDTEST