Nazri Ramliy wrote:
> My eyes hurts everytime I had to hunt for a specific feature in the
> listing shown by :version.
>
> Attached patch formats the feature list shown by :version into a more
> readable, columnar style. It's the same style used for listing a
> book's index - it's easier to scan as the items are sorted top to
> bottom in each column.
>
> Before patch:
>
> --8<--
> Huge version with GTK2 GUI. Features included (+) or not (-):
> +arabic +autocmd +balloon_eval +browse ++builtin_terms +byte_offset +cindent
> +clientserver +clipboard +cmdline_compl +cmdline_hist +cmdline_info +comments
> +conceal +cryptv +cscope +cursorbind +cursorshape +dialog_con_gui +diff
> +digraphs +dnd -ebcdic +emacs_tags +eval +ex_extra +extra_search +farsi
> +file_in_path +find_in_path +float +folding -footer +fork() +gettext
> -hangul_input +iconv +insert_expand +jumplist +keymap +langmap +libcall
> +linebreak +lispindent +listcmds +localmap -lua +menu +mksession +modify_fname
> +mouse +mouseshape +mouse_dec -mouse_gpm -mouse_jsbterm +mouse_netterm
> +mouse_sgr -mouse_sysmouse +mouse_urxvt +mouse_xterm +multi_byte +multi_lang
> -mzscheme +netbeans_intg +path_extra -perl +persistent_undo +postscript
> +printer +profile +python -python3 +quickfix +reltime +rightleft -ruby
> +scrollbind +signs +smartindent -sniff +startuptime +statusline -sun_workshop
> +syntax +tag_binary +tag_old_static -tag_any_white -tcl +terminfo
> +termresponse
> +textobjects +title +toolbar +user_commands +vertsplit +virtualedit +visual
> +visualextra +viminfo +vreplace +wildignore +wildmenu +windows +writebackup
> +X11 -xfontset +xim +xsmp_interact +xterm_clipboard -xterm_save
> system vimrc file: "$VIM/vimrc"
> -->8--
>
> After:
>
> --8<--
> Huge version with GTK2 GUI. Features included (+) or not (-):
> +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
> +browse +folding +mouse_xterm -tcl
> ++builtin_terms -footer +multi_byte +terminfo
> +byte_offset +fork() +multi_lang +termresponse
> +cindent +gettext -mzscheme +textobjects
> +clientserver -hangul_input +netbeans_intg +title
> +clipboard +iconv +path_extra +toolbar
> +cmdline_compl +insert_expand -perl +user_commands
> +cmdline_hist +jumplist +persistent_undo +vertsplit
> +cmdline_info +keymap +postscript +virtualedit
> +comments +langmap +printer +visual
> +conceal +libcall +profile +visualextra
> +cryptv +linebreak +python +viminfo
> +cscope +lispindent -python3 +vreplace
> +cursorbind +listcmds +quickfix +wildignore
> +cursorshape +localmap +reltime +wildmenu
> +dialog_con_gui -lua +rightleft +windows
> +diff +menu -ruby +writebackup
> +digraphs +mksession +scrollbind +X11
> +dnd +modify_fname +signs -xfontset
> -ebcdic +mouse +smartindent +xim
> +emacs_tags +mouseshape -sniff +xsmp_interact
> +eval +mouse_dec +startuptime +xterm_clipboard
> +ex_extra -mouse_gpm +statusline -xterm_save
> +extra_search -mouse_jsbterm -sun_workshop
> +farsi +mouse_netterm +syntax
> system vimrc file: "$VIM/vimrc"
> -->8--
>
> I found it much easier to locate a specific feature using the new style.
>
> Try it! See how long it takes you to locate, say the 'libcall' feature
> in the two examples above.
>
> Careful, the new listing is so fine it might even make you want to go
> and do a :help +feature for each of the items :)
Thanks, this defenitely looks better. It takes more space on screen,
but that's not really a problem.
The for loop is a bit strange. Instead of using sprintf() it's simpler
to make a loop that outputs the filler spaces. And not do that for the
last column. It can also be avoided to have to place to write the
newline.
--
"The future's already arrived - it's just not evenly distributed yet."
-- William Gibson
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.