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

  • SEARCH
  • Home
  • 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 6999439
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T20:32:28+00:00 2026-05-27T20:32:28+00:00

I wanted to open a URL with xdg-open when the cursor was staying on

  • 0

I wanted to open a URL with xdg-open when the cursor was staying on some string that points to a valid folder
By pressing some key , it will launch xdg-open the_valid_url for example.

Is that possible ?

And i hope it works even a space resides in the local url.

Thanks !

  • 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-05-27T20:32:29+00:00Added an answer on May 27, 2026 at 8:32 pm

    Try with next mapping:

    :noremap ,o :!xdg-open <cfile><CR>
    

    And now, inside vim put cursor over your string and press ,o in normal mode. In my computer (linux) uses dolphin to open local folders and konqueror to open urls.


    EDIT:

    To open files with spaces, add the space character to option isfname (32 is the decimal number of the space character):

    :set isfname+=32
    

    and use this different map:

    :noremap ,o :execute ":!xdg-open " . shellescape( '<cfile>' )<CR>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I wanted some of those spiffy rounded corners for a web project that I'm
Say I wanted to invoke the following url that returns Json through an Ajax
I have some API instructions I am trying to follow (string) source (string) key
I have a live radio streaming playlist url, when I open that url in
I wanted to open up the topic to discuss ways to encourage or incentivize
Wanted to get some consensus around a UI feature I'm working on right now.
I wanted to emulate a popular flash game, Chrontron, in C++ and needed some
I am trying to write a java program that will automatically download and name
So, following some advice earlier I wanted to create a email form where after
I wanted from within my application to open another native iPhone application installed on

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.