[已解决]vim的:%!xxd中的%是什么意思?
-
- 帖子: 2284
- 注册时间: 2013-05-26 6:58
- 系统: Debian 9
-
- 帖子: 112
- 注册时间: 2015-04-04 23:20
- 系统: linux & windows
-
- 论坛版主
- 帖子: 18279
- 注册时间: 2009-08-04 16:33
Re: vim的:%!xxd中的%是什么意思?
http://blog.vgod.tw/2009/12/08/vim-chea ... ogrammers/
給程式設計師的 Vim 入門圖解說明
段落(paragraph)、區塊(block)
% 跳到目前對應的括號上(適用各種括號,有設定好的話連 HTML tag 都能跳)
給程式設計師的 Vim 入門圖解說明
段落(paragraph)、區塊(block)
% 跳到目前對應的括號上(適用各種括號,有設定好的話連 HTML tag 都能跳)
-
- 论坛版主
- 帖子: 5234
- 注册时间: 2007-01-14 16:23
Re: vim的:%!xxd中的%是什么意思?
看在你认真学习的份上
请在vim 里面输入 :help %
请在vim 里面输入 :help %
-
- 帖子: 2284
- 注册时间: 2013-05-26 6:58
- 系统: Debian 9
Re: vim的:%!xxd中的%是什么意思?
感谢回复,不过貌似没有描述"匹配全部行"onlylove 写了:看在你认真学习的份上
请在vim 里面输入 :help %
代码: 全选
*%*
% Find the next item in this line after or under the
cursor and jump to its match. |inclusive| motion.
Items can be:
([{}]) parenthesis or (curly/square) brackets
(this can be changed with the
'matchpairs' option)
/* */ start or end of C-style comment
#if, #ifdef, #else, #elif, #endif
C preprocessor conditionals (when the
cursor is on the # or no ([{
following)
For other items the matchit plugin can be used, see
|matchit-install|. This plugin also helps to skip
matches in comments.
When 'cpoptions' contains "M" |cpo-M| backslashes
before parens and braces are ignored. Without "M" the
number of backslashes matters: an even number doesn't
match with an odd number. Thus in "( \) )" and "\( (
\)" the first and last parenthesis match.
When the '%' character is not present in 'cpoptions'
|cpo-%|, parens and braces inside double quotes are
ignored, unless the number of parens/braces in a line
is uneven and this line and the previous one does not
end in a backslash. '(', '{', '[', ']', '}' and ')'
are also ignored (parens and braces inside single
quotes). Note that this works fine for C, but not for
Perl, where single quotes are used for strings.
Nothing special is done for matches in comments. You
can either use the matchit plugin |matchit-install| or
put quotes around matches.
No count is allowed, {count}% jumps to a line {count}
percentage down the file |N%|. Using '%' on
#if/#else/#endif makes the movement linewise.
-
- 帖子: 2284
- 注册时间: 2013-05-26 6:58
- 系统: Debian 9
Re: vim的:%!xxd中的%是什么意思?
http://vimdoc.sourceforge.net/search.ph ... &docs=help
这么搜好像就可以搜出来:%这种用法了
http://vimdoc.sourceforge.net/htmldoc/cmdline.html#:%
Fri Dec 16 21:57:30 CST 2016 补充:
刚刚试了试
:hlep :%
原来直接这么用就可以了
这么搜好像就可以搜出来:%这种用法了
http://vimdoc.sourceforge.net/htmldoc/cmdline.html#:%
Fri Dec 16 21:57:30 CST 2016 补充:
刚刚试了试
:hlep :%
原来直接这么用就可以了