Something has happened that is causing the ruler not to diplay the
normal line number and column number.  

I'm not sure when it happened but had to be recent.  I tried going
back a couple mnths in the revisions of .vimrc  but sourcing that and
I still don't see the ruler... all I see is a percentage of file
figure.

The biggest thing I've done recently is start using gvim for some
things, including having a separate .gvimrc.

My .vimrc is posted below... is there something there that is blocking
the ruler from being displayed.

set nocompatible        " Use Vim defaults (much better!)
"# [HP 09/24/09 10:03  `filetype plugin on' is here from the README
" on perl-support.zip from:
" http://www.vim.org/scripts/script.php?script_id
filetype plugin on " 
" # [HP 09/24/09 16:05  Ditto with the time/date settings,, 
" perl-support/templates/* uses them]
" orig let g:Perl_FormatDate            = '%D'
" orig let g:Perl_FormatTime            = '%H:%M'
" orig let g:Perl_FormatYear            = 'year %Y'
let g:Perl_FormatDate            = '%m%d%y'
let g:Perl_FormatTime            = '%H%M%S'
let g:Perl_FormatYear            = 'year %Y'

filetype indent on " load indent.vim
" # [HP 09/24/09 16:07  This part below is from `sc' on vim list
" It's a way to get a new perlscript chmodded 755 but still let
" the perl-support plugins work for inserting stuff.
" From: sc <tooth...@swbell.net>
" Subject: Re: How to alter the behavior of perl-support plugin
" Newsgroups: gmane.editors.vim
" To: vim_use@googlegroups.com
" Date: Thu, 24 Sep 2009 15:47:11 -0500
" Message-ID: <200909241547.11778.tooth...@swbell.net>]
" http://vim.wikia.com/wiki/Setting_file_attributes_without_reloading_a_buffer
function! SetExecutableBit()
    if &modified
        write
    endif
"    let fname = expand("%:p")
"    checktime
"    execute "au FileChangedShell " . fname . " :echo"
"    silent !chmod 755 %
"    checktime
    let ta = system("chmod 755 " . expand('%'))
"    execute "au! FileChangedShell " . fname
endfunction
command! Xbit call SetExecutableBit()
" # ]
set bs=2                " allow backspacing over everything in insert mode
"set ai                 " always set autoindenting on
set backup              " keep a backup file
set viminfo='20,\"100   " read/write a .viminfo file, don't store more
                        " than 50 lines of registers
set history=200         " keep 50 lines of command line history
set ruler               " show the cursor position all the time
set laststatus=2
"set virtualedit=all
" Kill the splash screen
set shortmess+=I
set tabstop=3
"# [HP 11/13/05 13:37  This cause a big problem?] set paste
set pastetoggle=<F4>

" Switch syntax highlighting on, when the terminal has colors
" Also switch on highlighting the last used search pattern.
if &t_Co > 2 || has("gui_running")
  syntax on
endif

" Only do this part when compiled with support for autocommands.
if has("autocmd")

 " In text files, always limit the width of text to 78 characters
 autocmd BufRead *.txt  set tw=72
 autocmd BufRead .vimrc set tw=72
 augroup cprog
  " Remove all cprog autocommands
  au!

  " When starting to edit a file:
  "   For C and C++ files set formatting of comments and set C-indenting on.
  "   For other files switch it off.
  "   Don't change the order, it's important that the line with * comes first.
  autocmd FileType *      set formatoptions=tcql nocindent comments&
  autocmd FileType c,cpp  set formatoptions=croql cindent 
comments=sr:/*,mb:*,el:*/,://
 augroup END

"" Set these so we get sensible formating in these files with no tabs
"" and a sensible shiftwidth
:au FileType perl,awk,sh,c      set shiftwidth=2 expandtab
""======== BEGIN mappings ==========
""map  U <Home>v<End>y :!lynx 
nnoremap \tp :set invpaste paste?<CR>
nmap <F4> \tp
imap <F4> <C-O>\tp
:nmap \ve    :if &ve == ''   <Bar>
                     \   set ve=all  <Bar>
                     \ else          <Bar>
                     \   set ve=     <Bar>
                     \ endif         <bar>
                     \ set ve?       <Cr>
"" map z to act as a register selector eliminating the need to type
"" <shift><double quote>
nnoremap z "z
" Make p in Visual mode replace the selected text with the "" register.
vnoremap p <Esc>:let current_reg = @"<CR>gvdi<C-R>=current_reg<CR><Esc>
" Don't use Ex mode, use Q for formatting
map Q gq
"nmap <F4> 45|
map ,d "=strftime("%c")<cr>p 
nmap <F3> :g/^\(CVS:\)\( $\\|.*--[^ ]*$\\|.*Lines beginning\)/d<CR>:%s/^CVS: //
nmap <F10> :.,$s/^/## /
map <F8> :s/^## //<CR>j
map <F7> :s/^/## /<CR>j
"" Make Insert key non-operational
imap <Ins> <Nop>
"" ===== Begin iab ===========
"" ===== BEGIN vimrc =======
iab hpcomv <C-R>=strftime("\"\" [HP %m%d%y_%H%M%S ]")<cr><left>
"" ===== END vimrc =======
"" ===== Begin Bash/Ksh  Stuff =============
iab kbase myscript=$(basename $0)
iab mys \`$myscript'
iab bng #!/bin/sh
iab bngk #!/bin/ksh
iab bngb #/usr/bin/bash
"iab HERE usage () {<cr>cat >&2 <<EOM<cr><cr>EOM<cr>}# end usage#"
iab HERE usage(){<cr>cat >&2 <<EOM<cr>EOM<cr>} #end usage<up><up><c-o>o<left>
iab bget while getopts "flags" opt; do<cr>       case "$opt" in<cr><cr>   
esac<cr>done
iab hpcom <C-R>=strftime("# [HP %m%d%y_%H%M%S ]")<cr><left>
iab hpd <space><space><space>print "hpdb  
\n";<left><left><left><left><left><left>
iab shget ## ==== BEGIN GETOPTS SECTION ====<CR>while getopts " " opt;do<CR>    
 case "$opt" in<CR>   A)<CR><CR>   ;;<CR>   B)<CR><CR>   ;;<C-O>?" "?s+1<CR>  
"" ===== Begin Perl Stuff =============
iab pfile use File::Find;<CR><CR>##  $File::Find::dir  =  /some/Path/<CR>##  $_ 
               = foo.ext<CR>##  $File::Find::name  = 
/some/path/foo.ext<CR><CR>find(\&wanted, @srdir);<CR>sub wanted 
{<CR>}<left><left>

iab pds sub PaddedDateStr {<CR>   my($mon,$mday,$year,$hour,$min,$sec,$wday) 
=<CR>   (localtime(time))[4,3,5,2,1,0,6];<CR>   $year -= 100;<CR>   ## prints 
05 (with %02d)<CR>   $mon  += 1;<CR>   my  $PaddedDateStr = 
sprintf"%02d%02d%02d%s%02d%02d%02d%s%d",<CR>   
$mon,$mday,$year,"_",$hour,$min,$sec,"_",$wday;<CR>   return 
$PaddedDateStr;<CR>}
iab  pbase my $myscript;<CR>($myscript = $0) =~ s/^.*\///;<CR>
iab ptm  my 
($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst);<CR>($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst)
 = localtime(time);<CR>
iab png #!/usr/local/bin/perl -w<c-o>a
iab ulib use lib qw(/home/reader/scripts/lib); ## location of dater.pm
iab qp print \n"; <C-O>4h
iab pget ## ==== BEGIN Getopts section ====<CR>## Declare vars inside 
our()<CR>our ( );<CR>use Getopt::Std;<CR>my $optstr =" 
";<CR>getopts($optstr);<C-O>?" "?s+1<CR>
iab popt 
if($opt_){<CR><CR>}<up><up><right><right><right><right><right><right><right>
iab ptrip    print "Usage tripped at <" .  __LINE__ . ">\n";
iab pmy \`$myscript '
""iab pdie or die ": $!";<ESC>hhhhhs
iab pdie or die "Can't open $ : $!";<C-O>6h
iab par my @ar = ("one,","two","three","four","five");<CR>
iab pwh while(<>){}
iab pel elsif(){<CR>}<C-O>?()?s<CR>
iab pif if(){<CR>}<C-O>?()?s<CR>
iab pnarg if(!...@argv \|\| $ARGV[0] eq "help"){<CR>   usage();<CR>   
exit;<CR>}<C-O><CR>
iab parg if(@ARGV){<CR><CR>}<C-O>k
iab pn . "\n";
iab pst use strict;<CR>use warnings;
iab pu sub usage {<CR>   print 
"<CR><CR>Purpose:<CR>Usage:<CR><CR>";<CR>}<CR><ESC>kkkkA
"" ==== End Perl stuff ========================
iab ydate <C-R>=strftime("%b %d %T %Y")<cr>
iab sdate <C-R>=strftime("%s")<cr>
iab vkeyz <C-R>=strftime("\" Keywords:\n\" %b %d %T %Y %w\n\" 
&&")<cr><up><up><c-o>A
iab skeyz <C-R>=strftime("# Keywords:\n\#                  
[Keydate:%m%d%Y_%T_%w]\n# &&")<cr><up><up><c-o>A
"This is disabled, because it changes the jumplist.  Can't use CTRL-O to go
" back to positions in previous files more than once.
 if 0
  " When editing a file, always jump to the last cursor position.
  " This must be after the uncompress commands.
   autocmd BufReadPost * if line("'\"") && line("'\"") <= line("$") | exe 
"normal `\"" | endif
 endif

