What does ^M character mean in Vim?
2015-02-11 16:26
375 查看
Unix uses 0xA for a newline character. Windows uses a combination of two characters: 0xD 0xA. 0xD is the carriage return character.
to be the way vim displays 0xD.
You can remove all the
by entering the following:
where
is a way to entering characters
vi. It will globally replace all occurrences of
nothing.
^Mhappens
to be the way vim displays 0xD.
You can remove all the
^Mcharacters
by entering the following:
:%s/^V^M//g
where
^V^Mmeans CTRL+V,CTRL+M and
is a way to entering characters
^Minto
vi. It will globally replace all occurrences of
^Mwith
nothing.
相关文章推荐
- What does a (+) sign mean in an Oracle SQL WHERE clause?
- What does wildcard address in InetSocketAddress mean?
- What does '>/dev/null 2>&1' mean in this article of crontab basics
- What does the first letter "c" mean in "calloc"?
- What does backend type static mean in Magento?
- What does it mean by rendering of page in JSF
- __memcpy_sse2_unaligned - what does this mean in detail?
- What does (Aborted) mean in HttpWatch?
- Build a Simple Program Using Boost in(std::cin) : What does it mean?
- What does Using filesort mean in MySQL?
- What does it mean by Single-Leg & Multiple Leg in Stock Trading?
- What does the distance attribute in DMatches mean?
- What does it mean to write `static void * ptr = &ptr` in objective-c?
- What does "Rxlch" mean in ENCODE?
- What does the [Flags] Enum Attribute mean in C#?
- What does "size" in int(size) of MySQL mean?
- what does the three dots in “doInBackground(URL… urls)” mean?
- What does [SimpleType] and [Compact] in bindings mean?
- What does => and () => mean in Scala
- In Javascript, what does this underscore mean?