Skip to content

Instantly share code, notes, and snippets.

@wellle
wellle / vimversion
Created April 27, 2014 17:20
vim --version
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
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