Code Monkey home page Code Monkey logo

fakeclip.neovim's Introduction

This is a provider for an the clipboard, with support for X and tmux
This works for windows, and mac systems.

If you are running in X The + and * register will map to the X clipboards

If you are running w/o X and with tmux the + and * registers will map to the tmux clipboard

to enable tmux to be mapped to the + register enable

let g:vim_fakeclip_tmux_plus=1 

fakeclip.neovim's People

Contributors

cazador481 avatar zchee avatar mizuchi avatar

Stargazers

tickz avatar 倔强的贝吉塔 avatar Jayce avatar Mike Dacre avatar boggs ⚓ avatar Pablo Hernandez-Cerdan avatar Anderson Bravalheri avatar Dom Delnano avatar Bryan Hyshka avatar Josh Teneycke avatar Alexey Aksenov avatar  avatar Chase Colman avatar Alexander Jeurissen avatar Guillaume Clochard avatar Ben Batha avatar Josh Deere avatar Charles Brière avatar Che-Huai Lin avatar Chris Watson avatar Jordi Collell avatar  avatar Konstantin Shmelkov avatar Stanimir Mladenov avatar Jason Anderson avatar Henry John Kupty avatar Henning Dickten avatar Christian Geier avatar

Watchers

 avatar James Cloos avatar  avatar  avatar

Forkers

lijingjiang

fakeclip.neovim's Issues

Does not correctly map `*` register when in tmux session

The * register doesn't seem to be being set ever in my neovim instance.

The + register is properly set to the X clipboard when not in a tmux session, but the * register does not map to anything, I get a message the The register is +. In a tmux session, it seems that the * register is still not being set, but the + register now maps just fine to the tmux register.

Something is going on with the provider#clipboard#Executable, see the health checks below.

:version:

 NVIM v0.2.3-708-g77286915a                                                                                                                                                                                          
Build type: RelWithDebInfo                                                                                                                                                                                          
LuaJIT 2.0.5                                                                                                                                                                                                        
Compilation: /usr/bin/cc -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -Wconversion -DNVIM_MSGPACK_HAS_FLOAT32 -DNVIM_UNIBI_HAS_VAR_FROM -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 -DINCLUDE_GENERATED_DECLARATIONS -D_GNU_SOURCE -I/tmp/yaourt-tmp-dacre/aur-neovim
-git/src/neovim-git/build/config -I/tmp/yaourt-tmp-dacre/aur-neovim-git/src/neovim-git/src -I/usr/include -I/tmp/yaourt-tmp-dacre/aur-neovim-git/src/neovim-git/build/src/nvim/auto -I/tmp/yaourt-tmp-dacre/aur-neov
im-git/src/neovim-git/build/include                                                                                                                                                                                 
Compiled by dacre@esmeralda                                                                                                                                                                                         
                                                                                                                                                                                                                    
Features: +acl +iconv +jemalloc +tui                                                                                                                                                                                
See ":help feature-compile"                                                                                                                                                                                         
                                                                                                                                                                                                                    
   system vimrc file: "$VIM/sysinit.vim"                                                                                                                                                                            
  fall-back for $VIM: "/usr/share/nvim"

:checkhealth with this plugin installed:

                                                                                                                                                                                                                    
health#nvim#check                                                                                                                                                                                                   
========================================================================                                                                                                                                            
## Configuration                                                                                                                                                                                                    
  - OK: no issues found                                                                                                                                                                                             
                                                                                                                                                                                                                    
## Performance                                                                                                                                                                                                      
  - OK: Build type: RelWithDebInfo                                                                                                                                                                                  
                                                                                                                                                                                                                    
## Remote Plugins                                                                                                                                                                                                   
  - OK: Up to date                                                                                                                                                                                                  
                                                                                                                                                                                                                    
