diff --git a/.gitmodules b/.gitmodules index d7a0142..4b70000 100644 --- a/.gitmodules +++ b/.gitmodules @@ -40,3 +40,9 @@ [submodule "bundle/rust.vim"] path = bundle/rust.vim url = https://github.com/rust-lang/rust.vim.git +[submodule "bundle/mom.vim"] + path = bundle/mom.vim + url = https://github.com/vim-scripts/mom.vim.git +[submodule "bundle/TextFormat"] + path = bundle/TextFormat + url = https://github.com/vim-scripts/TextFormat.git diff --git a/bundle/TextFormat b/bundle/TextFormat new file mode 160000 index 0000000..7fa3514 --- /dev/null +++ b/bundle/TextFormat @@ -0,0 +1 @@ +Subproject commit 7fa3514aa0edef9d3acbca60ff2b81a1ccf25f11 diff --git a/bundle/mom.vim b/bundle/mom.vim new file mode 160000 index 0000000..1ca55ea --- /dev/null +++ b/bundle/mom.vim @@ -0,0 +1 @@ +Subproject commit 1ca55ea8c066cd6d05eef5b0853be31d9c984e50 diff --git a/fonts/Monoid-Dollar-NoCalt.zip b/fonts/Monoid-Dollar-NoCalt.zip deleted file mode 100644 index e2a745c..0000000 Binary files a/fonts/Monoid-Dollar-NoCalt.zip and /dev/null differ diff --git a/init.vim b/init.vim new file mode 100644 index 0000000..8a14ef1 --- /dev/null +++ b/init.vim @@ -0,0 +1 @@ +runtime vimrc diff --git a/notes/command-on-save.txt b/notes/command-on-save.txt new file mode 100644 index 0000000..2edff8c --- /dev/null +++ b/notes/command-on-save.txt @@ -0,0 +1,5 @@ +To run "command" on the current file on each save, use: + + :autocmd BufWritePost * !command + + is a built-in variable for the current active file. diff --git a/vimrc b/vimrc index 77293f3..7c59cb6 100644 --- a/vimrc +++ b/vimrc @@ -2,6 +2,9 @@ silent! runtime bundle/vim-pathogen/autoload/pathogen.vim silent! execute pathogen#infect() autocmd BufRead,BufNewFile *.md set filetype=markdown +autocmd BufWritePost *.mom !pdfmom -t -k > .pdf +autocmd BufWritePost *.rst !rst2html .html +autocmd BufWritePost *.tex !lualatex --output-directory=/tmp command Q q command W w command WQ wq @@ -36,17 +39,18 @@ set ignorecase set linebreak set list set modelines=0 +set nojoinspaces set number set omnifunc=syntaxcomplete#Complete set printoptions=paper:A4,duplex:off,header:0 set relativenumber -set ruler set shiftwidth=4 set smartcase set spl=en_gb nospell set tabstop=4 set textwidth=72 set ttyfast +set viminfo="NONE" set wrap silent! colorscheme desert silent! filetype plugin indent on @@ -54,9 +58,9 @@ silent! syntax on if has("gui_running") if has("gui_gtk2") - set guifont=Monoid\ 9 + set guifont=Monospace\ Regular\ 10 elseif has("gui_win32") - set guifont=Monoid:h9:cANSI + set guifont=Consolas:h10:cANSI endif set columns=88