On Sat, Apr 19, 2014 at 2:25 PM, Gary Johnson <garyjohn@spocom.com> wrote:
On 2014-04-19, ping song wrote:
> On Thu, Apr 17, 2014 at 6:46 AM, Tim Chase wrote:
>
> On 2014-04-17 03:13, John Little wrote:
> > Shlomi Fish said:
> >
> > > it's possible the Ubuntu console vim packages don't have that
> > > functionality.
> >
> > No, after installing vim-gnome /etc/alternatives/vi and vim will
> > point to /usr/bin/vim.gtk, so the xterm clipboard (+) and selection
> > (*) should be working.
>
> It's possible that the alternatives didn't get updated. I *think*
> (Ubuntu being a Debian derivative, and this works on Debian) you can
> do
>
> sudo update-alternatives --config vi
>
> which will let you manually specify the binary to use. In this case,
> it *should* point to vim.gtk, so if it doesn't, you can repoint it.
>
> It would also help to know how the OP is invoking it: if Ping is
> invoking it as "vim.gtk" to obtain the correct version information,
> but then invokes it as "vi" or "vim", it might be using some other
> binary.
I think the reason that you see those registers only when using> thanks.
>
> I means the "+" and "*" register..
>
> It looks both vi and vim were linked to the right target -- vim.gnome:
>
>
> ping@ubuntu1404:~$ sudo update-alternatives --config vi
> [sudo] password for ping:
> There are 4 choices for the alternative vi (providing /usr/bin/vi).
>
> Selection Path Priority Status
> ------------------------------------------------------------
> * 0 /usr/bin/vim.gnome 60 auto mode
> 1 /usr/bin/vim.basic 30 manual mode
> 2 /usr/bin/vim.gnome 60 manual mode
> 3 /usr/bin/vim.gtk 50 manual mode
> 4 /usr/bin/vim.tiny 10 manual mode
>
>
> this is very strange -- I actually finally get it worked around, but with a
> weird way that myself still does not quite get it - but it works, only under
> gnu screen:
> as long as I have the following .screenrc , vim *+ register works, if I remove
> this .screenrc, the register gone...
> without gnu screen still no register * and +
>
> isn't it weird ???
>
>
> #record log in file session-year-month-date.screen.log
> logfile $HOME/temp/%t-%Y-%m%d-.screen.log
> #this doesn't work as expected
> log on
> #scrollback to 10k lines in cp/paste mode
> defscrollback 100000
> # hardstatus line
> hardstatus alwayslastline
> #hardstatus alwayslastline "%{Yk}%-w%{.Yk}%n %t%{-}%+w %=%{.w}"
> hardstatus string "%{= B}:%{= b}: %{= r}[ %{=b G}%H%{= r} ] %= %{=b b}%-w%{=rb
> db}%>%n %t%{-}%+w %=%{= r}[ %{G}%c %{M}%D %m-%d %{r}] %{= b}:%{B}:"
> # Make the xterm scroller work in screen, also works
> # with mouse scrollwheel(does not work...)
> #terminfo xterm*|rxvt ti@:te@
> # use audio bell
> #vbell off
> vbell on
> vbell_msg " Wuff ---- Wuff!! "
> #use zshell as default shell
> #shell zsh
> #for vim integration, seems no use
> maptimeout 5
>
> #caption always "%{+b Yk}%w"
>
> #looks these no much use...
> #bindkey -m ) eval "stuff ' '" "writebuf /tmp/sx" "!sh -c 'xsel -b < /tmp/sx'"
> #bind ( eval "stuff ' '" "!sh -c 'xsel -b > /tmp/sx'" "readbuf /tmp/sx"
>
> backtick 1 5 5 uptime
>
> setenv DISPLAY :0.0
screen is that last line, the one that sets DISPLAY. Without
DISPLAY in the environment, Vim thinks it is not running under X so
it does not enable any features that depend on X.
However, setting DISPLAY manually is not the correct solution. Your
system should set DISPLAY itself. If it is not setting DISPLAY
itself, you need to find out why and fix that.
And please don't top-post to this list.
Regards,
Gary
just figured out how to down-post from within gmail..
I just realized so weird that my *+ dissappear again, within or without GNU screen -- I think I just did some update and rebooted the PC...
I configured DISPLAY manually, no change...
ping@ubuntu1404:~$ export DISPLAY=:.0.0
ping@ubuntu1404:~$ echo $DISPLAY
:.0.0
ping@ubuntu1404:vim
NORMAL >> [N
:registers
--- Registers
"" sdfljsl^
"0 sdfljsl^
"1 Work1#^J
"2 Work1#^J
"3 Work1#^J
"4 Work1#^J
"5 Work1#^J
"6 /data/my
"7 /data/my
"8 ^J
"9 # [link]
"-
": register
"/ export
Press ENTER o
ping@ubuntu1404:~$ sudo update-alternatives --config vim
There are 3 choices for the alternative vim (providing /usr/bin/vim).
Selection Path Priority Status
------------------------------------------------------------
* 0 /usr/bin/vim.gnome 60 auto mode
1 /usr/bin/vim.basic 30 manual mode
2 /usr/bin/vim.gnome 60 manual mode
3 /usr/bin/vim.gtk 50 manual mode
VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Jan 2 2014 19:39:47)
Included patches: 1-52
Modified by pkg-vim-maintainers@lists.alioth.debian.org
Compiled by buildd@
Huge version with GTK2-GNOME GUI. Features included (+) or not (-):
+acl +clientserver +cscope +emacs_tags +folding +keymap +menu +mouse_netterm +netbeans_intg -python3 -sniff +tcl +virtualedit +
writebackup
+arabic +clipboard +cursorbind +eval -footer +langmap +mksession +mouse_sgr +path_extra +quickfix +startuptime +terminfo +visual +X11
+autocmd +cmdline_compl +cursorshape +ex_extra +fork() +libcall +modify_fname -mouse_sysmouse +perl +reltime +statusline +termresponse +visualextra -xfontset
+balloon_eval +cmdline_hist +dialog_con_gui +extra_search +gettext +linebreak +mouse +mouse_urxvt +persistent_undo +rightleft -sun_workshop +textobjects +viminfo +xim
+browse +cmdline_info +diff +farsi -hangul_input +lispindent +mouseshape +mouse_xterm +postscript +ruby +syntax +title +vreplace +
xsmp_interact
++builtin_terms +comments +digraphs +file_in_path +iconv +listcmds +mouse_dec +multi_byte +printer +scrollbind +tag_binary +toolbar +wildignore +
xterm_clipboard
+byte_offset +conceal +dnd +find_in_path +insert_expand +localmap +mouse_gpm +multi_lang +profile +signs +tag_old_static +user_commands +wildmenu -
xterm_save
+cindent +cryptv -ebcdic +float +jumplist +lua -mouse_jsbterm -mzscheme +python +smartindent -tag_any_white +vertsplit +windows +xpm
system vimrc file: "$VIM/vimrc"
user vimrc file: "$HOME/.vimrc"
2nd user vimrc file: "~/.vim/vimrc"
user exrc file: "$HOME/.exrc"
system gvimrc file: "$VIM/gvimrc"
user gvimrc file: "$HOME/.gvimrc"
2nd user gvimrc file: "~/.vim/gvimrc"
system menu file: "$VIMRUNTIME/menu.vim"
fall-back for $VIM: "/usr/share/vim"
Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_GTK -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/
pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/libpng12 -I/usr/include/harfbuzz -pthread -DORBIT2=1 -
D_REENTRANT -I/usr/include/libgnomeui-2.0 -I/usr/include/libart-2.0 -I/usr/include/gconf/2 -I/usr/include/gnome-keyring-1 -I/usr/include/libgnome-2.0 -I/usr/include/libbonoboui-2.0 -I/usr/include/libgnomecanvas-2.0 -I/usr/include/
gtk-2.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/gnome-vfs-2.0 -I/usr/lib/x86_64-linux-gnu/gnome-vfs-2.0/include -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/usr/include/glib-2.0 -I/usr/lib/x86_64-
linux-gnu/glib-2.0/include -I/usr/include/orbit-2.0 -I/usr/include/libbonobo-2.0 -I/usr/include/bonobo-activation-2.0 -I/usr/include/libxml2 -I/usr/include/pango-1.0 -I/usr/include/gail-1.0 -I/usr/include/harfbuzz -I/usr/include/
freetype2 -I/usr/include/atk-1.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/cairo -I/usr/include/gio-unix-2.0/ -I/usr/include/pixman-1 -I/usr/include/libpng12 -g -O2 -fstack-protector --param=ssp-buffer-size=4
Wformat -Werror=format-security -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -I/usr/include/tcl8.6 -D_REENTRANT=1 -D_THREAD_SAFE=1 -D_LARGEFILE64_SOURCE=1
Linking: gcc -L. -Wl,-Bsymbolic-functions -Wl,-z,relro -rdynamic -Wl,-export-dynamic -Wl,-E -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,--as-needed -o vim -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -
lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfontconfig -lgobject-2.0 -lglib-2.0 -lfreetype -lgnomeui-2 -lSM -lICE -lbonoboui-2 -lgnomevfs-2 -lgnomecanvas-2 -lgnome-2 -lpopt -lbonobo-2 -lbonobo-activation -lORBit-2 -
lart_lgpl_2 -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfontconfig -lfreetype -lgconf-2 -lgthread-2.0 -lgmodule-2.0 -lgobject-2.0 -lglib-2.0 -lSM -lICE -
lXpm -lXt -lX11 -lXdmcp -lSM -lICE -lm -ltinfo -lnsl -lselinux -lacl -lattr -lgpm -ldl -L/usr/lib -llua5.2 -Wl,-E -fstack-protector -L/usr/local/lib -L/usr/lib/perl/5.18/CORE -lperl -ldl -lm -lpthread -lcrypt -L/usr/lib/
python2.7/config-x86_64-linux-gnu -lpython2.7 -lpthread -ldl -lutil -lm -Xlinker -export-dynamic -Wl,-O1 -Wl,-Bsymbolic-functions -L/usr/lib/x86_64-linux-gnu -ltcl8.6 -ldl -lz -lpthread -lieee -lm -lruby-1.9.1 -lpthread -lrt -
ldl -lcrypt -lm -L/usr/lib
--
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
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment