Mercurial > vim
view src/testdir/test_lineending.vim @ 34852:8800ec6abeaf v9.1.0295
patch 9.1.0295: filetype: pip config files are not recognized
Commit: https://github.com/vim/vim/commit/d2b95b8446233e0021a8c0cd672f8fae748e3955
Author: Wu, Zhenyu <wuzhenyu@ustc.edu>
Date: Tue Apr 9 22:49:19 2024 +0200
patch 9.1.0295: filetype: pip config files are not recognized
Problem: filetype: pip config files are not recognized
Solution: detect pip.conf as dosini filetype
(Wu, Zhenyu)
closes: #14448
Signed-off-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
Signed-off-by: Christian Brabandt <cb@256bit.org>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Tue, 09 Apr 2024 23:00:05 +0200 |
parents | 08940efa6b4e |
children |
line wrap: on
line source
" Tests for saving/loading a file with some lines ending in " CTRL-M, some not func Test_lineending() let l = ["this line ends in a\<CR>", \ "this one doesn't", \ "this one does\<CR>", \ "and the last one doesn't"] set ta tx enew! call append(0, l) $delete write Xfile1 bwipe Xfile1 edit Xfile1 let t = getline(1, '$') call assert_equal(l, t) new | only call delete('Xfile1') endfunc " vim: shiftwidth=2 sts=2 expandtab