LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-05-2017, 02:41 AM   #1
mcmxciv
LQ Newbie
 
Registered: Nov 2017
Posts: 17

Rep: Reputation: Disabled
E29: No inserted text yet


I want to input '^@'(caret) through vim.
Whether pressing Ctrl+2 or Ctrl+shift+2,it always
says:E29: No inserted text yet.
But if i want to type other caret notation,eg '^M',simply
pressing Ctrl+M.
Why ^@ cannot input?
 
Old 12-05-2017, 02:44 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,692

Rep: Reputation: 7275Reputation: 7275Reputation: 7275Reputation: 7275Reputation: 7275Reputation: 7275Reputation: 7275Reputation: 7275Reputation: 7275Reputation: 7275Reputation: 7275
press first Ctrl-V and Ctrl-2
 
Old 12-05-2017, 03:02 AM   #3
mcmxciv
LQ Newbie
 
Registered: Nov 2017
Posts: 17

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by pan64 View Post
press first Ctrl-V and Ctrl-2
I find some control character,like '^L','^M',which could be type directly.But some,eg ^@,^A,must be input using first ctrl-v and then Ctrl+something.
What is the different between them?
 
Old 12-05-2017, 03:35 AM   #4
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,692

Rep: Reputation: 7275Reputation: 7275Reputation: 7275Reputation: 7275Reputation: 7275Reputation: 7275Reputation: 7275Reputation: 7275Reputation: 7275Reputation: 7275Reputation: 7275
If I remember well the standard way is to press Ctrl-V and <special char>
You do not need to use Ctrl-V only for a limited character set, like the letters, numbers and "usual" keys: tab, enter ..... But I can't recall the correct definition, you may need to check the manual.
 
Old 12-05-2017, 06:19 AM   #5
mcmxciv
LQ Newbie
 
Registered: Nov 2017
Posts: 17

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by pan64 View Post
If I remember well the standard way is to press Ctrl-V and <special char>
You do not need to use Ctrl-V only for a limited character set, like the letters, numbers and "usual" keys: tab, enter ..... But I can't recall the correct definition, you may need to check the manual.
which manual?
 
Old 12-05-2017, 06:29 AM   #6
mcmxciv
LQ Newbie
 
Registered: Nov 2017
Posts: 17

Original Poster
Rep: Reputation: Disabled
In addititon to Basic ASCII Codes ,range in(0x00~0x7F),how can i
input Extended ASCII Codes(0x80~0xFF) through vim?
 
Old 12-05-2017, 08:40 AM   #7
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,692

Rep: Reputation: 7275Reputation: 7275Reputation: 7275Reputation: 7275Reputation: 7275Reputation: 7275Reputation: 7275Reputation: 7275Reputation: 7275Reputation: 7275Reputation: 7275
https://unix.stackexchange.com/quest...al-codes-in-vi
https://sanctum.geek.nz/arabesque/sp...acters-in-vim/
 
1 members found this post helpful.
Old 12-06-2017, 01:55 AM   #8
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,692

Rep: Reputation: 7275Reputation: 7275Reputation: 7275Reputation: 7275Reputation: 7275Reputation: 7275Reputation: 7275Reputation: 7275Reputation: 7275Reputation: 7275Reputation: 7275
Quote:
Originally Posted by mcmxciv View Post
which manual?
start vim, enter :help intro, look for Insert Visual mode.
In general I would suggest you to read the help (but need to learn how to use)
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] Bash command to 'cut' text into another text file & modifying text. velgasius Programming 4 10-17-2011 04:55 AM
SD Card Not Visible When Inserted lazyboy994 Linux - Laptop and Netbook 4 04-09-2008 06:02 PM
auto starting when cd is inserted oingram Linux - Software 1 11-10-2005 01:54 AM
whether cd or dvd is inserted? ur_prince Programming 0 12-22-2004 02:12 AM
whether cd or dvd is inserted? ur_prince Linux - Software 3 12-17-2004 11:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:57 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