Gary Johnson <garyj...@spocom.com> writes:

>> Not some gnome terminal, KDE terminal or some other jive.. just a
>> regular xterm.
>
> That's how I use Vim, too.  My pasting works fine, like yours used
> to.  I compared by version information with yours and I didn't see
> any X- or mouse-related differences that I thought were relevant.
> I'll list the differences below anyway.  My Vim is also 7.2.411.

Thanks for a comprehensive post.  Lots of stuff to look at and I don't
know what 95 % of it does...... even though I've used vim more or less
continuously for some 12-13 yrs now.

mouse=a here too.  But I see the xterm versions are different.

I just use gentoo installer `emerge' and don't fuss with the compile
myself.  But I do have a fairly long .vimrc

It may just be cruft in that... I think I'll post it inline below.
Maybe someone will see a problem there... its certainly a sloppy mess.
I don't use half of those iab settings... maybe I'll clean them up in
the sweet bye and bye...

cat .vimrc
-------        ---------       ---=---       ---------      -------- 
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()
  "" ]
"" ]

"""" Folding
set foldmethod=syntax " By default, use syntax to determine folds
set foldlevelstart=99 " All folds open by default

set vb t_vb= " Disable all bells/flashing. 
set bs=2                " allow backspacing over everything in insert mode
"set ai                 " always set autoindenting on
" set rtp+=~/.vim/xpt

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
"" [HP 092809_225105 laststatus=2 jacks up ruler ]
set laststatus=2
"" [HP Kill the splash screen
  set shortmess+=I
"" ]
"" [HP 10/03/09_11:26:35 replaced set tabstop=3 with ts=2 sw=2 et   
""  From: Tim Chase <v...@tim.thechases.com> on vim list
""  Date: Sat, 03 Oct 2009 10:35:24 -0500
""  Message-ID: <4ac76f3c.6050...@tim.thechases.com>
  set ts=2 sw=2 et
  set tabstop=3
'"" ] 
set pastetoggle=<F4>

"" [HP 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
"" ]

"" [HP 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
"" ]
"" [HP 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 ==========
  nnoremap \tp :set invpaste paste?<CR>
  nmap <F4> \tp
  imap <F4> <C-O>\tp
"" ]

"" [HP 092809_230720  What the hell does this do
  :nmap \ve    :if &ve == ''   <Bar>
                       \   set ve=all  <Bar>
                       \ else          <Bar>
                       \   set ve=     <Bar>
                       \ endif         <bar>
                       \ set ve?       <Cr>
"" ]

"" [HP map z to act as a register selector eliminating the need to type
"" <shift><double quote>
  nnoremap z "z
"" ]

"" [HP 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>
"" ]

"" [HP Don't use Ex mode, use Q for formatting
  map Q gq
"" ]

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
"" [HP  Make Insert key non-operational
  imap <Ins> <Nop>
"" ]

"" ===== BEGIN iab ===========
iab sepr -------       -------       ---=---       -------      -------
"" ===== BEGIN Bash/Ksh  Stuff =============
iab kbase myscript=$(basename $0)
iab bbase myscript=$(basename $0)
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 %y%m%d_%H%M%S  #]")<cr><left><left><left>
iab ac>> ####>>>### Accumulative Notes ##########
iab ac<< ####<<<### Accumulative Notes ##########
iab hpev <C-R>=strftime("ev %y%m%d\n\nev")<cr><up> 
iab hpcomv <C-R>=strftime("\"\" [HP %m%d%y_%H%M%S ]")<cr><left>
iab hpd <space><space>print "hpdb  \n";<left><left><left><left><left><left>
"" ===== BEGIN Perl Stuff =============
"" print clause with new line (print $_ . "\n";
iab nl . "\n";<C-O>7h
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>
"open my $fh,'>',$var or die \"Cannot open $var: $!;  
iab popn open my $fh,'>',$var or die \"Cannot open $var: $!\";
"iab popt if($opt_) {
"iab pfori 
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 ptime  my 
($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst);<CR>($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst)
 =<CR>      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>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:%y%m%d_%H%M%S_%w]\n# &&")<cr><up><up><c-o>A

"" [HP 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

"" [ HP 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 %
"" [HP 093009_111107  
"" Also a good way to see the names of colors
"" vim knows about]
"" ] 
set background=dark
set nohlsearch

"" [HP 093009_104047  this one is put here to repair whatever plugin
"" xpt is doing to the statusline, where it shows `<' where line number
"" should be
  autocmd VimEnter * :set statusline&
"" ]





-- 
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Reply via email to