LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 08-03-2016, 06:15 PM   #1
nix84
Member
 
Registered: Apr 2014
Posts: 276

Rep: Reputation: Disabled
Add music to vi insert mode


I have used vi for years but am having trouble remembering when I am in insert mode.
Wondering if there is a bash script/method/hook to start a repeating music loop when I enter insert mode in vi.
 
Old 08-04-2016, 04:50 AM   #2
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
You use real vi? I mean in elvis and vim, I see Insertion/Input and Command (for elvis) mode title at bottom of screen
 
Old 08-05-2016, 02:27 PM   #3
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,242

Rep: Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322
Just put "set showmode" in your .vimrc. It's a simpler solution.
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Vi: I want backspace to respond in insert mode and not in command mode: possible? stf92 Slackware 9 06-16-2011 11:05 PM
insert mode in gedit tgs10 Linux - Newbie 5 03-04-2011 08:42 AM
insert music CDs floods dmesg Bruce Hill Slackware 7 12-28-2010 08:42 PM
how to make the cursor in normal mode and insert mode look defferent? tianlijian Linux - Newbie 4 04-07-2009 03:36 AM
insert mode in vim usr Linux - Software 1 01-18-2004 01:25 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 12:34 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration