Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7777995
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T18:17:00+00:00 2026-06-01T18:17:00+00:00

I am using Ubuntu 12.04 Beta and Vim that has come with it. I

  • 0

I am using Ubuntu 12.04 Beta and Vim that has come with it. I am trying to use Vim to copy the content of a text file to Chrome browser.
I have tried +, * y and all its variants. I have tried to :set clipboard=unnamed and :set clipboard=unnamedplus. Not working.
I am not trying to use xclip, or GVim or any of that. I tried with xclip (not a standard package in Ubuntu 12.04), but that too does not work, also too much effort.

How do I copy the text to the clipboard and then paste anywhere, like Chrome?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T18:17:03+00:00Added an answer on June 1, 2026 at 6:17 pm

    Your version of Vim doesn’t support X, which is required for clipboard access. By default, Ubuntu ships several builds of vim and only the GUI variant supports clipboard access. I always recompile vim from source so that a single vim (with symlinks for gvim etc) supports everything required (including :gui to switch from command line to GUI version). It’s really very easy to do:

    # Get the compile-dependencies of vim
    sudo apt-get build-dep vim
    # If you haven't got mercurial, get it
    sudo apt-get install mercurial
    # Get the source
    hg clone https://vim.googlecode.com/hg/ vim_source
    # Compile it
    cd vim_source
    ./configure \
        --enable-perlinterp=dynamic \
        --enable-pythoninterp=dynamic \
        --enable-rubyinterp=dynamic \
        --enable-cscope \
        --enable-gui=auto \
        --enable-gtk2-check \
        --enable-gnome-check \
        --with-features=huge \
        --with-x \
        --with-compiledby="Your Name <youremail@domain.com>" \
        --with-python-config-dir=/usr/lib/python2.7/config
    make && sudo make install
    

    That will install it in /usr/local, so make sure that’s in your PATH before /usr and it will be used instead of the Ubuntu versions.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using ubuntu behind a socks5 proxy and trying to use the git
I'm using google chrome 5.0.307.9 beta under ubuntu 9.10 and it seems not properly
I am using Ubuntu 9.10 beta, whose repositories contain boost 1.38. I would like
I have installed the vim-latex package using Ubuntu Synaptic package manager and updated my
I want to use PDT to debug PHP with eclipse. I am using ubuntu
I'm using Ubuntu 10.04 and Qt4.6, and I've created an executable binary file on
I'm using Ubuntu 10 and trying out the below code in Firefox 3.6 and
I am new to Linux and using Ubuntu, trying to install firefox-4.0b1.tar.bz2 but don't
I am using Ubuntu... I am trying to install racket from their website http://racket-lang.org/download/
i am using ubuntu and want to know the creation time of a file

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.