I broke up with neovim....vim is my best friend now
This commit is contained in:
22
dot_vim/plugged/vimtex/test/test-toc/test-keepwidth.vim
Normal file
22
dot_vim/plugged/vimtex/test/test-toc/test-keepwidth.vim
Normal file
@@ -0,0 +1,22 @@
|
||||
set nocompatible
|
||||
let &rtp = '../..,' . &rtp
|
||||
filetype plugin on
|
||||
|
||||
nnoremap q :qall!<cr>
|
||||
|
||||
let g:vimtex_toc_config = {
|
||||
\ 'name': 'ToC',
|
||||
\ 'split_width': 30,
|
||||
\}
|
||||
|
||||
silent edit main.tex
|
||||
|
||||
VimtexTocOpen
|
||||
wincmd w
|
||||
vsplit
|
||||
close
|
||||
|
||||
if empty($INMAKE) | finish | endif
|
||||
call assert_equal(30, winwidth(bufwinid('ToC')))
|
||||
|
||||
call vimtex#test#finished()
|
||||
Reference in New Issue
Block a user