## terminal                                                                                                                                                                                                         
  - INFO: key_backspace (kbs) terminfo entry: key_backspace=^H                                                                                                                                                      
  - INFO: key_dc (kdch1) terminfo entry: key_dc=\E[3~                                                                                                                                                               
  - INFO: $VTE_VERSION='5003'                                                                                                                                                                                       
  - INFO: $COLORTERM='truecolor'                                                                                                                                                                                    
                                                                                                                                                                                                                    
## tmux                                                                                                                                                                                                             
  - OK: escape-time: 0ms                                                                                                                                                                                            
  - INFO: $TERM: screen-256color                                                                                                                                                                                    
                                                                                                                                                                                                                    
health#provider#check                                                                                                                                                                                               
========================================================================                                                                                                                                            
  - ERROR: Failed to run healthcheck for "provider" plugin. Exception:                                                                                                                                              
    function health#check[21]..health#provider#check[1]..<SNR>132_check_clipboard, line 10                                                                                                                          
    Vim(let):E117: Unknown function: provider#clipboard#Executable

:checkhealth with the plugin removed:

                                                                                                                                                                                                                    
health#nvim#check                                                                                                                                                                                                   
========================================================================                                                                                                                                            
## Configuration                                                                                                                                                                                                    
  - OK: no issues found                                                                                                                                                                                             
                                                                                                                                                                                                                    
## Performance                                                                                                                                                                                                      
  - OK: Build type: RelWithDebInfo                                                                                                                                                                                  
                                                                                                                                                                                                                    
## Remote Plugins                                                                                                                                                                                                   
  - OK: Up to date                                                                                                                                                                                                  
                                                                                                                                                                                                                    
## terminal                                                                                                                                                                                                         
  - INFO: key_backspace (kbs) terminfo entry: key_backspace=^H                                                                                                                                                      
  - INFO: key_dc (kdch1) terminfo entry: key_dc=\E[3~                                                                                                                                                               
  - INFO: $VTE_VERSION='5003'                                                                                                                                                                                       
  - INFO: $COLORTERM='truecolor'                                                                                                                                                                                    
                                                                                                                                                                                                                    
health#provider#check                                                                                                                                                                                               
========================================================================                                                                                                                                            
## Clipboard (optional)                                                                                                                                                                                             
  - OK: Clipboard tool found: xsel                                                                                                                                                                                  
                                                                                                                                                                                                                    
## Python 2 provider (optional)                                                                                                                                                                                     
  - INFO: `g:python_host_prog` is not set.  Searching for python2 in the environment.                                                                                                                               
  - INFO: Executable: /usr/bin/python2                                                                                                                                                                              
  - INFO: Python2 version: 2.7.14                                                                                                                                                                                   
  - INFO: python2-neovim version: 0.2.1                                                                                                                                                                             
  - OK: Latest python2-neovim is installed: 0.2.1                                                                                                                                                                   
                                                                                                                                                                                                                    
## Python 3 provider (optional)                                                                                                                                                                                     
  - INFO: `g:python3_host_prog` is not set.  Searching for python3 in the environment.                                                                                                                              
  - INFO: Executable: /usr/bin/python3                                                                                                                                                                              
  - INFO: Python3 version: 3.6.4                                                                                                                                                                                    
  - INFO: python3-neovim version: 0.2.1                                                                                                                                                                             
  - OK: Latest python3-neovim is installed: 0.2.1                                                                                                                                                                   
                                                                                                                                                                                                                    
## Ruby provider (optional)                                                                                                                                                                                         
  - INFO: Ruby: ruby 2.5.0p0 (2017-12-25 revision 61468) [x86_64-linux]                                                                                                                                             
  - INFO: Host: /usr/bin/neovim-ruby-host                                                                                                                                                                           
  - OK: Latest "neovim" gem is installed: 0.7.0                                                                                                                                                                     
                                                                                                                                                                                                                    
## Node.js provider (optional)                                                                                                                                                                                      
  - INFO: Node.js: v9.5.0                                                                                                                                                                                           
  - INFO: Neovim node.js host: /usr/lib/node_modules/neovim/bin/cli.js                                                                                                                                              
  - OK: Latest "neovim" npm package is installed: 3.5.2                                                                                                                                                             

This bug is present in regular VIM 8 also. Looks like the executable is not being set properly for some reason? Or maybe the * register just isn't available?

Syntax error "s:past" does not exists.

On line 56 it is:

let s:paste['']= s:past['']

And I believe it should be "paste" with a plus '+' for the map key.

let s:paste['*']= s:paste['+']

Even that I made the above change locally, the plugin didn't do what was expected - to copy to the tmux clipboard buffer.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.