Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The default global clipboard sometimes stops working in Vim #60

Open
matemat13 opened this issue Oct 15, 2018 · 4 comments
Open

The default global clipboard sometimes stops working in Vim #60

matemat13 opened this issue Oct 15, 2018 · 4 comments

Comments

@matemat13
Copy link
Collaborator

Symptoms: Copy some text e.g. in Firefox. Go to Vim or Athame shell in Normal mode, press p - a random thing gets pasted (not the one which was copied). Using the Vim sequence "+p or `"*p" gets the desired result (pasting the copied text). This seems to affect all Vim instances - old and new - after some time of normal working.

Expected behavior: The global clipboard should be used by default in linux-setup Vim all the time.

Ways to reproduce: Unknown.

@klaxalk
Copy link
Owner

klaxalk commented Oct 16, 2018

Ok, I have found out, that the problem with clipboard and athame rises from "Vim". If you have vim, installed from repositories, it does not have the "--servename" option, which probably causes the problem. So test, which vim you have (:version). If it is 8.0, its wrong. Then install vim using the ./install.sh and report pls.

@klaxalk
Copy link
Owner

klaxalk commented Oct 16, 2018

This might happen because I added the "uninstall vim" option to the install script of "neovim". However, we still need vim for athame... so I am removing it now.

@matemat13
Copy link
Collaborator Author

... test, which vim you have (:version) ...

neovim version:

:version                                                                                                                                                                                                                                       
NVIM v0.3.2-dev                                                                                                                                                                                                                                
Build type: RelWithDebInfo                                                                                                                                                                                                                     
Lua 5.1                                                                                                                                                                                                                                        
Compilation: /usr/bin/cc -g -O2 -fdebug-prefix-map=/build/neovim-Y37o5P/neovim-0.3.0~ubuntu1+git201808202018-768bc68-479a1d0=. -fstack-protector-strong -Wformat -Werror=format-security -Wconversion -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -O2
 -g -DMIN_LOG_LEVEL=3 -Og -g -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wimplicit-fallthrough -Wvla -fstack-protector-strong -fdiagnostics-color=auto -Wno-array-bounds -DINCLUDE_GENERATED_DECLARATIONS -D_
GNU_SOURCE -DNVIM_MSGPACK_HAS_FLOAT32 -DNVIM_UNIBI_HAS_VAR_FROM -I/build/neovim-Y37o5P/neovim-0.3.0~ubuntu1+git201808202018-768bc68-479a1d0/build/config -I/build/neovim-Y37o5P/neovim-0.3.0~ubuntu1+git201808202018-768bc68-479a1d0/src -I/bui
ld/neovim-Y37o5P/neovim-0.3.0~ubuntu1+git201808202018-768bc68-479a1d0/.deps/usr/include -I/usr/include -I/build/neovim-Y37o5P/neovim-0.3.0~ubuntu1+git201808202018-768bc68-479a1d0/build/src/nvim/auto -I/build/neovim-Y37o5P/neovim-0.3.0~ubun
tu1+git201808202018-768bc68-479a1d0/build/include                                                                                                                                                                                              
Compiled by buildd@lgw01-amd64-044                                                                                                                                                                                                             
                                                                                                                                                                                                                                               
Features: +acl +iconv +jemalloc +tui                                                                                                                                                                                                           
See ":help feature-compile"                                                                                                                                                                                                                    
                                                                                                                                                                                                                                               
   system vimrc file: "$VIM/sysinit.vim"                                                                                                                                                                                                       
  fall-back for $VIM: "/usr/share/nvim"

vim version:

:version
VIM - Vi IMproved 8.1 (2018 May 17, compiled Sep  4 2018 10:46:56)
Compiled by matous@UltraPrcek-Linux
Huge version with GTK2 GUI.  Features included (+) or not (-):
+acl               +clientserver      +dialog_con_gui    +find_in_path      +keymap            +modify_fname      +multi_byte        +profile           +statusline        +textobjects       +wildignore
+arabic            +clipboard         +diff              +float             +lambda            +mouse             +multi_lang        -python            -sun_workshop      +timers            +wildmenu
+autocmd           +cmdline_compl     +digraphs          +folding           +langmap           +mouseshape        -mzscheme          +python3           +syntax            +title             +windows
-autoservername    +cmdline_hist      +dnd               -footer            +libcall           +mouse_dec         +netbeans_intg     +quickfix          +tag_binary        +toolbar           +writebackup
+balloon_eval      +cmdline_info      -ebcdic            +fork()            +linebreak         -mouse_gpm         +num64             +reltime           +tag_old_static    +user_commands     +X11
+balloon_eval_term +comments          +emacs_tags        +gettext           +lispindent        -mouse_jsbterm     +packages          +rightleft         -tag_any_white     +vertsplit         -xfontset
+browse            +conceal           +eval              -hangul_input      +listcmds          +mouse_netterm     +path_extra        -ruby              -tcl               +virtualedit       +xim
++builtin_terms    +cryptv            +ex_extra          +iconv             +localmap          +mouse_sgr         -perl              +scrollbind        +termguicolors     +visual            +xpm
+byte_offset       +cscope            +extra_search      +insert_expand     -lua               -mouse_sysmouse    +persistent_undo   +signs             +terminal          +visualextra       +xsmp_interact
+channel           +cursorbind        +farsi             +job               +menu              +mouse_urxvt       +postscript        +smartindent       +terminfo          +viminfo           +xterm_clipboard
+cindent           +cursorshape       +file_in_path      +jumplist          +mksession         +mouse_xterm       +printer           +startuptime       +termresponse      +vreplace          -xterm_save
   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"
       defaults file: "$VIMRUNTIME/defaults.vim"
    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/gio-unix-2.0/ -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -
I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/includ
e -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/libpng16   -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1
Linking: gcc   -L/usr/local/lib -Wl,--as-needed -o vim   -lgtk-x11-2.0 -lgdk-x11-2.0 -lpangocairo-1.0 -latk-1.0 -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lpangoft2-1.0 -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lfontconfig -lfreetype -lSM -lICE -lXpm
 -lXt -lX11 -lXdmcp -lSM -lICE  -lm -ltinfo -lnsl  -lselinux  -ldl     -L/usr/lib/python3.5/config-3.5m-x86_64-linux-gnu -lpython3.6m

I'll try pulling linux-setup and rerunning the install script for neovim and vim.

@klaxalk
Copy link
Owner

klaxalk commented Oct 18, 2018

Hmm, if it has a problem even with Vim, then the solution might be more complicated. I will try to solve it..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants