Skip to content

Commit

Permalink
Added some helpers for when working in tex
Browse files Browse the repository at this point in the history
  • Loading branch information
derekwyatt committed Jun 29, 2012
1 parent 578cbfd commit 3e15232
Show file tree
Hide file tree
Showing 4 changed files with 102 additions and 7 deletions.
4 changes: 2 additions & 2 deletions ftplugin/tex.vim
Expand Up @@ -5,9 +5,9 @@ setlocal spell
setlocal fdl=0
setlocal fdm=marker
setlocal fmr=<<<,>>>
setlocal iskeyword+=_

imap <buffer> jj <esc>:w<cr>
imap <buffer> jw <c-o>:w<cr>
imap <buffer> ;;; \\ldots
imap ... \\ldots
let g:tex_isk="48-57,a-z,A-Z,192-255,_"
90 changes: 90 additions & 0 deletions spell/en.utf-8.add
Expand Up @@ -45,3 +45,93 @@ refactor
screencasts
snuck
Dataflow
Adamantium
ScalaTest
mixin
ImplicitSender
TestKit
testActor
EventSource
expectMsg
sendEvent
TestEventSource
ActorSystems
actorOf
ActorLogging
ParallelTestExecution
ScalaTest's
InvalidActorNameException
something's
EventSourceSpy
CountDownLatch
eventSourceReceive
CountDown
ActorSys
fishForMessage
ScalaDoc
ignoreMsg
expectMsgPF
AltimeterSpec
receiveWhile
AltitudeUpdates
TestActorRef
AttendantResponsiveness
FlightAttendant
maxResponseTimeMS
ActorContext
CoPilot
LeadFlightAttendant
PilotProvider
Iterable
actorFor
ActorPath
ControlSurfaces
doesNotExist
ActorContexts
ActorCell
NoDatabaseConnectionException
AllForOneStrategy
SupervisorStrategy
OneForOneStrategy
ActorKilledException
ActorInitializationFailedException
ActorContext's
unwatch
MyActor's
preRestart
MyActor
preStart
IsolatedLifeCycle
IsolatedLifeCycleSupervisor
postRestart
supervisorStrategy
FlightAttendants
ActorInitializationException
OneForOneStrategyFactory
IsolatedResumeSupervisor
startControls
childStarter
IsolatedStopSupervisor
startPeople
GiveMeControl
CoPilots
AutoPilot
newPilot
refactorings
WebSocket
ArithmeticException
rateOfClimb
altitudeCalculator
ReadyToGo
IsolatedLifeCycleSupervisor's
AutoPilot's
CoPilot's
ActorSystem's
commitData
transactionId
pendingCommit
databaseOffline
databaseOnline
coffeeType
DrinkingBehaviour
standardBehaviour
Binary file modified spell/en.utf-8.add.spl
Binary file not shown.
15 changes: 10 additions & 5 deletions xpt-personal/ftplugin/tex/tex.xpt.vim
Expand Up @@ -15,19 +15,19 @@ XPT chapter wrap=title hint=\\chapter{...}
XPT s wrap=title hint=\\section{...}
% - `title^ <<<1
\section{`title^}
\label{sec:`title^S(SV(' ', '_', 'g'), '\([A-Z]\)', '\l\1', 'g')^}
\label{sec:`title^S(S(SV(' ', '_', 'g'), ',%"!\.', '', 'g'), '\([A-Z]\)', '\l\1', 'g')^}
`cursor^

XPT ss wrap=title hint=\\subsection{...}
% -- `title^ <<<1
\subsection{`title^}
\label{sec:`title^S(SV(' ', '_', 'g'), '\([A-Z]\)', '\l\1', 'g')^}
\label{sec:`title^S(S(SV(' ', '_', 'g'), ',%"!\.', '', 'g'), '\([A-Z]\)', '\l\1', 'g')^}
`cursor^

XPT sss wrap=title hint=\\subsubsection{...}
% --- `title^ <<<1
\subsubsection{`title^}
\label{sec:`title^S(SV(' ', '_', 'g'), '\([A-Z]\)', '\l\1', 'g')^}
\label{sec:`title^S(S(SV(' ', '_', 'g'), ',%"!\.', '', 'g'), '\([A-Z]\)', '\l\1', 'g')^}
`cursor^

XPT heading wrap=title hint=\\subsubsection*{...}
Expand All @@ -49,8 +49,8 @@ XPT code hint=\\begin{lstlisting}...\\end{lstlisting}
`cursor^
\end{lstlisting}

XPT ic hint=\\lstinline{code}
\lstinline{`code^}`cursor^
XPT ic wrap=code hint=\\lstinline{code}
\icode{`code^}`cursor^

XPT fn hint=\\footnote{...}
\footnote{`^}`cursor^
Expand Down Expand Up @@ -161,3 +161,8 @@ XPT minted wrap=code hint=\\minted{...}
\begin{minted}[frame=lines, framesep=2mm]{`scala^}
`code^
\end{minted}

XPT line hint=A\ horizontal\ line
\begin{center}
\line(1, 0){350}
\end{center}

0 comments on commit 3e15232

Please sign in to comment.