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 176525
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T13:53:35+00:00 2026-05-11T13:53:35+00:00

I have a shared library (in binary form; I have the source) that I

  • 0

I have a shared library (in binary form; I have the source) that I use to invert/cycle between symbols in source files in Visual Studio.

I would like to be able to use the same functionality in vi and/or Vim.

Specifically, what I’d like to do is the following scenario:

  • the cursor is on a word
  • I press a key-sequence, e.g. CTRL-I
  • vi/Vim works out the whole of the word I’m on
  • vi/Vim invokes my shared library, passing the word, and receiving the invert/cycle replacement
  • vi/Wim replaces the original word with the new word

I don’t have any clue if/how to get vi/Vim to do this, and I’m not having any luck searching.

Any advice gratefully received …

  • 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. 2026-05-11T13:53:36+00:00Added an answer on May 11, 2026 at 1:53 pm

    Try

    inoremap <C-i> <esc>'hciw<C-R>=libcall('path/to/your.dll', 'func', @h)<CR> 

    What it does:

    • create map for insert mode <Ctrl+i>
    • <esc> switch to normal mode ‘hciw move word under cursor into the register h
    • <C-r>= insert into cursor position result of the next expression
    • libcall(…) calls function in the run-time library.
    • @h is the value of the ‘h’ register.

    In case you want to use simple binary that can be ran from the command line you can use

    inoremap <C-i> <esc>'hciw<C-R>=substitute(system('mybin --word='.@h), '\n', '', 'g')<CR> 
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 203k
  • Answers 203k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer You appear to have an endless loop because decimal will… May 12, 2026 at 8:32 pm
  • Editorial Team
    Editorial Team added an answer It doesn't return a value based on the address. It… May 12, 2026 at 8:32 pm
  • Editorial Team
    Editorial Team added an answer You can try saying EHLO to your server and see… May 12, 2026 at 8:32 pm

Related Questions

I have some python code that: Takes a BLOB from a database which is
I have one binary and one shared library. The shared library is compiled with:
I have a Java program that stores a lot of mappings from Strings to
We have an issue related to a Java application running under a (rather old)

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.