<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -104,31 +104,14 @@ map &lt;leader&gt;cd :cd %:p:h&lt;cr&gt;
 &quot;Remap VIM 0
 nmap 0 $
 
-&quot;Move a line of text using control
-nmap &lt;M-j&gt; mz:m+&lt;cr&gt;`z
-nmap &lt;M-k&gt; mz:m-2&lt;cr&gt;`z
-vmap &lt;M-j&gt; :m'&gt;+&lt;cr&gt;`&lt;my`&gt;mzgv`yo`z
-vmap &lt;M-k&gt; :m'&lt;-2&lt;cr&gt;`&gt;my`&lt;mzgv`yo`z
-
-&quot;Bash like
-cnoremap &lt;C-A&gt;    &lt;Home&gt;
-cnoremap &lt;C-E&gt;    &lt;End&gt;
-&quot;cnoremap &lt;C-K&gt;    &lt;C-U&gt;
-
 &quot; select text and search
 noremap &lt;silent&gt; &lt;leader&gt;/ y/&lt;C-R&gt;=escape(@&quot;, '\\/.*$^~[]')&lt;CR&gt;&lt;CR&gt;
 noremap &lt;silent&gt; &lt;leader&gt;? y?&lt;C-R&gt;=escape(@&quot;, '\\/.*$^~[]')&lt;CR&gt;&lt;CR&gt;
 
-&quot; CTRL-T and CTRL-D indent and unindent blocks
-inoremap &lt;C-D&gt; &lt;C-O&gt;&lt;LT&gt;&lt;LT&gt;
-nnoremap &lt;C-D&gt; &lt;LT&gt;&lt;LT&gt;
-&quot;vnoremap &lt;C-T&gt; &gt;
-vnoremap &lt;C-D&gt; &lt;LT&gt;
-
 &quot; CTRL-Z undoes even in visual/selection mode
 vnoremap &lt;C-Z&gt; &lt;C-C&gt;
 
-&quot;nmap &lt;F4&gt; :set listchars=tab:&gt;-,trail:-&lt;cr&gt; 
+&quot;nmap &lt;F4&gt; :set listchars=tab:&gt;-,trail:-&lt;cr&gt;
 &quot; Fast reloading of the .vimrc
 &quot;map &lt;leader&gt;s :source ~/.vimrc&lt;cr&gt;
 &quot;Fast editing of .vimrc
@@ -136,16 +119,11 @@ vnoremap &lt;C-Z&gt; &lt;C-C&gt;
 &quot;When .vimrc is edited, reload it
 &quot;autocmd! bufwritepost vimrc source ~/.vimrc
 
-&quot;Map space to / and c-space to ?
-&quot;map &lt;space&gt; /
-&quot;map &lt;c-space&gt; ?
-
 &quot;Smart way to move btw. windows
 noremap &lt;Up&gt; gk
 noremap &lt;Down&gt; gj
 noremap &lt;C-K&gt; gk
 noremap &lt;C-J&gt; gj
-imap &lt;M-o&gt; &lt;Esc&gt;o
 
 &quot; Ctrl + &#19978;&#19979;&#26041;&#21521;&#38190;&#22312;&#22810;&#20010;&#32531;&#20914;&#21306;&#31227;&#21160;
 noremap &lt;C-Up&gt; :bp&lt;CR&gt;
@@ -168,6 +146,9 @@ set fileencodings=utf-8,gbk,ucs-bom,cp936
 set fencs=utf-8,ucs-bom,gb18030,gbk,gb2312,cp936
 set langmenu=en
 
+&quot; remove spaces in end of line
+nmap &lt;C-\&gt; :%s/\s\+$//g&lt;CR&gt;
+
 &quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;
 &quot; Statusline
 &quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;
@@ -194,7 +175,7 @@ syntax on
 &quot; AutoComplate
 filetype on
 filetype indent on
-filetype plugin on 
+filetype plugin on
 autocmd FileType python set omnifunc=pythoncomplete#Complete
 autocmd FileType javascript set omnifunc=javascriptcomplete#CompleteJS
 autocmd FileType html set omnifunc=htmlcomplete#CompleteTags
@@ -207,19 +188,19 @@ autocmd FileType erb set omnifunc=htmlcomplete#CompleteTags
 
 autocmd FileType c,cpp,python,xml,xhtml,html set shiftwidth=4
 autocmd FileType java,javascript,css set shiftwidth=4
- 
+
 augroup filetypedetect
   au! BufNewFile,BufRead *.ch setf cheat
   au BufNewFile,BufRead *.liquid setf liquid
   au! BufRead,BufNewFile *.haml setfiletype haml
   autocmd BufNewFile,BufRead *.yml setf eruby
 augroup END
- 
+
 &quot;autocmd BufNewFile,BufRead *_test.rb source ~/.vim/ftplugin/shoulda.vim
 &quot;use \rci in normal mode to indent ruby code,should install kode ,sudo gem
 &quot;install kode
 nmap &lt;leader&gt;rci :%!ruby-code-indenter&lt;cr&gt;
- 
+
 autocmd FileType ruby,eruby set omnifunc=rubycomplete#Complete
 autocmd FileType ruby,eruby let g:rubycomplete_buffer_loading = 1
 autocmd FileType ruby,eruby let g:rubycomplete_rails = 1
@@ -267,7 +248,7 @@ if has(&quot;cscope&quot;)
     endif
     set csverb
     set cspc=5
-endi 
+endi
 
 &quot; Shortcut of NERDTree
 nmap &lt;silent&gt; &lt;F2&gt; :NERDTreeToggle&lt;cr&gt;
@@ -352,4 +333,3 @@ func GitGrepWord()
   call GitGrep('-w -e ', getreg('z'))
 endf
 nmap &lt;C-x&gt;g :call GitGrepWord()&lt;CR&gt;
-</diff>
      <filename>vim/vimrc</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>44012789763a69fdabf4e576d95fed100d75438e</id>
    </parent>
  </parents>
  <author>
    <name>Kai Chen</name>
    <email>chenk85@gmail.com</email>
  </author>
  <url>http://github.com/kaichen/dotfiles/commit/cd83067ab531fe85ef145ce22a3f47fd7940a5a8</url>
  <id>cd83067ab531fe85ef145ce22a3f47fd7940a5a8</id>
  <committed-date>2009-11-01T10:10:09-08:00</committed-date>
  <authored-date>2009-11-01T10:10:09-08:00</authored-date>
  <message>clear vimrc file and add a useful map to remove tail spaces</message>
  <tree>8d27d903ea1f5e4e24e1520e636b63f33b33f8a6</tree>
  <committer>
    <name>Kai Chen</name>
    <email>chenk85@gmail.com</email>
  </committer>
</commit>
