aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--vim/.vim/after/ftplugin/nroff.vim4
-rw-r--r--vim/.vimrc6
2 files changed, 7 insertions, 3 deletions
diff --git a/vim/.vim/after/ftplugin/nroff.vim b/vim/.vim/after/ftplugin/nroff.vim
index 031c8d9..a8ae553 100644
--- a/vim/.vim/after/ftplugin/nroff.vim
+++ b/vim/.vim/after/ftplugin/nroff.vim
@@ -1,2 +1,4 @@
set spell
-autocmd BufWritePost * silent! !grap % | pic | tbl | eqn | troff -ms | grops > %:r.ps
+"autocmd BufWritePost * silent! !refer % | grap | pic | tbl | eqn | troff -dpaper=a4 -ms | grops -p a4 > %:r.ps
+"autocmd BufWritePost * silent! !cat % | n-eqn | n-roff -ms -mtbl | n-post > %:r.ps
+set tw=0
diff --git a/vim/.vimrc b/vim/.vimrc
index 1fc49ff..6a19a67 100644
--- a/vim/.vimrc
+++ b/vim/.vimrc
@@ -1,4 +1,4 @@
-set number
+set number relativenumber
syntax enable
set tabstop=8
set cursorline
@@ -12,13 +12,15 @@ set spell
set tw=70
set ruler
+set foldmethod=marker
+
set list
set listchars=eol:\ ,tab:\|\ ,trail:~,extends:>,precedes:<,space:·
map K i<enter><esc>
map W <esc>:WordCount<enter>
-colorscheme moonfly
+colorscheme elflord
au BufRead,BufNewFile *.go set filetype=go
au BufRead,BufNewFile *.ldg set filetype=ledger