Re: is there better way to define a customer Command like F[oobar]

2013-04-09 Thread Paul Isambert
Kent kent.y...@gmail.com a écrit: many vim build in commands have abbreviation, e.g. :d[elete] user can type :d :de :del :dele ...delete Is there a better way to define a customer command (:command! Foobar) like it too? e.g. F[oobar] what I can think of is, defining 6 commands,

Re: is there better way to define a customer Command like F[oobar]

2013-04-09 Thread Kent
thanks Tim, thanks Paul my test yesterday failed because there was another plugin defined an ambiguous command :( On Tue, Apr 9, 2013 at 9:22 AM, Paul Isambert zappathus...@free.fr wrote: Kent kent.y...@gmail.com a écrit: many vim build in commands have abbreviation, e.g. :d[elete]

Problem with Visual selection on an empty line

2013-04-09 Thread glts
When a v Visual selection ends on an empty line it will also delete the newline and join the next line. Is there a way to avoid this? Here's an example text with the cursor on b: abc d xyz Now pressing vj and then d results in: axyz I would not have expected line 3 joined to line 1 but I can

Re: UFT-8/16 help needed (How to set up Outlook 2010 / Vim 7.3 to have OutlookVim with Unicode (UTF-8) support?)

2013-04-09 Thread aswna2010
Hi John, thanks for your suggestions. (I am struggling with the original issue.) I have tried the things you mentioned, set only the following in my .vimrc: set nocompatible set encoding=utf-8 I also set a Unicode capable font (I have tried DejaVu_Sans_Mono and Consolas, too). I have

Re: Problem with Visual selection on an empty line

2013-04-09 Thread Ben Fritz
On Tuesday, April 9, 2013 6:26:58 AM UTC-5, glts wrote: But what if the line between abc and xyz is empty? abc xyz Now vjd will always result in: axyz But I don't like this, it goes against my intuition. Is there a way to tell Vim not to include the newline character in the

Re: Problem with Visual selection on an empty line

2013-04-09 Thread Christian Brabandt
Hi glts! On Di, 09 Apr 2013, glts wrote: When a v Visual selection ends on an empty line it will also delete the newline and join the next line. Is there a way to avoid this? Here's an example text with the cursor on b: abc d xyz Now pressing vj and then d results in: axyz I

Re: Problem with Visual selection on an empty line

2013-04-09 Thread glts
On Tuesday, April 9, 2013 5:48:25 PM UTC+2, Ben Fritz wrote: On Tuesday, April 9, 2013 6:26:58 AM UTC-5, glts wrote: But what if the line between abc and xyz is empty? abc xyz Now vjd will always result in: axyz But I don't like this, it goes against my intuition. Is

Re: Problem with Visual selection on an empty line

2013-04-09 Thread glts
On Tuesday, April 9, 2013 5:59:16 PM UTC+2, Christian Brabandt wrote: :set selection=exclusive Yes. Unfortunately, I have to pass the selection to a plugin over which I have no control, so setting 'selection' is out of question. I think I'm just going to back up when getline(ln) =~ '^$' or

comammand to wipe buffer and save view

2013-04-09 Thread skeept
I have this command in my vimrc which I got from the internet: command! Kwbd let kwbd_bn= bufnr(%)|enew|exe bdel .kwbd_bn|unlet kwbd_bn this keeps the view but I would prefer to have another buffer from the list opened in the window instead of a new one. If no other buffer in the list then it

Using :argdo w! combined.xml

2013-04-09 Thread Russ Urquhart
Hi, I used the above command to concatenate files to a single combined.xml file. The problem is I can't remember how I had all of the XML files from the directory loaded into vim to get this command to work. Can anyone help jog my memory on this? Thanks Russ Sent from my iPhone -- --

Re: Using :argdo w! combined.xml

2013-04-09 Thread Taylor Hedberg
:argdo iterates over the argument list. This is set implicitly by the list of files you give on the command line when launching Vim. You can also set it manually from within Vim by using the :args command. :help :argdo :help :args :help argument-list signature.asc Description: Digital signature

Re: Forcing myself to learn vim properly

2013-04-09 Thread BPJ
On 2013-04-08 19:03, Tony Mechelynck wrote: One of the great plus-points of Vim is that in many cases there are several ways to achieve the same result. IOW, the proper way to use Vim is not the one and only way the teacher uses it: it is whatever way suits you best. Thanks for saying that!

Re: Can I control the order of files, then concat into a file

2013-04-09 Thread Tim Chase
On 2013-04-09 18:46, Russell Urquhart wrote: The order is probably going to be specific to what my users want, and not sorted by any manner. Can anyone suggest the best way to do this in Vim? Presuming you want to control the order of the files by having them listed one-per-line in a file,

Re: Can I control the order of files, then concat into a file

2013-04-09 Thread Ben Fritz
On Tuesday, April 9, 2013 6:46:50 PM UTC-5, russur wrote: For this particular document(s) i might have to create, is there a way to choose the order of the files in the given directory, and have them load, in that order, into a single file. The order is probably going to be specific

how to make vim indent \subsection in TeX files?

2013-04-09 Thread leo
Hello all, How i use autoindent to indent TeX files, vim place subsections in the same indentation level as sections. This bothers me a little bit since i wanna indent TeX files for automatic folding based on identation. So, what should i do to make vim indent subsections? Thanks in advance

Re: how to make vim indent \subsection in TeX files?

2013-04-09 Thread pansz
Install TeX plugins which support tex file indent. You can search in www.vim.org and find some TeX plugins/extensions. Or if all you want is just the indent, try copy indent/tex.vim from texsuite. On Wed, Apr 10, 2013 at 9:17 AM, leo barbosa.leona...@gmail.com wrote: Hello all, How i

Re: Can I control the order of files, then concat into a file

2013-04-09 Thread Shlomi Fish
Hi Russ, please don't start a new thread by replying to an existing message. Instead, write a new message to vim_use@googlegroups.com . I could tell that was the case here by my mailer's threading capabilities. Regards, Shlomi Fish On Tue, 09 Apr 2013 18:46:50 -0500 Russell Urquhart