From 9aa64a75a4bfdb13c81af68f1da3268ca99ca424 Mon Sep 17 00:00:00 2001 From: Connor Moore Date: Mon, 30 Mar 2026 14:30:12 -0400 Subject: Fixed LaTeX margins, added vlime for CL, hotkeys for pane switching/starting OctaveTUI in vim. --- .vimrc | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) (limited to '.vimrc') diff --git a/.vimrc b/.vimrc index 4325d7f..302ae98 100644 --- a/.vimrc +++ b/.vimrc @@ -3,6 +3,7 @@ call plug#begin('~/.vim/plugged') Plug 'lervag/vimtex' Plug 'NewComer00/octavetui.vim', {'branch': 'main'} Plug 'iamcco/markdown-preview.nvim', { 'do': { -> mkdp#util#install() }, 'for': ['markdown', 'vim-plug'] } +Plug 'vlime/vlime', {'rtp': 'vim/'} call plug#end() " Speed up making new reports @@ -73,6 +74,13 @@ set smarttab set expandtab set autoindent +" Move easily between splits +nnoremap h h +nnoremap j j +nnoremap k k +nnoremap l l + + " Compile/run hotkeys (when not using make) autocmd FileType python map :w:exec '!clear && python3' shellescape(@%, 1) autocmd FileType python imap :w:exec '!clear && python3' shellescape(@%, 1) @@ -83,15 +91,23 @@ autocmd FileType python map :!python3 -m openmc_plotter autocmd FileType java map :w:exec '!clear && java' shellescape(@%, 1) autocmd FileType java imap :w:exec '!clear && java' shellescape(@%, 1) -autocmd FileType fortran map :w:exec '!clear && gfortran -o prog' shellescape(@%, 1) ' && ./prog' -autocmd FileType fortran imap :w:exec '!clear && gfortran -o prog' shellescape(@%, 1) ' && ./prog' +autocmd FileType fortran map :w:exec '!clear && gfortran -o %:r.x % && ./%:r.x' +"autocmd FileType fortran imap :w:exec '!clear && gfortran -o %:r.out' shellescape(@%, 1) ' && ./prog' -autocmd FileType gnuplot map :w :!gnuplot % -e "pause mouse close,key" -autocmd FileType gnuplot imap :w :!gnuplot % -e "pause mouse close,key" +autocmd FileType gnuplot map :w:!gnuplot % +"autocmd FileType gnuplot imap :w:!gnuplot % -e "pause mouse close,key" autocmd FileType sh map :w :!clear && ./% autocmd FileType sh imap :w :!clear && ./% +" Starting and closing OctaveTUI +autocmd FileType matlab map :w :OctaveTUIStart +autocmd FileType matlab imap :w :OctaveTUIStart + +autocmd FileType matlab map :w :OctaveTUIStop +autocmd FileType matlab imap :w :OctaveTUIStop + + " Big day for ZZ ZQ fans! map q: nnoremap Q -- cgit v1.2.3