title: Error detected message while using Vim editor
body: <p>When I try to open a file for editing using <code>vim</code> I get this following message and error detected message.</p>
  
  <pre><code>   Jashs-MacBook-Pro:hello jashjacob$ vim hello.rb
  
  --- Auto-Commands ---
  filetypedetect  BufRead
  *if !did_filetype() &amp;&amp; expand("&lt;amatch&gt;") !~ g:ft_ignore_pat | runtime! scripts.vim | endif
  *if !did_filetype() &amp;&amp; expand("&lt;amatch&gt;") !~ g:ft_ignore_pat    &amp;&amp; (getline(1) =~ '^#' || getline(2) =~ '^#' || getline(3) =~ '^#'^I|| getline(4) =~ '^#' || getline(5) =~ '^#') |   setf conf | endif
  Error detected while processing /usr/share/vim/vimrc:
  line   18:
  E116: Invalid arguments for function line("'"") &gt; 0 &amp;&amp; line ("'"") &lt;= line("$") |
  E15: Invalid expression: line("'"") &gt; 0 &amp;&amp; line ("'"") &lt;= line("$") |
  Press ENTER or type command to continue
  </code></pre>
  
  <p>Have my vim editor files been damaged/modified ? How can i fix the error detected while processing <code>/usr/share/vim/vimrc</code> ?</p>
  
  <p><code>/usr/share/vim/vimrc</code> config file contains the following</p>
  
  <pre><code>    " Configuration file for vim
  set modelines=0         " CVE-2007-2438
  
  " Normally we use vim-extensions. If you want true vi-compatibility
  " remove change the following statements
  set nocompatible        " Use Vim defaults instead of 100% vi compatibility
  set backspace=2         " more powerful backspacing
  set ai                  " auto indenting
  set history=100         " keep 100 lines of history
  set ruler               " show the cursor position
  syntax on               " syntax highlighting
  set hlsearch            " highlight the last searched term
  filetype plugin on      " use the file type plugins
  
  " When editing a file, always jump to the last cursor position
  autocmd BufReadPost *
   if ! exists("g:leave_my_cursor_position_alone") |
   if line("'"") &gt; 0 &amp;&amp; line ("'"") &lt;= line("$") |
   exe "normal g'"" |
   endif |
   endif
  
  " Don't write backup file if vim is being called by "crontab -e"
  au BufWrite /private/tmp/crontab.* set nowritebackup
  " Don't write backup file if vim is being called by "chpass"
  au BufWrite /private/etc/pw.* set nowritebackup
  </code></pre>