Mercurial > vim
view src/testdir/test_behave.vim @ 17188:93cb37b45636 v8.1.1593
patch 8.1.1593: filetype not detected for C++ header files without extension
commit https://github.com/vim/vim/commit/6a7af8e2dbcb768a768831d9e6355c855c215ebc
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Jun 25 21:34:26 2019 +0200
patch 8.1.1593: filetype not detected for C++ header files without extension
Problem: Filetype not detected for C++ header files without extension.
Solution: Recognize the file by the Emacs file mode. (Dmitry Ilyin,
closes #4593)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 25 Jun 2019 21:45:05 +0200 |
parents | d4db9adc8642 |
children | 08940efa6b4e |
line wrap: on
line source
" Test the :behave command func Test_behave() behave mswin call assert_equal('mouse,key', &selectmode) call assert_equal('popup', &mousemodel) call assert_equal('startsel,stopsel', &keymodel) call assert_equal('exclusive', &selection) behave xterm call assert_equal('', &selectmode) call assert_equal('extend', &mousemodel) call assert_equal('', &keymodel) call assert_equal('inclusive', &selection) set selection& set mousemodel& set keymodel& set selection& endfunc func Test_behave_completion() call feedkeys(":behave \<C-A>\<C-B>\"\<CR>", 'tx') call assert_equal('"behave mswin xterm', @:) endfunc func Test_behave_error() call assert_fails('behave x', 'E475:') endfunc