Opened 7 years ago

Closed 6 years ago

Last modified 6 years ago

#55307 closed defect (worksforme)

vim @8.0.1207_0+huge+python27+python35+ruby+ruby18+x11: Clipboard support not working

Reported by: rubendibattista (Ruben Di Battista) Owned by: raimue (Rainer Müller)
Priority: Normal Milestone:
Component: ports Version: 2.4.2
Keywords: Cc:
Port: vim

Description

Hello,

I just switched to the +x11 variants of vim port since I needed +clientserver. This variant requires xQuartz to be executing. The only problem is that I lost clipboard support. Is this something normal? If I switch back to vim @8.0.1207_0+huge+python27+python35+ruby+ruby18 the clipboard is back working ok. In theory the clipboard of xQuartz should be shared with the OSX system (I checked under Preferences > Clipboard).

Change History (6)

comment:1 Changed 7 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: raimue@… removed
Owner: set to raimue
Status: newassigned

comment:2 Changed 7 years ago by raimue (Rainer Müller)

I cannot reproduce the problem. My XQuartz is configured to share both PRIMARY and CLIPBOARD with the macOS pasteboard. When running vim +x11, yanks like "*yy and also "+yy all go to the macOS pasteboard, which means I can paste the yanked text using Cmd+V in another application. Could you be more specific on what does not work for you?

comment:3 Changed 7 years ago by rubendibattista (Ruben Di Battista)

Hello thanks for your prompt reply,

Actually I tried again. Reactivated the +x11 variant. “+y does not copy in the system clipboard. I also have configured xQuartz with clipboard sharing for PRIMARY and CLIPBOARD. I’m on 10.12.6. If I switch back to the vim without +x11 variant, clipboard yank and paste works correctly.

I’ll try to re-install xQuartz. If you tell me what I can do to give you more details, I’ll do it with pleasure.

comment:4 Changed 7 years ago by rubendibattista (Ruben Di Battista)

Maybe related to some plugin?

" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')

" let Vundle manage Vundle, required
Plugin 'VundleVim/Vundle.vim'

" The following are examples of different formats supported.
" Keep Plugin commands between vundle#begin/end.
" plugin on GitHub repo
" Plugin 'tpope/vim-fugitive'
" plugin from http://vim-scripts.org/vim/scripts.html
" Plugin 'L9'
" Git plugin not hosted on GitHub
" Plugin 'git://git.wincent.com/command-t.git'
" git repos on your local machine (i.e. when working on your own plugin)
" Plugin 'file:///home/gmarik/path/to/plugin'
" The sparkup vim script is in a subdirectory of this repo called vim.
" Pass the path to set the runtimepath properly.
" Plugin 'rstacruz/sparkup', {'rtp': 'vim/'}
" Install L9 and avoid a Naming conflict if you've already installed a
" different version somewhere else.
" Plugin 'ascenator/L9', {'name': 'newL9'}

"-------------- PLUGIN ENABLED START HERE ----------------

" Nice coloring
Plugin 'altercation/vim-colors-solarized'

" Sensible Config for vim
Plugin 'tpope/vim-sensible'

" Vim Jinja
Plugin 'Glench/Vim-Jinja2-Syntax'

" Python Mode
Plugin 'python-mode/python-mode'

"Syntastic
Plugin 'vim-syntastic/syntastic'

"SimpylFold
Plugin 'tmhedberg/SimpylFold'

" Track the engine.
Plugin 'SirVer/ultisnips'

" Snippets are separated from the engine. Add this if you want them:
Plugin 'honza/vim-snippets'

" Powerline
Plugin 'powerline/powerline', {'rtp': 'powerline/bindings/vim/'}

" Emmet HTML 
Plugin 'mattn/emmet-vim'

"scrooloose/nerdtree
Plugin 'scrooloose/nerdtree'

" Match html tags
Plugin 'Valloric/MatchTagAlways'

" Autocomplete
Plugin 'Valloric/YouCompleteMe'

" LaTeX
Plugin 'lervag/vimtex'


" All of your Plugins must be added before the following line
call vundle#end()            " required
filetype plugin indent on    " required
" To ignore plugin indent changes, instead use:
"filetype plugin on
"
" Brief help
" :PluginList       - lists configured plugins
" :PluginInstall    - installs plugins; append `!` to update or just :PluginUpdate
" :PluginSearch foo - searches for foo; append `!` to refresh local cache
" :PluginClean      - confirms removal of unused plugins; append `!` to auto-approve removal
"
" see :h vundle for more details or wiki for FAQ
" Put your non-Plugin stuff after this line
"
"
"

" ==== General Configuration === 

"English Language
let $LANG = 'en_US'

set backspace=indent,eol,start
set nocompatible              " be iMproved, required
filetype off                  " required
set mouse=a		              " Mouse mode
syntax enable		          " Syntax Coloring
set background=dark           " 
silent! colorscheme solarized

"Shortkey for NerdTree
map <C-n> :NERDTreeToggle<CR>

"Powerline always on
set laststatus=2

"Spaces instead of tabs
set expandtab
set tabstop=4
set shiftwidth=4

"Colocolumn
set colorcolumn=79

"==== YouCompleteMe ====
let g:ycm_server_python_interpreter = '/opt/local/bin/python'

"==== Python Mode ====
let g:pymode_rope_completion = 0
let g:pymode_rope_complete_on_dot = 0
let g:pymode_folding = 0

"==== UltiSnips =====
" Trigger configuration. Do not use <tab> if you use https://github.com/Valloric/YouCompleteMe.
let g:UltiSnipsExpandTrigger="<c-j>"
let g:UltiSnipsJumpForwardTrigger="<c-w>"
let g:UltiSnipsJumpBackwardTrigger="<c-b>"
let g:UltiSnipsEditSplit="vertical"

"=== Syntastic ====
let g:syntastic_always_populate_loc_list = 1
let g:syntastic_mode_map = { "passive_filetypes": ["python"] }

comment:5 Changed 6 years ago by raimue (Rainer Müller)

Resolution: worksforme
Status: assignedclosed

Sorry, but without more information I cannot take any actions for this ticket. I am closing it now, but please reopen the ticket with more information or a way to reproduce the issue if it still exists.

comment:6 Changed 6 years ago by rubendibattista (Ruben Di Battista)

The issue is not there anymore. Thanks for the help!

Note: See TracTickets for help on using tickets.