summaryrefslogtreecommitdiffstats
path: root/.vimrc
diff options
context:
space:
mode:
Diffstat (limited to '.vimrc')
-rw-r--r--.vimrc4
1 files changed, 4 insertions, 0 deletions
diff --git a/.vimrc b/.vimrc
index a87b141..c407cbd 100644
--- a/.vimrc
+++ b/.vimrc
@@ -20,3 +20,7 @@ autocmd BufRead *.py set smartindent cinwords=if,elif,else,for,while,try,except,
" for Project Fortress
au BufNewFile,BufRead *.fsi,*.fss set ft=fortress
+
+" for previewing reStructured text (.rst) in firefox
+:command Rst :!rst2html.py % > /tmp/rstprev.html && firefox file:///tmp/rstprev.html
+:nnoremap <C-p><C-r> :Rst<CR>