Sunday, May 2, 2010

Stair stepping

My setup: Linux (gentoo) 2.6.33-gentoo
vim VIM - Vi IMproved 7.2
compile info inlined at the end of this post

For some time now I've been noticing when I paste scripting code
into vim I'm getting the stair stepping effect.

It didn't used to a few mnts back..

I know about paste on/off in vim and have the toggle set to F4.
So I have to toggle paste on, do the paste and then toggle paste off
since having paste on messes with numerous other settings.

However, there was a time, maybe a few mnths ago, when all that
toggling was not necessary.

Maybe I lost a few lines out of ~/.vimrc or maybe I didn't compile
vim the same... I don't know what the cause is but wondered if anyone
here knows if there is a way to set vim up (other than paste on/off)
so that pasting can happen without stair stepping.

Here is an example of what I'm talking about.

cut/copy this paragraph
my %h1 = (
f1 => "./b/f1",
fa => "./b/c/fa",
f2 => "./b/l/c/f2",
fb => "./b/g/f/r/fb"
);


paste it into an open vim file in insert mode.

my %h1 = (
f1 => "./b/f1",
fa => "./b/c/fa",
f2 => "./b/l/c/f2",
fb => "./b/g/f/r/fb"
);
------- --------- ---=--- --------- --------
VIM - Vi IMproved 7.2 (2008 Aug 9, compiled Apr 21 2010 22:01:44)
Included patches: 1-411
Modified by Gentoo-7.2.411
Compiled by root@reader
Huge version without GUI. Features included (+) or not (-):
+arabic +autocmd -balloon_eval -browse ++builtin_terms +byte_offset +cindent
+clientserver +clipboard +cmdline_compl +cmdline_hist +cmdline_info +comments +cryptv
+cscope +cursorshape +dialog_con +diff +digraphs -dnd -ebcdic +emacs_tags +eval
+ex_extra +extra_search +farsi +file_in_path +find_in_path +float +folding -footer
+fork() +gettext -hangul_input +iconv +insert_expand +jumplist +keymap +langmap +libcall
+linebreak +lispindent +listcmds +localmap +menu +mksession +modify_fname +mouse
-mouseshape +mouse_dec +mouse_gpm -mouse_jsbterm +mouse_netterm -mouse_sysmouse
+mouse_xterm +multi_byte +multi_lang -mzscheme -netbeans_intg -osfiletype +path_extra
+perl +postscript +printer +profile +python +quickfix +reltime +rightleft -ruby
+scrollbind +signs +smartindent -sniff +startuptime +statusline -sun_workshop +syntax
+tag_binary +tag_old_static -tag_any_white -tcl +terminfo +termresponse +textobjects
+title -toolbar +user_commands +vertsplit +virtualedit +visual +visualextra +viminfo
+vreplace +wildignore +wildmenu +windows +writebackup +X11 +xfontset -xim +xsmp_interact
+xterm_clipboard -xterm_save
system vimrc file: "/etc/vim/vimrc"
user vimrc file: "$HOME/.vimrc"
user exrc file: "$HOME/.exrc"
fall-back for $VIM: "/usr/share/vim"
Compilation: i686-pc-linux-gnu-gcc -c -I. -Iproto -DHAVE_CONFIG_H -O2 -march=i686 -pi
pe -D_FORTIFY_SOURCE=1 -fstack-protector -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -
I/usr/lib/perl5/5.10.1/i686-linux/CORE -I/usr/include/python2.6 -pthread
Linking: i686-pc-linux-gnu-gcc -Wl,-E -Wl,-O1 -o vim -lXt -lcurses -lacl -lgpm -W
l,-E -fstack-protector -L/usr/lib/perl5/5.10.1/i686-linux/CORE -lperl -lutil -lc -L/usr
/lib/python2.6/config -lpython2.6 -lutil -lm -Xlinker -export-dynamic

--
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

No comments: