LinuxQuestions.org
Help answer threads with 0 replies.
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, 03:41 AM   #1
mcmxciv
LQ Newbie
 
Registered: Nov 2017
Posts: 16

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, 03:44 AM   #2
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 9,909

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

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, 04:35 AM   #4
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 9,909

Rep: Reputation: 2921Reputation: 2921Reputation: 2921Reputation: 2921Reputation: 2921Reputation: 2921Reputation: 2921Reputation: 2921Reputation: 2921Reputation: 2921Reputation: 2921
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, 07:19 AM   #5
mcmxciv
LQ Newbie
 
Registered: Nov 2017
Posts: 16

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, 07:29 AM   #6
mcmxciv
LQ Newbie
 
Registered: Nov 2017
Posts: 16

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, 09:40 AM   #7
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 9,909

Rep: Reputation: 2921Reputation: 2921Reputation: 2921Reputation: 2921Reputation: 2921Reputation: 2921Reputation: 2921Reputation: 2921Reputation: 2921Reputation: 2921Reputation: 2921
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, 02:55 AM   #8
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 9,909

Rep: Reputation: 2921Reputation: 2921Reputation: 2921Reputation: 2921Reputation: 2921Reputation: 2921Reputation: 2921Reputation: 2921Reputation: 2921Reputation: 2921Reputation: 2921
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 05:55 AM
SD Card Not Visible When Inserted lazyboy994 Linux - Laptop and Netbook 4 04-09-2008 07:02 PM
auto starting when cd is inserted oingram Linux - Software 1 11-10-2005 02:54 AM
whether cd or dvd is inserted? ur_prince Programming 0 12-22-2004 03:12 AM
whether cd or dvd is inserted? ur_prince Linux - Software 3 12-17-2004 12:40 PM

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

All times are GMT -5. The time now is 12:27 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration