Mercurial > vim
view src/testdir/test_autoformat_join.in @ 9414:1003973c99df v7.4.1988
commit https://github.com/vim/vim/commit/ab9c89b68dcbdb3fbda8c5a50dd90caca64f1bfd
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Jul 3 17:47:26 2016 +0200
patch 7.4.1988
Problem: When updating viminfo with file marks there is no time order.
Solution: Remember the time when a buffer was last used, store marks for
the most recently used buffers.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 03 Jul 2016 18:00:05 +0200 |
parents | bc269cf15ccd |
children |
line wrap: on
line source
Tests for setting the '[,'] marks when joining lines. STARTTEST :so small.vim :/^\t\t/ 0gqj: :let a=string(getpos("'[")).'/'.string(getpos("']")) :/^This line/;'}-join :let b=string(getpos("'[")).'/'.string(getpos("']")) :$put ='First test: Start/End '.string(a) :$put ='Second test: Start/End '.string(b) :/^\t\t/,$wq! test.out ENDTEST O sodales, ludite, vos qui attamen consulite per voster honur. Tua pulchra facies me fay planszer milies This line. Should be joined with the next line and with this line Results: