aboutsummaryrefslogtreecommitdiff
path: root/stow/vim/.vim/ftplugin
diff options
context:
space:
mode:
Diffstat (limited to 'stow/vim/.vim/ftplugin')
-rw-r--r--stow/vim/.vim/ftplugin/sh/sh.vim4
-rw-r--r--stow/vim/.vim/ftplugin/tex/tex.vim9
2 files changed, 6 insertions, 7 deletions
diff --git a/stow/vim/.vim/ftplugin/sh/sh.vim b/stow/vim/.vim/ftplugin/sh/sh.vim
index f716617..11ecb48 100644
--- a/stow/vim/.vim/ftplugin/sh/sh.vim
+++ b/stow/vim/.vim/ftplugin/sh/sh.vim
@@ -12,8 +12,8 @@ let mapleader = " "
nnoremap <buffer> <leader>C :sp ~/.vim/ftplugin/sh/sh.vim<CR><CR>
nnoremap <buffer> <leader>+x :!chmod 744 %<CR>
-nnoremap <buffer> <leader>x :w<CR>:!./%<Space>
-nnoremap <buffer> <leader>X :w<CR>:!./%<CR><CR>
+nnoremap <buffer> <leader>x :w<CR>:!./%<CR><CR>
+nnoremap <buffer> <leader>X :w<CR>:!./%<Space>
let mapleader = ","
diff --git a/stow/vim/.vim/ftplugin/tex/tex.vim b/stow/vim/.vim/ftplugin/tex/tex.vim
index 0893e40..3558c39 100644
--- a/stow/vim/.vim/ftplugin/tex/tex.vim
+++ b/stow/vim/.vim/ftplugin/tex/tex.vim
@@ -21,8 +21,7 @@ nnoremap <buffer> gd :lua vim.lsp.buf.definition()<CR>
nnoremap <buffer> <leader>c :w<Enter>:!toPDF.sh %<CR><CR>
nnoremap <buffer> <leader>o :w<Enter>:!toPDF.sh -o %<CR><CR>
nnoremap <buffer> <leader>O :w<Enter>:!toPDF.sh -o %<CR>
-nnoremap <buffer> <leader>m :w<Enter>:!make<CR><CR>
-nnoremap <buffer> <leader>M :w<Enter>:!make<CR>
+nnoremap <buffer> <leader>m :w<Enter>:Make<CR>
nnoremap <buffer> <leader>temp :-1r ~/.vim/ftplugin/tex/snips/template.txt<CR>/<+++><CR>cf>
@@ -43,8 +42,8 @@ inoremap <buffer> <leader>li \textit{}<++><Esc>F}i
inoremap <buffer> <leader>lemph \emph{}<++><Esc>F}i
inoremap <buffer> <leader>llabel \label{}<++><Esc>F}i
inoremap <buffer> <leader>lref ~\ref{}<++><Esc>F}i
-inoremap <buffer> <leader>lenumerate \begin{enumerate}<Esc>o<Enter><Enter><Enter>\end{enumerate}<Esc>kkI\item<Enter><Esc>I<Tab><++><Esc>k<<i<Tab><Esc>$a<Space>
-inoremap <buffer> <leader>litemize \begin{itemize}<Esc>o<Enter><Enter><Enter>\end{itemize}<Esc>kkI\item<Enter><Esc>I<Tab><++><Esc>k<<i<Tab><Esc>$a<Space>
-inoremap <buffer> <leader>litem \item<Enter><++><Esc>k$a<Space>
+inoremap <buffer> <leader>lenumerate \begin{enumerate}<Esc>o<Enter><Enter><Enter>\end{enumerate}<Esc>kkI\item<Enter><Esc>I<Tab><++><Esc>kA<Space>
+inoremap <buffer> <leader>litemize \begin{itemize}<Esc>o<Enter><Enter><Enter>\end{itemize}<Esc>kkI\item<Enter><Esc>I<Tab><++><Esc>kA<Space>
+inoremap <buffer> <leader>litem \item<Enter><++><Esc>kA<Space>
inoremap <buffer> <leader>limage \begin{figure}[h]<Enter>\begin{center}<Enter>\includegraphics[width=\textwidth]{}<Enter>\caption{<++>}<Enter>\end{center}<Enter>\end{figure}<Enter><++><Esc>4k$i
inoremap <buffer> <leader>ltable \begin{table}[h]<Enter>\makebox[\linewidth]{<Enter>\begin{tabular}{c<Space>cxxx}<Enter>\toprule<Enter><++><Space>&<Space><++><Space>\\<Enter>\midrule<Enter><++><Space>&<Space><++><Space>\\<Enter>\bottomrule<Enter>\end{tabular}<Enter>}<Enter>\end{table}<Enter><++><Esc>?xxx<Enter>cw