aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.vim/.netrwhist10
-rw-r--r--.vim/templates/skeleton.tex9
-rw-r--r--.vimrc24
3 files changed, 35 insertions, 8 deletions
diff --git a/.vim/.netrwhist b/.vim/.netrwhist
new file mode 100644
index 0000000..6b5150d
--- /dev/null
+++ b/.vim/.netrwhist
@@ -0,0 +1,10 @@
+let g:netrw_dirhistmax =10
+let g:netrw_dirhistcnt =8
+let g:netrw_dirhist_8='/home/connor/Projects/websites/eish-site'
+let g:netrw_dirhist_7='/usr/share/applications/screensavers'
+let g:netrw_dirhist_6='/home/connor/.dotfiles/.vim/ftdetect'
+let g:netrw_dirhist_5='/home/connor/Projects/SCA/sca-openmc'
+let g:netrw_dirhist_4='/home/connor/Projects/apollonian-candu/37-results'
+let g:netrw_dirhist_3='/home/connor/Projects/apollonian-candu'
+let g:netrw_dirhist_2='/home/connor/Projects/apollonian-candu/37-results'
+let g:netrw_dirhist_1='/home/connor/Projects/SCA/sca-openmc'
diff --git a/.vim/templates/skeleton.tex b/.vim/templates/skeleton.tex
index 2ff3c4b..c1569e8 100644
--- a/.vim/templates/skeleton.tex
+++ b/.vim/templates/skeleton.tex
@@ -1,6 +1,6 @@
\documentclass{article}
-\usepackage[margin=0.15in]{geometry}
+\usepackage[margin=1in]{geometry}
\usepackage{parskip}
\usepackage{float}
@@ -16,14 +16,15 @@
linkcolor=black,
urlcolor=blue,
citecolor=black,
- pdftitle={High-Performance Square Matrix-Matrix Multiplication},
+ pdftitle={xxx},
pdfpagemode=FullScreen}
\usepackage{listings}
\usepackage{algpseudocode}
-\title{AnotherGreatReport!}
-\author{Connor Moore, 100826701}
+\title{xxx}
+\author{Connor Moore, 100826701. \today{}}
+\date{}
\begin{document}
\maketitle
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 <C-w>h
+nnoremap j <C-w>j
+nnoremap k <C-w>k
+nnoremap l <C-w>l
+
+
" Compile/run hotkeys (when not using make)
autocmd FileType python map <buffer> <F9> :w<CR>:exec '!clear && python3' shellescape(@%, 1)<CR>
autocmd FileType python imap <buffer> <F9> <esc>:w<CR>:exec '!clear && python3' shellescape(@%, 1)<CR>
@@ -83,15 +91,23 @@ autocmd FileType python map <buffer> <F8> <esc>:!python3 -m openmc_plotter<CR>
autocmd FileType java map <buffer> <F9> :w<CR>:exec '!clear && java' shellescape(@%, 1)<CR>
autocmd FileType java imap <buffer> <F9> <esc>:w<CR>:exec '!clear && java' shellescape(@%, 1)<CR>
-autocmd FileType fortran map <buffer> <F9> :w<CR>:exec '!clear && gfortran -o prog' shellescape(@%, 1) ' && ./prog'<CR>
-autocmd FileType fortran imap <buffer> <F9> <esc>:w<CR>:exec '!clear && gfortran -o prog' shellescape(@%, 1) ' && ./prog'<CR>
+autocmd FileType fortran map <buffer> <F9> :w<CR>:exec '!clear && gfortran -o %:r.x % && ./%:r.x'<CR>
+"autocmd FileType fortran imap <buffer> <F9> <esc>:w<CR>:exec '!clear && gfortran -o %:r.out' shellescape(@%, 1) ' && ./prog'<CR>
-autocmd FileType gnuplot map <buffer> <F9> :w<CR> :!gnuplot % -e "pause mouse close,key"<CR>
-autocmd FileType gnuplot imap <buffer> <F9> <esc>:w<CR> :!gnuplot % -e "pause mouse close,key"<CR>
+autocmd FileType gnuplot map <buffer> <F9> :w<CR>:!gnuplot %<CR>
+"autocmd FileType gnuplot imap <buffer> <F9> <esc>:w<CR>:!gnuplot % -e "pause mouse close,key"<CR>
autocmd FileType sh map <buffer> <F9> :w<CR> :!clear && ./% <CR>
autocmd FileType sh imap <buffer> <F9> <esc>:w<CR> :!clear && ./% <CR>
+" Starting and closing OctaveTUI
+autocmd FileType matlab map <buffer> <F5> :w<CR> :OctaveTUIStart<CR>
+autocmd FileType matlab imap <buffer> <F5> <esc>:w<CR> :OctaveTUIStart <CR>
+
+autocmd FileType matlab map <buffer> <F6> :w<CR> :OctaveTUIStop <CR>
+autocmd FileType matlab imap <buffer> <F6> <esc>:w<CR> :OctaveTUIStop <CR>
+
+
" Big day for ZZ ZQ fans!
map q: <Nop>
nnoremap Q <nop>