This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Apr 13 2014 12:39:14) | |
MacOS X (unix) version | |
Included patches: 1-258 | |
Compiled by [email protected] | |
Normal version without GUI. Features included (+) or not (-): | |
+acl -farsi -mouse_netterm +syntax | |
-arabic +file_in_path -mouse_sgr +tag_binary | |
+autocmd +find_in_path -mouse_sysmouse +tag_old_static | |
-balloon_eval +float -mouse_urxvt -tag_any_white |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function! Group(char) | |
" open blank line on top of file and jump back | |
execute "normal! ggO\<Esc>\<C-O>" | |
" save current position | |
let p = getpos('.') | |
" from this line downward move all lines matching the pattern to top of file | |
.,$g//m0 | |
" select all lines matching the pattern | |
normal! vip | |
" redirect output to standard register |
OlderNewer