Update generated nvim config
This commit is contained in:
@ -0,0 +1,14 @@
|
||||
MYVIM ?= nvim --clean --headless
|
||||
|
||||
INMAKE := 1
|
||||
export INMAKE
|
||||
|
||||
TESTS := $(wildcard *.vim)
|
||||
TESTS := $(TESTS:.vim=)
|
||||
|
||||
.PHONY: test $(TESTS)
|
||||
|
||||
test: $(TESTS)
|
||||
|
||||
$(TESTS):
|
||||
@$(MYVIM) -u $@.vim
|
||||
@ -0,0 +1,45 @@
|
||||
\documentclass[]{beamer}
|
||||
|
||||
\begin{document}
|
||||
|
||||
Test file for frame/beamer motion.
|
||||
|
||||
\begin{frame} % [r[r or 2[r
|
||||
\frametitle{Test I}
|
||||
Simple frame % [R[R or 2[R
|
||||
\end{frame}
|
||||
|
||||
\begin{frame} % [r
|
||||
\frametitle{Test II}
|
||||
Frame with nested environments.
|
||||
\begin{equation}
|
||||
\begin{aligned}
|
||||
1 + 1 = & 2
|
||||
\end{aligned}
|
||||
\end{equation}
|
||||
\end{frame} % [R
|
||||
|
||||
\begin{enumerate}
|
||||
\item 1
|
||||
\item 2
|
||||
\item 3
|
||||
\item 4
|
||||
\end{enumerate}
|
||||
% CURSOR
|
||||
\begin{frame} % ]r
|
||||
\frametitle{Test III}
|
||||
Frame with nested environments.
|
||||
\begin{block}{A block}
|
||||
Block body
|
||||
\end{block}
|
||||
\end{frame} % ]R
|
||||
|
||||
\begin{frame} % ]r]r or 2]r
|
||||
\frametitle{Test IV}
|
||||
Frame with nested environments.
|
||||
\begin{exampleblock}{A block}
|
||||
Block body
|
||||
\end{exampleblock}
|
||||
\end{frame} % ]R]R or 2]R
|
||||
|
||||
\end{document}
|
||||
@ -0,0 +1,26 @@
|
||||
set nocompatible
|
||||
let &rtp = '../..,' . &rtp
|
||||
filetype plugin on
|
||||
syntax on
|
||||
|
||||
nnoremap q :qall!<cr>
|
||||
|
||||
silent edit test-beamer.tex
|
||||
|
||||
if empty($INMAKE) | finish | endif
|
||||
|
||||
" vint: -ProhibitCommandRelyOnUser
|
||||
|
||||
normal 28G2]r
|
||||
call assert_equal(line('.'), 37)
|
||||
|
||||
normal 28G]R
|
||||
call assert_equal(line('.'), 35)
|
||||
|
||||
normal 28G2[r
|
||||
call assert_equal(line('.'), 7)
|
||||
|
||||
normal 28G[R
|
||||
call assert_equal(line('.'), 20)
|
||||
|
||||
call vimtex#test#finished()
|
||||
@ -0,0 +1,14 @@
|
||||
\documentclass[]{article}
|
||||
|
||||
% Comment sec 1
|
||||
%
|
||||
%
|
||||
%
|
||||
|
||||
\begin{document}
|
||||
|
||||
% Comment sec 2
|
||||
%
|
||||
%
|
||||
|
||||
\end{document}
|
||||
@ -0,0 +1,25 @@
|
||||
set nocompatible
|
||||
let &rtp = '../..,' . &rtp
|
||||
filetype plugin on
|
||||
|
||||
nnoremap q :qall!<cr>
|
||||
|
||||
silent edit test-comment.tex
|
||||
|
||||
if empty($INMAKE) | finish | endif
|
||||
|
||||
" vint: -ProhibitCommandRelyOnUser
|
||||
|
||||
normal ]*
|
||||
call assert_equal(line('.'), 6)
|
||||
|
||||
normal ]*
|
||||
call assert_equal(line('.'), 12)
|
||||
|
||||
normal 2[/
|
||||
call assert_equal(line('.'), 3)
|
||||
|
||||
normal ]/
|
||||
call assert_equal(line('.'), 10)
|
||||
|
||||
call vimtex#test#finished()
|
||||
@ -0,0 +1,31 @@
|
||||
\documentclass[]{article}
|
||||
|
||||
\begin{document}
|
||||
|
||||
Test file for math motion.
|
||||
|
||||
\begin{equation} % [n[n or 2[n
|
||||
1 + 1 = 2
|
||||
\end{equation} % [N[N or 2[N
|
||||
|
||||
\( 1 + 1 = 2 \) % Opening: [n, Closing: [N
|
||||
|
||||
\begin{enumerate}
|
||||
\item 1
|
||||
\item 2
|
||||
\item 3
|
||||
\item 4
|
||||
\end{enumerate}
|
||||
% CURSOR
|
||||
\[ % ]n
|
||||
1 + 1 = 2
|
||||
\] % ]N
|
||||
|
||||
\begin{itemize}
|
||||
\item $1 + 1 = 2$. % Opening: ]n]n or 2]n, Closing: ]N]N or 2]N
|
||||
\end{itemize}
|
||||
|
||||
$1 + 1 = 2$ % Opening: ]n]n]n or 3]n, Closing: ]N]N]N or 3]N
|
||||
$$1 + 1 = 2$$ % Opening: ]n]n]n]n or 4]n, Closing: ]N]N]N]N or 4]N
|
||||
|
||||
\end{document}
|
||||
@ -0,0 +1,26 @@
|
||||
set nocompatible
|
||||
let &rtp = '../..,' . &rtp
|
||||
filetype plugin on
|
||||
syntax on
|
||||
|
||||
nnoremap q :qall!<cr>
|
||||
|
||||
silent edit test-math.tex
|
||||
|
||||
if empty($INMAKE) | finish | endif
|
||||
|
||||
" vint: -ProhibitCommandRelyOnUser
|
||||
|
||||
normal 19G2]n
|
||||
call assert_equal(line('.'), 25)
|
||||
|
||||
normal 19G]N
|
||||
call assert_equal(line('.'), 22)
|
||||
|
||||
normal 19G2[n
|
||||
call assert_equal(line('.'), 7)
|
||||
|
||||
normal 19G[N
|
||||
call assert_equal(line('.'), 11)
|
||||
|
||||
call vimtex#test#finished()
|
||||
@ -0,0 +1,28 @@
|
||||
\documentclass[]{article}
|
||||
|
||||
\begin{document} % [m[m[m[m or 4[m
|
||||
|
||||
\begin{figure} % [m[m[m or 3[m
|
||||
\centering
|
||||
\includegraphics[width=\linewidth]{file}
|
||||
\caption{figure}
|
||||
\label{fig:illustration}
|
||||
\end{figure} % [M
|
||||
|
||||
\begin{table} % [m[m or 2[m
|
||||
\centering
|
||||
\begin{tabular}{c} % [m
|
||||
% CURSOR
|
||||
\end{tabular} % ]M
|
||||
\caption{table}
|
||||
\label{tab:listing}
|
||||
\end{table} % ]M]M or 2]M
|
||||
|
||||
\begin{figure} % ]m
|
||||
\centering
|
||||
\includegraphics[width=\linewidth]{file}
|
||||
\caption{figure}
|
||||
\label{fig:illustration}
|
||||
\end{figure} % ]M]M]M or 3]M
|
||||
|
||||
\end{document} % ]M]M]M]M or 4]M
|
||||
@ -0,0 +1,25 @@
|
||||
set nocompatible
|
||||
let &rtp = '../..,' . &rtp
|
||||
filetype plugin on
|
||||
|
||||
nnoremap q :qall!<cr>
|
||||
|
||||
silent edit test-method.tex
|
||||
|
||||
if empty($INMAKE) | finish | endif
|
||||
|
||||
" vint: -ProhibitCommandRelyOnUser
|
||||
|
||||
normal 15G3[m
|
||||
call assert_equal(line('.'), 5)
|
||||
|
||||
normal 15G]m
|
||||
call assert_equal(line('.'), 21)
|
||||
|
||||
normal 15G[M
|
||||
call assert_equal(line('.'), 10)
|
||||
|
||||
normal 15G4]M
|
||||
call assert_equal(line('.'), line('$'))
|
||||
|
||||
call vimtex#test#finished()
|
||||
@ -0,0 +1,55 @@
|
||||
\documentclass{article}
|
||||
\begin{document}
|
||||
|
||||
\chapter{section 1}
|
||||
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod
|
||||
tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At
|
||||
vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren,
|
||||
no sea takimata sanctus est Lorem ipsum dolor sit amet.
|
||||
|
||||
\chapter{section 2}
|
||||
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod
|
||||
tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At
|
||||
vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren,
|
||||
no sea takimata sanctus est Lorem ipsum dolor sit amet.
|
||||
|
||||
\chapter{section 3}
|
||||
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod
|
||||
tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At
|
||||
vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren,
|
||||
no sea takimata sanctus est Lorem ipsum dolor sit amet.
|
||||
|
||||
\chapter{section 4}
|
||||
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod
|
||||
tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At
|
||||
vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren,
|
||||
no sea takimata sanctus est Lorem ipsum dolor sit amet.
|
||||
|
||||
\chapter{section 5}
|
||||
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod
|
||||
tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At
|
||||
vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren,
|
||||
no sea takimata sanctus est Lorem ipsum dolor sit amet.
|
||||
|
||||
\chapter{section 6}
|
||||
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod
|
||||
tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At
|
||||
vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren,
|
||||
no sea takimata sanctus est Lorem ipsum dolor sit amet.
|
||||
|
||||
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod
|
||||
tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At
|
||||
vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren,
|
||||
no sea takimata sanctus est Lorem ipsum dolor sit amet.
|
||||
|
||||
\chapter{section 7}
|
||||
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod
|
||||
tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At
|
||||
vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren,
|
||||
no sea takimata sanctus est Lorem ipsum dolor sit amet.
|
||||
|
||||
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod
|
||||
tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At
|
||||
vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren,
|
||||
no sea takimata sanctus est Lorem ipsum dolor sit amet.
|
||||
\end{document}
|
||||
@ -0,0 +1,41 @@
|
||||
set nocompatible
|
||||
let &rtp = '../..,' . &rtp
|
||||
filetype plugin on
|
||||
|
||||
nnoremap q :qall!<cr>
|
||||
|
||||
silent edit test-section.tex
|
||||
|
||||
if empty($INMAKE) | finish | endif
|
||||
|
||||
" vint: -ProhibitCommandRelyOnUser
|
||||
|
||||
normal ]]
|
||||
call assert_equal(line('.'), 4)
|
||||
normal gg3]]
|
||||
call assert_equal(line('.'), 16)
|
||||
|
||||
normal gg][
|
||||
call assert_equal(line('.'), 9)
|
||||
normal 16G2][
|
||||
call assert_equal(line('.'), 27)
|
||||
normal 28G][
|
||||
call assert_equal(line('.'), 33)
|
||||
|
||||
normal 34G[]
|
||||
call assert_equal(line('.'), 33)
|
||||
normal 34G2[]
|
||||
call assert_equal(line('.'), 27)
|
||||
normal 8G[]
|
||||
call assert_equal(line('.'), 1)
|
||||
|
||||
normal 33G[[
|
||||
call assert_equal(line('.'), 28)
|
||||
normal 3[[
|
||||
call assert_equal(line('.'), 10)
|
||||
|
||||
silent normal 35G^d][
|
||||
call assert_equal(getline('.'), '\chapter{section 7}')
|
||||
silent normal u
|
||||
|
||||
call vimtex#test#finished()
|
||||
Reference in New Issue
Block a user