LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   E29: No inserted text yet (https://www.linuxquestions.org/questions/linux-newbie-8/e29-no-inserted-text-yet-4175618991/)

mcmxciv 12-05-2017 02:41 AM

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?

pan64 12-05-2017 02:44 AM

press first Ctrl-V and Ctrl-2

mcmxciv 12-05-2017 03:02 AM

Quote:

Originally Posted by pan64 (Post 5789058)
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?

pan64 12-05-2017 03:35 AM

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.

mcmxciv 12-05-2017 06:19 AM

Quote:

Originally Posted by pan64 (Post 5789075)
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?

mcmxciv 12-05-2017 06:29 AM

In addititon to Basic ASCII Codes ,range in(0x00~0x7F),how can i
input Extended ASCII Codes(0x80~0xFF) through vim?

pan64 12-05-2017 08:40 AM

https://unix.stackexchange.com/quest...al-codes-in-vi
https://sanctum.geek.nz/arabesque/sp...acters-in-vim/

pan64 12-06-2017 01:55 AM

Quote:

Originally Posted by mcmxciv (Post 5789130)
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)


All times are GMT -5. The time now is 03:39 AM.