Hot answers tagged

4

:%s:.*:<a href="&">&</a>: Same as in ed/sed/perl... Another less ex and more vim-like way would be: if you know how to do it once for a line, record it as a macro and then run :%normal @m where m is that macro. Like (in normal mode): qmS<a href="<Ctrl-R>""><Ctrl-R>"</a><Esc>q to record the macro.


3

-o, -O, and -p are mutually exclusive. You can't combine them. From main.c, command_line_scan(): case 'p': /* "-p[N]" open N tab pages */ parmp->window_layout = WIN_TABS; break; case 'o': /* "-o[N]" open N horizontal split windows */ parmp->window_layout = WIN_HOR; break; case 'O': /* "-O[N]" open N vertical ...


3

It's the command-line window (keyboard shortcut q:, quit with ctrl+c,ctrl+c) It shows a history of your previous commands, which you can navigate to and edit with normal (command) mode. Once you've finished you can hit enter to run the edited or reselected command. A similar history window is available for searches (keyboard shortcut q/, quit with ...


1

why do you use the Pipe? :%s/.*/\<a href=\"&\"\>&\<\/a\>/g (mark all command strings with \ )



Only top voted, non community-wiki answers of a minimum length are eligible