" [hp added from section at :he color [xterm ]May 20 2000] 
endif " has("autocmd")
 
 if &term =~ "xterm"
        if has("terminfo")
                set t_Co=8
                set t_Sf=<Esc>[3%p1%dm
                set t_Sb=<Esc>[4%p1%dm
        else
                set t_Co=8
                :set t_Sf=<Esc>[3%dm
                :set t_Sb=<Esc>[4%dm
        :endif
 endif
 
""  Elisp
if has("fname_case")
   au BufNewFile,BufRead *.el,*.elc,.emacs,.gnus               set ft=lisp
else
   au BufNewFile,BufRead *.el                                  set ft=lisp
endif

"" [HP M4]
if has("fname_case")
   au BufNewFile,BufRead *.m4                set ft=sh
else
   au BufNewFile,BufRead *.m4                set ft=sh
endif

"  To test your color setup, a file has been included in the Vim distribution.
"  To use it, execute these commands:
"  >  :e $VIMRUNTIME/syntax/colortest.vim
"  >  :so %
""  
set background=dark
set nohlsearch
"" Functions
" Use keywords Skeyz function `vim  -c 'call Skeyz()' myfile'
"" function Skeyz()
""    $put=''
""    put ='# Keywords: '
""    put =strftime('#                  [Keydate:%m%d%Y_%T_%w]')
""    put ='#'
""    put ='# &&'
""    normal "Gkkk$"
""    startinsert
"" endfunction
"" 
function! Hex2Dec()
    let lstr = getline(".")
    let hexstr = matchstr(lstr, '0x[a-fA-F0-9]\+')
    while hexstr != ""
        let hexstr = hexstr + 0
        exe 's#0x[a-fA-F0-9]\+#'.hexstr."#"
        let lstr = substitute(lstr, '0x[a-fA-F0-9]\+', hexstr, "")
        let hexstr = matchstr(lstr, '0x[a-fA-F0-9]\+')
    endwhile
endfunction

" =====     BEGIN  Only apply this in gvim    =====
if has("gui_running")
        colors peachpuff
        set mouse=a
        set guifont=fixed\ Bold\ 8
endif
" =====     END  Only apply this in gvim    =====


--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to