diff plugin/lawrencium.vim @ 7:adc267e2f0f4

Added syntax highlighting for hgstatus window.
author Ludovic Chabant <ludovic@chabant.com>
date Fri, 09 Dec 2011 23:08:53 -0800
parents 1da613c13d81
children 1e155bfa94ad
line wrap: on
line diff
--- a/plugin/lawrencium.vim	Fri Dec 09 17:12:13 2011 -0800
+++ b/plugin/lawrencium.vim	Fri Dec 09 23:08:53 2011 -0800
@@ -248,12 +248,14 @@
     call append(0, l:status_lines)
     execute "setlocal previewheight=" . l:preview_height
     
-    " Setup the buffer correctly.
+    " Setup the buffer correctly: readonly, and with the correct repo linked
+    " to it.
     let b:mercurial_dir = l:repo.root_dir
     setlocal buftype=nofile
     setlocal nomodified
     setlocal nomodifiable
     setlocal readonly
+    setlocal syntax=hgstatus
     
     " Add some handy mappings.
     nnoremap <buffer> <silent> <C-N> :call search('^[MARC\!\?I ]\s.', 'We')<cr>