RE: VimWiki - released finally

2007-06-05 Thread Larson, David
> Sebastian,
> 
> Why not utilize the "talk:" pages for the comments (see 
> discussion tab at top of each wiki page)?
> 
> Just curious.
> 
> -Robert

Lets avoid using the vim-announce mailing list for a discussing of vim
wiki and stick to vim-dev.

David


RE: VimWiki - released finally

2007-06-05 Thread Larson, David
 
> > Finally I have imported all the vim tips from http://vim.org/tips to
> > 
> > http://vim.wikia.com
> > 
> > and set up a minimal infrastructure to keep things going. Not 
> > everything is perfect, but I think it is usable now.

The links to scripts on the tips pages don't show up correctly, they
look like this:

[/scripts/script.php?script_id=31 vimscript #31]

Take a look at this example:
http://vim.wikia.com/wiki/VimTip384


RE: new text object feature request

2007-05-15 Thread Larson, David
Hi Peter,

It can (see below), but then again, the other text objects could be
implemented as vimscript as well. Extending the existing text objects to
include parameters seems like a natural fit.

David

nmap  cim :call ChangeInnerParam()

function ChangeInnerParam()
   call s:selectInnerParam()
   normal x
   startinsert
endfunction

function s:selectInnerParam()
   call search('[(,]', "bW")
   normal lv
   call search('[(,)]', "W")
   let c = getline(".")[col(".")-1]
   if (c == '(')
  " skip over a nested param list
  normal %
  call search('[,)]', "W")
   endif
   normal h
endfunction

-Original Message-----
From: Peter Hodge [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, May 15, 2007 4:34 PM
To: Larson, David; vim-dev@vim.org
Subject: Re: new text object feature request

--- "Larson, David" <[EMAIL PROTECTED]> wrote:

> I often need to replace parameter text and usually try to remember the
> text object that selects the "inner parameter", only to come up short
> since that type isn't defined. It seems natural to have a "parameter"
> text object, where it would act on the text between commas or
> parentheses, i.e. from "(," to ",)".
> 
> What say you? Something worthy of the todo list?

Hello,

I believe that can be done using Vimscript, so you could try that first.

regards,
Peter



 

___
How would you spend $50,000 to create a more sustainable environment in
Australia?  Go to Yahoo!7 Answers and share your idea.
http://advision.webevents.yahoo.com/aunz/lifestyle/answers/y7ans-babp_re
g.html



new text object feature request

2007-05-15 Thread Larson, David
I often need to replace parameter text and usually try to remember the
text object that selects the "inner parameter", only to come up short
since that type isn't defined. It seems natural to have a "parameter"
text object, where it would act on the text between commas or
parentheses, i.e. from "(," to ",)".

What say you? Something worthy of the todo list?

David



RE: I can't change the font in vim7.1!

2007-05-15 Thread Larson, David
I wasn't aware of that feature. Thanks for the tip! :)

-Original Message-
From: A.J.Mechelynck [mailto:[EMAIL PROTECTED] 
Sent: Monday, May 14, 2007 5:35 PM
To: Larson, David
Cc: vim-dev@vim.org
Subject: Re: I can't change the font in vim7.1!

Larson, David wrote:
> I just upgraded to 7.1, and now when I open up a gvim session, I get
> this huge monospaced font that I can't change. If I type:
> 
> :set guifont?
> 
> it returns "7x14" which is what I set it to, but it isn't what is
> displayed. If I change the setting to *any* other font that is valid
for
> my system, the display doesn't change, although the guifont setting
> shows that it is set to the new value.
> 
> Help!
> David
> 
> :version
> shows:
> 
> VIM - Vi IMproved 7.1 (2007 May 12, compiled May 14 2007 09:50:48)
> Compiled by [EMAIL PROTECTED]
> Big version with GTK2 GUI.  Features included (+) or not (-):

With a GTK2 GUI, you can set the font interactively, using

:set guifont=*

This will bring up a font chooser menu. Thereafter,

:set guifont=

will show on the command-line the exact command (with escaping
backslashes if 
and where needed) that you need to write into your vimrc to set that
font.

There are (including the obsolete kvim) five different "families" of Vim
GUIs, 
each of which requires a different 'guifont' format, not accepted by
other 
GUIs. The following is what I use in my "portable vimrc" to "sniff" the
GUI 
version:

if has("gui_running") " console Vim cannot set the font
 if has("gui_gtk2")" GTK+2, not GTK+1
 set gfn=Bitstream\ Vera\ Sans\ Mono\ 9
 elseif has("gui_photon")  " Photon GUI
 set gfn=Bitstream\ Vera\ Sans\ Mono:s9
 elseif has("gui_kde") " the obsolete kvim
 set gfn=Bitstream\ Vera\ Sans\ Mono/9/-1/5/50/0/0/0/1/0
 elseif has("x11") " other X11 GUIs including GTK+1
 set
gfn=-*-lucidatypewriter-medium-r-normal-*-*-100-*-*-m-*-*
 else  " non-X11 GUIs including Windows
 set gfn=Lucida_Console:h9:cDEFAULT
 endif
endif


Best regards,
Tony.
-- 
... My pants just went on a wild rampage through a Long Island Bowling
Alley!!


RE: I can't change the font in vim7.1!

2007-05-14 Thread Larson, David
Okay. I've found a clue to my problem. I'm on a kde system, and I'm
obtaining a list of "valid" fonts with the xlsfonts command. I don't
know much about how the kde gui works, bit it appears that the xlsfonts
command and kde are incompatible. Now to figure out how to get a list of
kde fonts. 

Thanks,
David

-----Original Message-
From: Larson, David 
Sent: Monday, May 14, 2007 10:07 AM
To: vim-dev@vim.org
Subject: I can't change the font in vim7.1!

I just upgraded to 7.1, and now when I open up a gvim session, I get
this huge monospaced font that I can't change. If I type:

:set guifont?

it returns "7x14" which is what I set it to, but it isn't what is
displayed. If I change the setting to *any* other font that is valid for
my system, the display doesn't change, although the guifont setting
shows that it is set to the new value.

Help!
David

:version
shows:

VIM - Vi IMproved 7.1 (2007 May 12, compiled May 14 2007 09:50:48)
Compiled by [EMAIL PROTECTED]
Big 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 +cryptv +cscope
+cursorshape +dialog_con_gui +diff +digraphs
+dnd -ebcdic +emacs_tags +eval +ex_extra +extra_search +farsi
+file_in_path +find_in_path +folding -footer +fork()
-gettext -hangul_input +iconv +insert_expand +jumplist +keymap +langmap
+libcall +linebreak +lispindent +listcmds
+localmap +menu +mksession +modify_fname +mouse +mouseshape +mouse_dec
+mouse_gpm -mouse_jsbterm +mouse_netterm
+mouse_xterm +multi_byte +multi_lang -mzscheme +netbeans_intg
-osfiletype +path_extra -perl +postscript +printer
-profile -python +quickfix +reltime +rightleft -ruby +scrollbind +signs
+smartindent -sniff +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"
 user vimrc file: "$HOME/.vimrc"
  user exrc file: "$HOME/.exrc"
  system gvimrc file: "$VIM/gvimrc"
user gvimrc file: "$HOME/.gvimrc"
system menu file: "$VIMRUNTIME/menu.vim"
  fall-back for $VIM: "/home/x0075669/share/vim"
Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_GTK
-I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I
/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/X11R6/include
-I/usr/include/freetype2 -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -g -O2  -I/usr/X11R6/include
Linking: gcc  -L/usr/X11R6/lib   -L/usr/local/lib -o vim
-Wl,--export-dynamic -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.
0 -lgdk_pixbuf-2.0 -lm -lpangoxft-1.0 -lpangox-1.0 -lpango-1.0
-lgobject-2.0 -lgmodule-2.0 -lglib-2.0   -lXt -lncurs
es -lacl -lgpm


I can't change the font in vim7.1!

2007-05-14 Thread Larson, David
I just upgraded to 7.1, and now when I open up a gvim session, I get
this huge monospaced font that I can't change. If I type:

:set guifont?

it returns "7x14" which is what I set it to, but it isn't what is
displayed. If I change the setting to *any* other font that is valid for
my system, the display doesn't change, although the guifont setting
shows that it is set to the new value.

Help!
David

:version
shows:

VIM - Vi IMproved 7.1 (2007 May 12, compiled May 14 2007 09:50:48)
Compiled by [EMAIL PROTECTED]
Big 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 +cryptv +cscope
+cursorshape +dialog_con_gui +diff +digraphs
+dnd -ebcdic +emacs_tags +eval +ex_extra +extra_search +farsi
+file_in_path +find_in_path +folding -footer +fork()
-gettext -hangul_input +iconv +insert_expand +jumplist +keymap +langmap
+libcall +linebreak +lispindent +listcmds
+localmap +menu +mksession +modify_fname +mouse +mouseshape +mouse_dec
+mouse_gpm -mouse_jsbterm +mouse_netterm
+mouse_xterm +multi_byte +multi_lang -mzscheme +netbeans_intg
-osfiletype +path_extra -perl +postscript +printer
-profile -python +quickfix +reltime +rightleft -ruby +scrollbind +signs
+smartindent -sniff +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"
 user vimrc file: "$HOME/.vimrc"
  user exrc file: "$HOME/.exrc"
  system gvimrc file: "$VIM/gvimrc"
user gvimrc file: "$HOME/.gvimrc"
system menu file: "$VIMRUNTIME/menu.vim"
  fall-back for $VIM: "/home/x0075669/share/vim"
Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_GTK
-I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I
/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/X11R6/include
-I/usr/include/freetype2 -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -g -O2  -I/usr/X11R6/include
Linking: gcc  -L/usr/X11R6/lib   -L/usr/local/lib -o vim
-Wl,--export-dynamic -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.
0 -lgdk_pixbuf-2.0 -lm -lpangoxft-1.0 -lpangox-1.0 -lpango-1.0
-lgobject-2.0 -lgmodule-2.0 -lglib-2.0   -lXt -lncurs
es -lacl -lgpm


RE: VIM doesn't need new features?!?!

2007-04-16 Thread Larson, David
H sounds like you are looking for the highly rated Project.vim
plugin:

http://vim.sourceforge.net/scripts/script.php?script_id=69

This is probably the best place to start. If it is missing some
important features, then let Aric Blumer know. If he isn't responsive,
then I suggest adding the features yourself and submit the code to Aric.
If he still doesn't respond, then post them yourself!

-Original Message-
From: Peter Michaux [mailto:[EMAIL PROTECTED] 
Sent: Sunday, April 15, 2007 7:23 PM
To: vim-dev@vim.org
Subject: VIM doesn't need new features?!?!

Hi,

I like VIM. I want to use VIM as my everyday editor. I even spent a
frustrating week trying to determine if VIM could replace Textmate as
my main editor. VIM is very good for working with a single file but
the concept of a project is not really there. I looked at plugins,
talked with people in #vim about plugins and how to extend VIM. I
figured it would probably take a year of spare time for me to learn
how and then write the plugin to do what Textmate can do with respect
to projects right when it is installed: a project drawer, project
tabs, multiple open projects, project-wide search and selective
replace. And now I see that VIM doesn't need more features...

http://www.vim.org/soc/ideas.php

Darn.

Peter