<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,13 +1,10 @@
 &quot; Author: Michael Sanders (msanders42 [at] gmail [dot] com)
 
-&quot; ino &lt;c-space&gt; &lt;c-x&gt;&lt;c-o&gt;
-&quot; ino &lt;Nul&gt; &lt;C-x&gt;&lt;C-o&gt;
 set shm=atI                 &quot; Disable intro screen
 set lazyredraw              &quot; Don't redraw screen during macros
 set ttyfast                 &quot; Improves redrawing for newer computers
 set nobk nowb noswf         &quot; Disable backup
 set timeoutlen=500          &quot; Lower timeout for mappings
-set report=0                &quot; Always report when lines are changed
 set history=50              &quot; Only store past 50 commands
 set undolevels=150          &quot; Only undo up to 150 times
 set titlestring=%f title    &quot; Display filename in terminal window
@@ -33,7 +30,7 @@ if has('gui_running')
 	set guioptions=haMR &quot; Disable default menus (I've defined my own in my .gvimrc)
 	set guifont=Deja\ Vu\ Sans\ Mono:h12
 	set columns=100 lines=38 fuoptions=maxvert,maxhorz &quot; Default window size
-	set mousefocus &quot; Set splits to automatically activate when moused over
+	&quot; set mousefocus &quot; Set splits to automatically activate when moused over
 else
 	vno &lt;silent&gt; &quot;+y :&lt;c-u&gt;cal&lt;SID&gt;Copy()&lt;cr&gt;
 	vm &quot;+Y &quot;+y
@@ -291,11 +288,20 @@ fun s:DefaultMake()
 	endif
 endf
 nn &lt;silent&gt; &lt;c-k&gt; :cal&lt;SID&gt;DefaultMake()&lt;cr&gt;
+fun s:AppendSemicolon()
+	if pumvisible()
+		call feedkeys(&quot;\&lt;esc&gt;a&quot;, 'n')
+		call feedkeys(';;')
+	elseif getline('.') !~ ';$'
+		call setline('.', getline('.').';')
+	endif
+	return ''
+endf
 
 if &amp;cp | finish | endif &quot; Vi-compatible mode doesn't seem to like autocommands
 aug vimrc
 	au!
-	au FileType c,objc,sh,python,scheme,html,xhtml,xml
+	au FileType c,objc,cpp,sh,python,scheme,haskell,html,xhtml,xml,tex
 	          \ nn &lt;buffer&gt; &lt;silent&gt; ,r :w&lt;bar&gt;lcd %:p:h&lt;bar&gt;mak!&lt;cr&gt;
 
 	&quot; Use Bwana.app to open man pages in browser.
@@ -304,11 +310,11 @@ aug vimrc
 	au FileType c,objc,sh set keywordprg=gman
 
 	&quot; Shortcut for typing a semicolon at the end of a line
-	au FileType c,objc,cpp ino &lt;buffer&gt; &lt;silent&gt; ;; &lt;c-o&gt;:cal setline('.', getline('.').';')&lt;cr&gt;
+	au FileType c,objc,cpp ino &lt;buffer&gt; &lt;silent&gt; ;; &lt;c-r&gt;=&lt;SID&gt;AppendSemicolon()&lt;cr&gt;
 	au FileType c nn &lt;buffer&gt; &lt;silent&gt; ,A :cal&lt;SID&gt;AlternateFile('c')&lt;cr&gt;
 	&quot; compile.sh is a simple shell script I made for compiling a C/Obj-C
 	&quot; program with gcc &amp; running it in a new window in Terminal.app
-	au FileType c,objc setl cin
+	au FileType c,objc,cpp setl cin
 	                     \  mp=compile.sh\ \&quot;%:p\&quot;\ \&quot;%\&quot;\ \-\q\ -\w
 
 	&quot; Functions for converting plist files (can be binary but have xml syntax)
@@ -316,6 +322,8 @@ aug vimrc
 
 	au FileType scheme setl et sts=2 makeprg=csi\ -s\ \&quot;%:p\&quot;
 	au FileType python setl et sts=4 makeprg=python\ -t\ \&quot;%:p\&quot;
+	au FileType haskell setl et sts=4 makeprg=ghci\ \&quot;%:p\&quot;
+	au FileType tex setl makeprg=latexpreview.sh\ \&quot;%:p\&quot;
 
 	&quot; Automatically make shell &amp; python scripts executable if they aren't already
 	&quot; when saving file
@@ -331,6 +339,7 @@ aug vimrc
 	                        \| vno &lt;buffer&gt; &lt;c-e&gt; c&lt;em&gt;&lt;/em&gt;&lt;esc&gt;5hp
 	                        \| setl makeprg=open\ -a\ safari\ %:p
 
+
 	&quot; Look up documentation under :help instead of man for .vim files
 	au FileType vim,help let&amp;l:kp=':help'
 	&quot; I'm never using macros in help; this is much more useful</diff>
      <filename>.vimrc</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>a2ee5b630118972ecc28a469b84e3f591783fb8b</id>
    </parent>
  </parents>
  <author>
    <name>Michael Sanders</name>
    <email>msanders42@gmail.com</email>
  </author>
  <url>http://github.com/msanders/vim-files/commit/11cf0c869a03be4d546e163f07aeeeb0bb524167</url>
  <id>11cf0c869a03be4d546e163f07aeeeb0bb524167</id>
  <committed-date>2009-10-01T20:14:10-07:00</committed-date>
  <authored-date>2009-10-01T20:14:10-07:00</authored-date>
  <message>updated .vimrc</message>
  <tree>24be8ea5ff48ac5cd72f74de1a718f2e78ce59d5</tree>
  <committer>
    <name>Michael Sanders</name>
    <email>msanders42@gmail.com</email>
  </committer>
</commit>
