Re: Path easy-search

2011-04-07 Thread Ben Schmidt

I suppose I could do something like

:nnoremap n /cr
:nnoremap N ?cr

if it really bugged me that much.


That is going straight into my .vimrc. One of those things that annoys
me, but not enough for me to bother doing anything about it. But if
someone's going to hand me a solution on a plate. :-)

(I guess it's similar to the J-is-not-an-operator thing, which I
recently addressed when something pushed me over the line!).

Smiles,

Ben.



--
You received this message from the vim_use 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


Re: Path easy-search

2011-04-07 Thread eNG1Ne
From a technical writer's stand-point, the title of an article should
not have a final full-stop: it isn't a sentence. Also, remember to
spell-check: wich is a typo g

On Apr 7, 6:30 am, Tony Mechelynck antoine.mechely...@gmail.com
wrote:
 On 07/04/11 03:34, John Little wrote:



 http://vim.wikia.com/wiki/Command_for_searching_expressions_%28paths%...

  that link shows me an empty page (This page needs content...)

  That url lacks a trailing period:

 http://vim.wikia.com/wiki/Command_for_searching_expressions_%28paths%

  Regards, John

 Hm, apparently my mailer did not include the period in the link. The
 following should 
 work:http://vim.wikia.com/wiki/Command_for_searching_expressions_%28paths%...

 Also, maybe that wiki page needs a rename or a redirect.

 Best regards,
 Tony.
 --
 It is against the law for a monster to enter the corporate limits of
 Urbana, Illinois.

-- 
You received this message from the vim_use 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


plugin description / installation hints based on archive/repo?

2011-04-07 Thread Marc Weber
Today plugin authors have to duplicate installation instructions and
plugin documentation up to 3 times:

1) doc/plugin.txt (vim documentation)
2) the install section on vim.sf.net
3) eg github README

What about making vim.sf.net either show the doc/plugin.txt
documentation file instead - or take a special file from the archive
such as:
doc/vim-sf-net-plugin-info.txt

Then authors can keep the script and its documentation in sync easily.

Marc Weber

-- 
You received this message from the vim_use 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


Re: Change paging program for bang execute

2011-04-07 Thread lzap
This is cool. I like the xterm trick.

Is there any way of skipping the Press ENTER message inside of vim? I mean 
the first message (not the one in the xterm).

Thanks

-- 
You received this message from the vim_use 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


Re: plugin description / installation hints based on archive/repo?

2011-04-07 Thread Tom Link
Hi,

On Thursday, April 7, 2011 12:50:36 PM UTC+2, MarcWeber wrote:

 What about making vim.sf.net either show the doc/plugin.txt
 documentation file instead - or take a special file from the archive
 such as:
 doc/vim-sf-net-plugin-info.txt


Since the plugin's help file is doc/plugin.txt, I'd rather vote for 
doc/plugin_install.txt or install/plugin.txt.

BTW I always found it slightly dysfunctional to put installation information 
in the help file since being able to read the help file usually implies that 
you have already installed the plugin somehow.

Most installation instructions consist of two parts:
1. How to extract/copy files
2. Suggested additional configuration steps

In an ideal world, plugin authors would only have to write #2. In most 
cases, it should be able to deduce #1 from the file type and/or plugin type. 
I don't think there is much use in putting #2 on vim.sf.net. Maybe the 
plugin creation page could suggest a text block for the installation 
instructions based on the file type? Maybe vimball.vim could display 
install/plugin.txt after extraction?

Regards,
Tom

-- 
You received this message from the vim_use 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


Re: why remap C-; is not working

2011-04-07 Thread Steve Losh
On 04/02/11 at 12:14P, Jean-Rene David wrote:
 * wei gao [2011.04.01 02:40]:
  I want to add ; to the end of line when coding. So, I add the following
  map in vimrc. however, it's not working for me (if I change to C-e, it's
  OK). Anybody know why? C-; is mapped to a special command already?
  
  :inoremap C-; C-oA;
 
 ... snip ...
 
 So, long story short, the reason you can't map C-; is that there is no
 such character.
 

This is true.  One way to get around it is to remap Ctrl+; at the OS level to
something usable, like Ctrl+e.  I use KeyRemap4Macbook to do this on OS X, and 
I'm
sure there's something similar for Windows/Linux.

-- 
Steve Losh

-- 
You received this message from the vim_use 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


Re: why remap C-; is not working

2011-04-07 Thread Christian Brabandt
On Sat, April 2, 2011 6:14 am, Jean-Rene David wrote:
 * wei gao [2011.04.01 02:40]:
 I want to add ; to the end of line when coding. So, I add the
 following
 map in vimrc. however, it's not working for me (if I change to C-e,
 it's
 OK). Anybody know why? C-; is mapped to a special command already?

 :inoremap C-; C-oA;

 While you may see things like C-e or C-] as a sequence of keys, vim
 actually gets those as a single character. These characters are *typed*
 using a combination of the control key and another key on your keyboard
 but when they actually reach vim they are one character.

 The set of these so called control characters are the first 32 ASCII
 values (namely 0x00 to 0x1F in hex). You can map each control character
 (which are unprintable characters) to a printable character used to
 enter it on the keyboard. You do this by adding 0x40 to the value of the
 control character like this:

 0x00 = C-@ maps to 0x40 = @
 0x01 = C-A maps to 0x41 = A
 0x02 = C-B maps to 0x42 = B
 0x03 = C-C maps to 0x43 = C
 ...
 0x1A = C-Z maps to 0x5A = Z
 0x1B = C-[ maps to 0x5B = [
 0x1C = C-\ maps to 0x5C = \
 0x1D = C-] maps to 0x5D = ]
 0x1E = C-^ maps to 0x5E = ^
 0x1F = C-_ maps to 0x5F = _

 And that's it. There are no others.

 So, long story short, the reason you can't map C-; is that there is no
 such character.

For the record, this is also covered briefly in the FAQ:
http://vimhelp.appspot.com/vim_faq.txt.html#faq-20.5

regards,
Christian

-- 
You received this message from the vim_use 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


Re: Change paging program for bang execute

2011-04-07 Thread Gary Johnson
On 2011-04-07, lzap wrote:
 This is cool. I like the xterm trick.
 
 Is there any way of skipping the Press ENTER message inside of vim? I mean the
 first message (not the one in the xterm).

It depends on the conditions under which it appears.  The issue is
discussed here along with some solutions.

:help press-enter

Regards,
Gary

-- 
You received this message from the vim_use 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


for help about the search history

2011-04-07 Thread wxuyec
hi, everyone,

After I type / to start search, if I want to use
UP key to go through the searching history,
I got a character A inserted. Did anybody
meet the problem? how should I fix that?
thank you. my vim is 7.2.330 and I am using
the fcitx input method, is this  what the problem
come from?

-- 
You received this message from the vim_use 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


why the Up key doesn't work to go through the searching history

2011-04-07 Thread wxuyec
while it works for gvim and the command mode.
after I press /, when I want to use Up key to
go through the searching history, I get a character
A inserted.

Thanks in advance.

-- 
You received this message from the vim_use 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


Re: for help about the search history

2011-04-07 Thread ZyX
Reply to message «for help about the search history», 
sent 18:17:23 07 April 2011, Thursday
by wxuyec:

 After I type / to start search, if I want to use
 UP key to go through the searching history,
 I got a character A inserted.
It means that vim failed to recognize a sequence of bytes (likely \eOA) that 
terminal sends when you press Up as an Up key. If `$TERM' variable has 
right 
value then I don't know the proper fix for this, but you can use a workaround:
Add the following lines to the vimrc:

 Replace the following condition with something that will identify terminal
 where you are experiencing your problem
if $TERM is xterm
 Replace \eOA and ... with right codes. You can get them by typing
 C-vUp, C-vDown, ... `\e' is an representation of escape
 character which will be shown as (blue by default) `^[' when you type
 C-vUp.
for [s:key, s:value] in [[Up, \eOA],
\[Down, ...],
\...
\]
execute set .s:key.=.s:value
endfor
endif

Original message:
 hi, everyone,
 
 After I type / to start search, if I want to use
 UP key to go through the searching history,
 I got a character A inserted. Did anybody
 meet the problem? how should I fix that?
 thank you. my vim is 7.2.330 and I am using
 the fcitx input method, is this  what the problem
 come from?


signature.asc
Description: This is a digitally signed message part.


Re: GVIM 7.3 can not start up due to BadAlloc

2011-04-07 Thread Jerry
Thanks for replying. But I don't think it is because of large file
sizes. I can open the same file using 7.1 and the files are by no
means large.
I could start the 7.3 gvim a few times but 90% of the time it gave me
the error message. I did notice the interface of the 7.3 gui is
different from what 7.1 invoked.


On Apr 6, 11:10 pm, Tony Mechelynck antoine.mechely...@gmail.com
wrote:
 On 07/04/11 04:39, Jerry wrote:


  Hello, I have just installed vim 7.3. When I try to start gvim, I got
  the following error message:

  The program 'gvim' received an X Window System error.
  This probably reflects a bug in the program.
  The error was 'BadAlloc (insufficient resources for operation)'.
     (Details: serial 503 error_code 11 request_code 53 minor_code 0)
     (Note to programmers: normally, X errors are reported
  asynchronously;
      that is, you will receive the error a while after causing it.
      To debug your program, run it with the --sync command line
      option to change this behavior. You can then get a meaningful
      backtrace from your debugger if you break on the gdk_x_error()
  function.)

  Does anybody know what is happening here? I would appreciate any
  input. BTW, I am running vim on Solaris.

  Thanks, everybody.

 Maybe trying to edit a very big file on a system with little memory? If
 the file is larger than the sum of your free RAM and free swap, there's
 no way Vim can edit it. If it's almost as large, it won't be easy. And
 in general, of course, virtual memory is much slower than actual RAM.

 Best regards,
 Tony.
 --
 If you don't care where you are, then you ain't lost.

-- 
You received this message from the vim_use 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


Re: why the Up key doesn't work to go through the searching history

2011-04-07 Thread Tony Mechelynck

On 07/04/11 17:04, wxuyec wrote:

while it works for gvim and the command mode.
after I press /, when I want to use Up key to
go through the searching history, I get a character
A inserted.

Thanks in advance.



Sounds like termcap discrepancy in Console mode:
1) What terminal are you running in? (cmd.exe, Terminal.app, xterm, 
konsole, gnome-terminal, mlterm, ...)

2) What is 'term' set to?
3) In Insert mode, when you hit Ctrl-V (or Ctrl-Q if you use Ctrl-V to 
paste) followed by Up, what is inserted?

4) In Normal mode, what is the answer to

:verbose set Up? xUp?

If neither of the replies at step 4 corresponds to what you see at step 
3, you have a problem.


Another possibility is that the first byte at step 3 is Ctrl-[ aka Esc 
and that Vim confuses it with a true Escape. In that case, try something 
like


:set timeout timeoutlen=4000 ttimeoutlen=200

where:
* both values are in milliseconds
	* 'timeoutlen' should be longer than the time between successive 
keypresses when you're typing the {lhs} of a multibyte mapping at your 
slowest typing speed, but not so long as to make you impatient when 
you're waiting for Vim to notice that you don't want to trigger a mapping
	* 'ttimeoutlen' should be shorter than the time between successive 
keypresses at your fastest typing speed but longer than the time between 
successive bytes sent by the keyboard driver for a single (special-key) 
keypress.


(Of course, if you're typing faster than the keyboard driver, you should 
calm down. ;-) )


see
:help termcap-options
(read the introductory section, then
scroll down to KEY CODES)
:help 'timeout'
:help 'timeoutlen'


Best regards,
Tony.
--
As of next week, passwords will be entered in Morse code.

--
You received this message from the vim_use 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


Re: why remap C-; is not working

2011-04-07 Thread Tony Mechelynck

On 07/04/11 16:16, Christian Brabandt wrote:

On Sat, April 2, 2011 6:14 am, Jean-Rene David wrote:

* wei gao [2011.04.01 02:40]:

I want to add ; to the end of line when coding. So, I add the
following
map in vimrc. however, it's not working for me (if I change toC-e,
it's
OK). Anybody know why?C-;  is mapped to a special command already?

:inoremapC-;  C-oA;


While you may see things likeC-e  orC-]  as a sequence of keys, vim
actually gets those as a single character. These characters are *typed*
using a combination of the control key and another key on your keyboard
but when they actually reach vim they are one character.

The set of these so called control characters are the first 32 ASCII
values (namely 0x00 to 0x1F in hex). You can map each control character
(which are unprintable characters) to a printable character used to
enter it on the keyboard. You do this by adding 0x40 to the value of the
control character like this:

0x00 =C-@  maps to 0x40 = @
0x01 =C-A  maps to 0x41 = A
0x02 =C-B  maps to 0x42 = B
0x03 =C-C  maps to 0x43 = C
...
0x1A =C-Z  maps to 0x5A = Z
0x1B =C-[  maps to 0x5B = [
0x1C =C-\  maps to 0x5C = \
0x1D =C-]  maps to 0x5D = ]
0x1E =C-^  maps to 0x5E = ^
0x1F =C-_  maps to 0x5F = _

And that's it. There are no others.


Actually, there is one other, the DEL character, also unprintable but at 
the other end of 7-bit US-ASCII: 0x7F = C-? maps to 0x3F = ?


ASCII comes historically from papertape codes: on 7-track papertape, you 
would correct an error by overpunching a 0x7F rubout character (a hole 
in every track) over the wrong punch; the receiving teletypewriter would 
print nothing for that character, and also not advance the printing 
carriage.


You could generalize your rule by saying that the Ctrl key toggles 
(inverts) bit 0x40 when it is typed together with a key in the range 
0x3F to 0x5F inclusive.


In addition, Ctrl + lowercase is the same as Ctrl + uppercase so you 
don't have to hold Shift down when typing Ctrl-A, Ctrl-B, ..., Ctrl-Z.




So, long story short, the reason you can't mapC-;  is that there is no
such character.


For the record, this is also covered briefly in the FAQ:
http://vimhelp.appspot.com/vim_faq.txt.html#faq-20.5

regards,
Christian



Best regards,
Tony.
--
Nihilism should commence with oneself.

--
You received this message from the vim_use 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


Re: why the Up key doesn't work to go through the searching history

2011-04-07 Thread Tim Chase

On 04/07/2011 10:04 AM, wxuyec wrote:

while it works for gvim and the command mode.
after I press /, when I want to use Up key to
go through the searching history, I get a character
A inserted.


In addition to Tony's good advice, it would also be worthwhile to 
check that (1) you've got a build with command-line history 
enabled and (2) that you have some history to recall


For #1, issue

  :version

and check for +cmdline_hist or verify that

  :echo has('cmdline_hist')

returns 1.  If it's not built with cmdline_hist, you're likely 
running a stripped down vim tiny version and you may want to 
run/install/build a fuller-featured vim.



For #2, if you started Vim in compatible mode, the 'history' 
setting defaults to 0 which means no history is maintained. 
Check your value for 'history' to make sure it's 0


  :set cp? history?

You can override that setting.

Finally, if your term settings aren't detecting your up arrows, 
you should be able to use control+P instead (and control+N in 
place of down).


-tim




--
You received this message from the vim_use 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


Any non-programmer users of Vim here?

2011-04-07 Thread Eric Weir

I've downloaded and installed a copy of MacVim. I've peeked at a few of the 
help topics. [I'd like to run the tutorial, but haven't figured out how to do 
that, yet.] I'm not a programmer. Far from it. I'm intrigued for a least a 
couple reasons, the main one being the fact that Vim is command-driven, that 
everything's done from the keyboard. [My very first experience with an editor 
was with Wordstar on CPM, and I've missed doing everything from the keyboard 
ever since.] The outliner plugins appeal to me as well. [I was a long-time 
devote of MaxThink, running it in a DOS Window after moving to Windows from 
DOS, and in DOSBox under Linux and now on a Mac.] And so does the possibility 
of using it as a file manager as well as editor.

Still, as I imagine many are, I'm a bit intimidated complexity of the commands 
and the steep learning curve. So, I'm wondering if there are any ordinary, 
nonprogrammer writers here who've gotten comfortable with Vim as a writer's 
editor -- or is that just ridiculous to think of?

Thanks,
--
Eric Weir
Decatur, GA  USA
eew...@bellsouth.net




-- 
You received this message from the vim_use 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


Re: Any non-programmer users of Vim here?

2011-04-07 Thread tux.
Eric Weir schrob am 07.04.2011 22:15:
 So, I'm wondering if there are any ordinary, nonprogrammer writers here 
 who've gotten comfortable with Vim as a writer's editor -- or is that just 
 ridiculous to think of?

I use Vim (also) as a blog draft editor, so, mainly, yes. However, the
full power of its command mode may be a bit too complicated just for
writing plain text...

-- 
You received this message from the vim_use 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


Re: Any non-programmer users of Vim here?

2011-04-07 Thread David Ohlemacher

The way I learned vi:

1. Start a cheatsheet.  Don't download one.  Make your own.  Making it 
will help you learn.  I use Tomboy Notes, but at the beginning, paper is 
better.
2. Every time you find you don't know how to do something, like joining 
lines, look it up  (  use :help join  or google vim join ), and then add 
it to your list.   Once you really know the basic commands, remove it 
from your sheet.
3. Start vim and then enter :help tutor.  The ':' puts you in command 
mode so you can run the help command.  If it does not work, hit ESC 
and try again.
4. Learn what the modes mean (input, command, visual).   Without 
understanding them, everything else will be confusing.  Commands do not 
work if you aren't in the right mode first.

5. Use it.  Your fingers will get the habit.
6. The Vim book is helpful.
7. Once you get going, this mail list is very helpful.

After a fairly short time, you'll start getting irritated with all the 
rest of the apps that make you pick up the mouse.  You'll start to hit 
'i' out of habit in your email appand not like seeing an i.


I actually have used vim for many years, but only the bare basics.   I 
used it to tweak a file here or there, but never to write anything.   
Then KDE came out with Kdevelop 4.  Uggg!   After using KDevelop since 
2.0, I gave up on it.  I looked for other IDEs and liked none.So I 
started learning vim.I love it and no longer miss KDevelop.
Especially since I am finding myself writing code on a machine across 
the country through ssh.


My favorite thing about it is to be able open any number of windows in 
one pane ( see :sp and :vsp  and CTRL-W to navigate between windows).


vim turns my keyboard into a 200+ key text editing gamepad.

Good luck,
-d

--
David Ohlemacher
Senior Software Engineer
Scientific Solutions Inc.
99 Perimeter Rd Nashua New Hampshire 03063
603-880-3784

. o .
. . o
o o o

--
You received this message from the vim_use 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


Re: Any non-programmer users of Vim here?

2011-04-07 Thread Tony Mechelynck

On 07/04/11 22:15, Eric Weir wrote:


I've downloaded and installed a copy of MacVim. I've peeked at a few of the help topics. 
[I'd like to run the tutorial, but haven't figured out how to do that, yet.] I'm not a 
programmer. Far from it. I'm intrigued for a least a couple reasons, the main one being 
the fact that Vim is command-driven, that everything's done from the keyboard. [My very 
first experience with an editor was with Wordstar on CPM, and I've missed 
doing everything from the keyboard ever since.] The outliner plugins appeal to me as 
well. [I was a long-time devote of MaxThink, running it in a DOS Window after moving to 
Windows from DOS, and in DOSBox under Linux and now on a Mac.] And so does the 
possibility of using it as a file manager as well as editor.

Still, as I imagine many are, I'm a bit intimidated complexity of the commands 
and the steep learning curve. So, I'm wondering if there are any ordinary, 
nonprogrammer writers here who've gotten comfortable with Vim as a writer's 
editor -- or is that just ridiculous to think of?

Thanks,
--
Eric Weir
Decatur, GA  USA
eew...@bellsouth.net






Oh, it is not at all ridiculous to think of, the idea is just to take it 
slowly, bit by bit, and not think that next week you will already know 
everything about Vim from A to Zed, Alpha to Omega and Aleph to Tav.


How to use the vimtutor is explained in the first few lines of 
vimtutor.bat (for Windows) or of vimtutor (for Unix - Linux - Mac OS X - 
etc.) It is slightly different for Windows and for other OSes. Run that 
tutor as soon as you can, it will teach you the basics.


You're now subscribed to the vim_use, that's another good point. Read 
what is said here, and while at first some posts may pass you completely 
over the head, others will teach you useful tips and tricks about how to 
get the most out of Vim.


And finally, don't hesitate to use the help. When, in one of the posts 
in this mailing list, you come across a command, an option, etc., which 
is obscure to you, go find its help. The Vim help is infinitely better 
than what most other programs try to pass off as help and often is 
hardly more than an advertising pamphlet by comparison: with Vim, 
*everything* is covered in the help. So much so that the newbie 
sometimes faces a sort of needle-and-haystack problem; however, even 
against that problem there is help -- when I started using Vim it was in 
several places, but now most of the help about help has been brought 
together in one place, namely the helpfile helphelp.txt. So by typing


:help helphelp.txt

in a running Vim, you will be brought to help about using help, which 
IMO is the most important thing to master in order to become a 
proficient Vim user.



Best regards,
Tony.
--
What the hell, go ahead and put all your eggs in one basket.

--
You received this message from the vim_use 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


Re: Any non-programmer users of Vim here?

2011-04-07 Thread Tim Gray

On Apr 07, 2011 at 04:15 PM -0400, Eric Weir wrote:
Still, as I imagine many are, I'm a bit intimidated complexity of the 
commands and the steep learning curve. So, I'm wondering if there are any 
ordinary, nonprogrammer writers here who've gotten comfortable with Vim as a 
writer's editor -- or is that just ridiculous to think of?


I'm not a hardcore programmer, but I do use vim and other tools for technical 
stuff.  If you really are not doing anything programming or technical related, 
and just looking for a plain text editor, I might recommend looking at some 
other options.  Not that you couldn't get along with vim, but there are other 
tools out there that might be a little easier to get at first.  And if you 
don't need all of the power of vim, why not use something a bit easier to 
learn?


With that thought, I'd recommend looking at BBEdit (or it's free 'light' 
version, Textwrangler) or Textmate.  Though these programs don't have the 
modal nature of vim, you can do most if not all of your work in them all 
through the keyboard: selecting text, find and replace, general text 
modification, etc.  Of course try out MacVim too along side the other two.


I'm a long time user of BBEdit and have been very happy with it.  The support 
is great and it has a great manual.  It doesn't have quite all the power, 
features, or customizability of vim, but it is pretty easy to dive in and use 
it as a simple plain text editor with no real learning curve.  And if you want 
more, there is plenty there.


--
You received this message from the vim_use 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


Re: Any non-programmer users of Vim here?

2011-04-07 Thread David Kahn
On Thu, Apr 7, 2011 at 3:38 PM, tux. der_tux...@arcor.de wrote:

 Eric Weir schrob am 07.04.2011 22:15:
  So, I'm wondering if there are any ordinary, nonprogrammer writers here
 who've gotten comfortable with Vim as a writer's editor -- or is that just
 ridiculous to think of?

 I use Vim (also) as a blog draft editor, so, mainly, yes. However, the
 full power of its command mode may be a bit too complicated just for
 writing plain text...

 What you can remember is aside from a few things, you can use macvim with
the mouse as you get used to it. I actually did my learning curve in about
6-8 hours and got productive (I am a programmer), and for about a week kept
looking things up and adding to my kbd commands if you do this and take
things one at a time I actually think you can have fun learning it. Just
dont be too hard on yourself, allow mouse use for awhile :)

For me it came down to getting a few simple things straight like using
nerdtree as file browser, learning how to grep / vimgrep to search, and how
to find and replace. I would think if you are just using to edit text you
could get up to speed pretty fast.


 --
 You received this message from the vim_use 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 from the vim_use 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


Re: Any non-programmer users of Vim here?

2011-04-07 Thread Paul Stewart
Hi Eric,

Firstly, I do use vim for programming (mainly php and sql), but, I also use
it as a text editor for typing and writing out stuff. For example, I use it
to keep minutes of meetings I attend while I am listeningthe commands
allow me to skip around the page so much faster than if I was using word or
another non-vim text editor.

Also, I am a user of viemu, which emulates vim in Word and outlookit is
a very good program (I have no financial interest in the product, but am a
user) I strongly recommend you have a look at www.viemu.com

Basically, the more you use vim, the faster you becomepersonally, I try
to use it whenever I can...I even use the vimperator plugin for firefox...I
am so used to the key movements that I hate using the mouse now, it seems
slow and foreign to me, almost frustrating.

Hope this helps

Regards
Paul

On Thu, Apr 7, 2011 at 1:15 PM, Eric Weir eew...@bellsouth.net wrote:


 I've downloaded and installed a copy of MacVim. I've peeked at a few of the
 help topics. [I'd like to run the tutorial, but haven't figured out how to
 do that, yet.] I'm not a programmer. Far from it. I'm intrigued for a least
 a couple reasons, the main one being the fact that Vim is command-driven,
 that everything's done from the keyboard. [My very first experience with an
 editor was with Wordstar on CPM, and I've missed doing everything from the
 keyboard ever since.] The outliner plugins appeal to me as well. [I was a
 long-time devote of MaxThink, running it in a DOS Window after moving to
 Windows from DOS, and in DOSBox under Linux and now on a Mac.] And so does
 the possibility of using it as a file manager as well as editor.

 Still, as I imagine many are, I'm a bit intimidated complexity of the
 commands and the steep learning curve. So, I'm wondering if there are any
 ordinary, nonprogrammer writers here who've gotten comfortable with Vim as a
 writer's editor -- or is that just ridiculous to think of?

 Thanks,

 --
 Eric Weir
 Decatur, GA  USA
 eew...@bellsouth.net




 --
 You received this message from the vim_use 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 from the vim_use 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


Re: Any non-programmer users of Vim here?

2011-04-07 Thread John Degen
On Apr 7, 11:11 pm, Tim Gray tg...@protozoic.com wrote:
 On Apr 07, 2011 at 04:15 PM -0400, Eric Weir wrote:

 Still, as I imagine many are, I'm a bit intimidated complexity of the
 commands and the steep learning curve. So, I'm wondering if there are any
 ordinary, nonprogrammer writers here who've gotten comfortable with Vim as a
 writer's editor -- or is that just ridiculous to think of?

snip

I used to be a translator. In the final years of this 'career' I used
Gvim as a sort of frontend to Microsoft Word and translation software.
I found that combination of autocompletion, autocorrection, marks,
sessions, the convenience of keyboard only editing, Vim's speed and
reliability, and the ease with which complicated commands can be
assigned to keystrokes helped me to become both a faster and a more
accurate typist. The added bonus was that sometimes I had to make
changes in exported translation memories (plain text files) and my Vim
knowledge saved many an hour of line by line corrections.
So I'd say: use Vim and learn a little every day. You can change
litterally everything in Vim, including its looks and what happens if
you type \t. You could probably even make it behave like Wordstar.

John

-- 
You received this message from the vim_use 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


Re: Any non-programmer users of Vim here?

2011-04-07 Thread David Kahn
On Thu, Apr 7, 2011 at 3:59 PM, David Ohlemacher dohlemac...@scisol.comwrote:

 The way I learned vi:

 1. Start a cheatsheet.  Don't download one.  Make your own.  Making it will
 help you learn.  I use Tomboy Notes, but at the beginning, paper is better.


Agreed... I copied and pasted to an ugly text file but it worked! But using
others sheets wholesale didnt.


 2. Every time you find you don't know how to do something, like joining
 lines, look it up  (  use :help join  or google vim join ), and then add it
 to your list.   Once you really know the basic commands, remove it from your
 sheet.
 3. Start vim and then enter :help tutor.  The ':' puts you in command mode
 so you can run the help command.  If it does not work, hit ESC and try
 again.
 4. Learn what the modes mean (input, command, visual).   Without
 understanding them, everything else will be confusing.  Commands do not work
 if you aren't in the right mode first.
 5. Use it.  Your fingers will get the habit.
 6. The Vim book is helpful.
 7. Once you get going, this mail list is very helpful.

 After a fairly short time, you'll start getting irritated with all the rest
 of the apps that make you pick up the mouse.  You'll start to hit 'i' out of
 habit in your email appand not like seeing an i.


I cracked up the first time I found myself trying to use 'k' to move up a
cell in a spreadsheet :)


 I actually have used vim for many years, but only the bare basics.   I used
 it to tweak a file here or there, but never to write anything.   Then KDE
 came out with Kdevelop 4.  Uggg!   After using KDevelop since 2.0, I gave up
 on it.  I looked for other IDEs and liked none.So I started learning
 vim.I love it and no longer miss KDevelop.Especially since I am
 finding myself writing code on a machine across the country through ssh.

 My favorite thing about it is to be able open any number of windows in one
 pane ( see :sp and :vsp  and CTRL-W to navigate between windows).


Amen!


 vim turns my keyboard into a 200+ key text editing gamepad.

 Good luck,
 -d

 --
 David Ohlemacher
 Senior Software Engineer
 Scientific Solutions Inc.
 99 Perimeter Rd Nashua New Hampshire 03063
 603-880-3784

 . o .
 . . o
 o o o


 --
 You received this message from the vim_use 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 from the vim_use 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


Re: Any non-programmer users of Vim here?

2011-04-07 Thread Eric Weir

On Apr 7, 2011, at 4:59 PM, David Ohlemacher wrote:

 1. Start a cheatsheet.  Don't download one.  Make your own.  Making it will 
 help you learn.  I use Tomboy Notes, but at the beginning, paper is better.
 
 After a fairly short time, you'll start getting irritated with all the rest 
 of the apps that make you pick up the mouse.  You'll start to hit 'i' out of 
 habit in your email appand not like seeing an i.

Thanks for the suggestion, David. They make sense. I can imagine getting to the 
place where it irritates me to have to leave the keyboard.

--
Eric Weir
Decatur, GA  USA
eew...@bellsouth.net




-- 
You received this message from the vim_use 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


Re: Any non-programmer users of Vim here?

2011-04-07 Thread Eric Weir

On Apr 7, 2011, at 5:03 PM, Tony Mechelynck wrote:

 And finally, don't hesitate to use the help. When, in one of the posts in 
 this mailing list, you come across a command, an option, etc., which is 
 obscure to you, go find its help. The Vim help is infinitely better than what 
 most other programs try to pass off as help and often is hardly more than 
 an advertising pamphlet by comparison: with Vim, *everything* is covered in 
 the help. So much so that the newbie sometimes faces a sort of 
 needle-and-haystack problem; however, even against that problem there is help 
 -- when I started using Vim it was in several places, but now most of the 
 help about help has been brought together in one place, namely the helpfile 
 helphelp.txt. So by typing
 
   :help helphelp.txt
 
 in a running Vim, you will be brought to help about using help, which IMO 
 is the most important thing to master in order to become a proficient Vim 
 user.

Wow! Even help for help. Cool. I'd gotten the sense already that Vim's help was 
really good. But help for help. Pretty cool.

Thanks,
--
Eric Weir
Decatur, GA  USA
eew...@bellsouth.net




-- 
You received this message from the vim_use 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


Re: Any non-programmer users of Vim here?

2011-04-07 Thread Eric Weir

On Apr 7, 2011, at 5:11 PM, Tim Gray wrote:

 With that thought, I'd recommend looking at BBEdit (or it's free 'light' 
 version, Textwrangler) or Textmate.  Though these programs don't have the 
 modal nature of vim, you can do most if not all of your work in them all 
 through the keyboard: selecting text, find and replace, general text 
 modification, etc.  Of course try out MacVim too along side the other two.

Thanks for the suggestion, Tim. I'll keep it in mind. 

--
Eric Weir
Decatur, GA  USA
eew...@bellsouth.net




-- 
You received this message from the vim_use 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


Re: Any non-programmer users of Vim here?

2011-04-07 Thread Eric Weir

On Apr 7, 2011, at 5:19 PM, David Kahn wrote:

 What you can remember is aside from a few things, you can use macvim with the 
 mouse as you get used to it. I actually did my learning curve in about 6-8 
 hours and got productive (I am a programmer), and for about a week kept 
 looking things up and adding to my kbd commands if you do this and take 
 things one at a time I actually think you can have fun learning it. Just dont 
 be too hard on yourself, allow mouse use for awhile :)
 
 For me it came down to getting a few simple things straight like using 
 nerdtree as file browser, learning how to grep / vimgrep to search, and how 
 to find and replace. I would think if you are just using to edit text you 
 could get up to speed pretty fast. 


Thanks, for the encouragement, David.

--
Eric Weir
Decatur, GA  USA
eew...@bellsouth.net




-- 
You received this message from the vim_use 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


Re: Any non-programmer users of Vim here?

2011-04-07 Thread Tim Gray

On Apr 07, 2011 at 08:58 PM -0400, Eric Weir wrote:

Thanks for the suggestion, Tim. I'll keep it in mind.


No problem.  I've really been enjoying vim, but I feel like to get the most 
out of it you need to a) put the time in to learn it and b) put the time in 
*configuring* to make it work for you.


--
You received this message from the vim_use 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


Re: Any non-programmer users of Vim here?

2011-04-07 Thread Eric Weir

On Apr 7, 2011, at 5:27 PM, Paul Stewart wrote:

 Firstly, I do use vim for programming (mainly php and sql), but, I also use 
 it as a text editor for typing and writing out stuff. For example, I use it 
 to keep minutes of meetings I attend while I am listeningthe commands 
 allow me to skip around the page so much faster than if I was using word or 
 another non-vim text editor.
 
 Basically, the more you use vim, the faster you becomepersonally, I try 
 to use it whenever I can...I even use the vimperator plugin for firefox...I 
 am so used to the key movements that I hate using the mouse now, it seems 
 slow and foreign to me, almost frustrating.

Thanks for the encouragement, Paul. Don't use Word, so Viemu would not useful 
to me, but I did check it out. The emulation of it in use in Visual Studio is 
fascinating.  

--
Eric Weir
Decatur, GA  USA
eew...@bellsouth.net




-- 
You received this message from the vim_use 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


Re: Any non-programmer users of Vim here?

2011-04-07 Thread Eric Weir

On Apr 7, 2011, at 5:33 PM, John Degen wrote:

 I used to be a translator. In the final years of this 'career' I used
 Gvim as a sort of frontend to Microsoft Word and translation software.
 I found that combination of autocompletion, autocorrection, marks,
 sessions, the convenience of keyboard only editing, Vim's speed and
 reliability, and the ease with which complicated commands can be
 assigned to keystrokes helped me to become both a faster and a more
 accurate typist.
 ...
 So I'd say: use Vim and learn a little every day. You can change
 litterally everything in Vim, including its looks and what happens if
 you type \t. You could probably even make it behave like Wordstar.

Thanks, John. Hope to find some free time in the next few days just to mess 
around with it -- actually, to do the tutorial -- and maybe get over the 
initial hump of total bafflement.

--
Eric Weir
Decatur, GA  USA
eew...@bellsouth.net




-- 
You received this message from the vim_use 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


Re: Any non-programmer users of Vim here?

2011-04-07 Thread David Lam
On Thu, Apr 7, 2011 at 1:15 PM, Eric Weir eew...@bellsouth.net wrote:


 I've downloaded and installed a copy of MacVim. I've peeked at a few of the
 help topics. [I'd like to run the tutorial, but haven't figured out how to
 do that, yet.] I'm not a programmer. Far from it. I'm intrigued for a least
 a couple reasons, the main one being the fact that Vim is command-driven,
 that everything's done from the keyboard. [My very first experience with an
 editor was with Wordstar on CPM, and I've missed doing everything from the
 keyboard ever since.] The outliner plugins appeal to me as well. [I was a
 long-time devote of MaxThink, running it in a DOS Window after moving to
 Windows from DOS, and in DOSBox under Linux and now on a Mac.] And so does
 the possibility of using it as a file manager as well as editor.

 Still, as I imagine many are, I'm a bit intimidated complexity of the
 commands and the steep learning curve. So, I'm wondering if there are any
 ordinary, nonprogrammer writers here who've gotten comfortable with Vim as a
 writer's editor -- or is that just ridiculous to think of?


hmm, well I use Vim for programming mainly, but personally I'd use it for
anything involving text

two more features you might find useful for plain ol' writing:

 - spell checking   :h spell   (basically, :set spell, then z= to
correct a word)
 - insert mode word completion   :h i_ctrl-p(type the start of a
word, then ctrl+p to complete it)

-- 
You received this message from the vim_use 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


Re: Any non-programmer users of Vim here?

2011-04-07 Thread Tony Mechelynck

On 08/04/11 02:56, Eric Weir wrote:
[...]

Wow! Even help for help. Cool. I'd gotten the sense already that Vim's help was 
really good. But help for help. Pretty cool.


With a documentation as voluminous as Vim's, you need ways to help you 
find what you're looking for: analytical table of contents, indexes, 
help by subject, searching the whole help text for some regular 
expression, ...


When the latter (the :helpgrep command) was added (at patchlevel 
6.1.423) I found it pretty cool too. (Then, as a kind of afterthought, 
:vimgrep arrived in 7.0, which shows how important the help is to Vim 
development. :-) )



Best regards,
Tony.
--
All [zoos] actually offer to the public in return for the taxes spent
upon them is a form of idle and witless amusement, compared to which a
visit to a penitentiary, or even to a State legislature in session, is
informing, stimulating and ennobling.
-- H. L. Mencken

--
You received this message from the vim_use 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


Re: menu.vim overwritten

2011-04-07 Thread John Little
On Apr 7, 6:54 pm, rameo rai...@gmail.com wrote:

 and moved my menu.vim to vimfiles (root) but received this error:

 Error detected while processing C:\Program Files\Vim
 \vim73\filetype.vim:

You've got that error because the standard menu.vim wasn't found.  The
point with my approach  is that one can leave the distributed files
alone, so that a new version won't cause trouble.  To solve this, just
put a dummy script, or a copy of your version, back  in C:\Program
Files\Vim\vim73.

 What do you mean by early in the runtimepath option?

The runtimepath option is a list of directories.  On Windows the
default is

$HOME/vimfiles,$VIM/vimfiles,$VIMRUNTIME,$VIM/vimfiles/after,$HOME/
vimfiles/after

By early I meant a directory that comes before $VIMRUNTIME in the
list.  I use $HOME/vimfiles, but for a windows installation with
several users all wanting to use your menu.vim $VIM/vimfiles would be
better; you may have to create it.

Regards, John

-- 
You received this message from the vim_use 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


Re: menu.vim overwritten

2011-04-07 Thread John Little
On Apr 7, 4:26 pm, Tony Mechelynck antoine.mechely...@gmail.com
wrote:

 To avoid fossilization, you might want to use :runtime! menu.vim (with
 bang, and without quotes): that sources every menu.vim in all
 'runtimepath' directories in turn, and in the order in which they appear
 in 'runtimepath'.

 However, for it to work, your menu has to be written in such a way that
 it meshes gracefully with the default one, and possibly with any
 additional menu added by 3rd-party plugins...

IMO that's too hard, or not worth the bother, because menu.vim isn't
written to facilitate meshing with it gracefully, mostly in that it
doesn't define what will or will not change.

Regards, John

-- 
You received this message from the vim_use 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


Re: Any non-programmer users of Vim here?

2011-04-07 Thread Tim Chase

On 04/07/2011 08:05 PM, Tim Gray wrote:

I feel like to get the most out of it you need to a) put the
time in to learn it and b) put the time in *configuring* to
make it work for you.


While I certainly agree with (a), I'm at the other end of the 
spectrum on (b).  One of the things I like most about vi/vim/gvim 
is that I have it on all my *nix boxes by default (whether vim on 
Linux and Mac, or nvi on OpenBSD if I haven't yet installed vim) 
and have installed it on my Win32 boxes...it behaves (mostly) the 
same everywhere out-of-the-box without any tweaks.  It might be a 
rarity as lots of folks on the list have tricked-out configs, but 
other people have told similar tales[1].  The cost of losing a 
config or keeping it in sync across umpteen boxes is more hassle 
than it's worth to me.


Just my $0.02 on it.  (and to answer your initial question, I use 
Vim for all my text editing, whether code, HTML/CSS, or just 
plain vanilla text-files like to-do lists and emails)


-tim


[1]
http://oreilly.com/pub/a/oreilly/ask_tim/1999/unix_editor.html




--
You received this message from the vim_use 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


Re: GVIM 7.3 can not start up due to BadAlloc

2011-04-07 Thread John Little
On Apr 7, 2:39 pm, Jerry zhiweiw...@gmail.com wrote:
 Hello, I have just installed vim 7.3. When I try to start gvim, I got
 the following error message:
...
 The program 'gvim' received an X Window System error.

There was a problem affecting GTK apps like gvim on Solaris a couple
of years ago, a bug in X somewhere.  Can you run another GTK app?

Regards, John

-- 
You received this message from the vim_use 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


Re: why remap C-; is not working

2011-04-07 Thread John Little
 ... I'm sure there's something similar for Windows/Linux.

For windows, see http://vim.wikia.com/wiki/Map_caps_lock_to_escape_in_Windows
For unix-like systems with X, use xmodmap.

Regards, John

-- 
You received this message from the vim_use 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


Re: why remap C-; is not working

2011-04-07 Thread John Little
On Apr 8, 6:18 am, Tony Mechelynck antoine.mechely...@gmail.com
wrote:

... interesting explanations, particularly why ASCII DEL is 127...

BTW, serious attention is being given to removing this ancient kludge
from vim, with an active thread in vim_dev:
https://groups.google.com/group/vim_dev/browse_frm/thread/d9ba7d51d7d9eb73?hl=en#

Regards, John

-- 
You received this message from the vim_use 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


Re: Any non-programmer users of Vim here?

2011-04-07 Thread David Ohlemacher
I have .vim and .vimrc check into my svn repo along with all my 
environment files (tcsh).   Then keeping in sync is just a svn up away.


On 04/07/2011 10:20 PM, Tim Chase wrote:

On 04/07/2011 08:05 PM, Tim Gray wrote:

I feel like to get the most out of it you need to a) put the
time in to learn it and b) put the time in *configuring* to
make it work for you.

While I certainly agree with (a), I'm at the other end of the
spectrum on (b).  One of the things I like most about vi/vim/gvim
is that I have it on all my *nix boxes by default (whether vim on
Linux and Mac, or nvi on OpenBSD if I haven't yet installed vim)
and have installed it on my Win32 boxes...it behaves (mostly) the
same everywhere out-of-the-box without any tweaks.  It might be a
rarity as lots of folks on the list have tricked-out configs, but
other people have told similar tales[1].  The cost of losing a
config or keeping it in sync across umpteen boxes is more hassle
than it's worth to me.

Just my $0.02 on it.  (and to answer your initial question, I use
Vim for all my text editing, whether code, HTML/CSS, or just
plain vanilla text-files like to-do lists and emails)

-tim


[1]
http://oreilly.com/pub/a/oreilly/ask_tim/1999/unix_editor.html






--
David Ohlemacher
Senior Software Engineer
Scientific Solutions Inc.
99 Perimeter Rd Nashua New Hampshire 03063
603-880-3784

. o .
. . o
o o o

--
You received this message from the vim_use 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


Re: Any non-programmer users of Vim here?

2011-04-07 Thread Tony Mechelynck

On 08/04/11 04:20, Tim Chase wrote:

On 04/07/2011 08:05 PM, Tim Gray wrote:

I feel like to get the most out of it you need to a) put the
time in to learn it and b) put the time in *configuring* to
make it work for you.


While I certainly agree with (a), I'm at the other end of the spectrum
on (b). One of the things I like most about vi/vim/gvim is that I have
it on all my *nix boxes by default (whether vim on Linux and Mac, or nvi
on OpenBSD if I haven't yet installed vim) and have installed it on my
Win32 boxes...it behaves (mostly) the same everywhere out-of-the-box
without any tweaks. It might be a rarity as lots of folks on the list
have tricked-out configs, but other people have told similar tales[1].
The cost of losing a config or keeping it in sync across umpteen boxes
is more hassle than it's worth to me.

Just my $0.02 on it. (and to answer your initial question, I use Vim for
all my text editing, whether code, HTML/CSS, or just plain vanilla
text-files like to-do lists and emails)

-tim


[1]
http://oreilly.com/pub/a/oreilly/ask_tim/1999/unix_editor.html






My approach to vimrc, colorscheme etc. is that it all grew, I'd be 
tempted to say naturally. My first vimrc was


runtime vimrc_example.vim

which isn't much but was already (to me) much better than just -N on the 
command-line. Then when I found something I didn't like, I changed it, 
usually by adding something at the bottom: my second vimrc was


runtime vimrc_example.vim
filetype indent off

to avoid high-handed intervention in my unsystematic HTML indenting. It 
all grew from there, and nowadays it's 688 lines (including empty lines 
and comments), not counting a colorscheme and a few plugins that I wrote 
or downloaded.


As for keeping it in sync, I don't have your problems: I used to have 
one vimrc, %HOME%\_vimrc on a Windows Fat32 partition, symlinked from 
wherever ~/.vimrc was on an ext2 (at that time) Linux partition on the 
same disk. Now I've scrapped Windows, I don't even use double-boot 
anymore, but I've kept the if has('unix') | ... | else | ... | endif 
(and similar) constructs. And nowadays I keep my vimrc in the $HOME for 
my unprivileged login name, but symlinked from /root/.vimrc so even if I 
have to switch from one to the other, Vim behaves identically. That's 
the amount of it.



Best regards,
Tony.
--
Help me, I'm a prisoner in a Fortune cookie file!

--
You received this message from the vim_use 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


Re: menu.vim overwritten

2011-04-07 Thread Tony Mechelynck

On 08/04/11 03:50, John Little wrote:

On Apr 7, 6:54 pm, rameorai...@gmail.com  wrote:


and moved my menu.vim to vimfiles (root) but received this error:

Error detected while processing C:\Program Files\Vim
\vim73\filetype.vim:


You've got that error because the standard menu.vim wasn't found.  The
point with my approach  is that one can leave the distributed files
alone, so that a new version won't cause trouble.  To solve this, just
put a dummy script, or a copy of your version, back  in C:\Program
Files\Vim\vim73.


Any change (including any addition or deletion) in $VIMRUNTIME or below 
it at any level is courting disaster, because:
- the various scripts distributed with Vim rely on finding what was put 
there at install time (as you saw);
- any upgrade may (and sooner or later some upgrade will) remove your 
changes with no warning.





What do you mean by early in the runtimepath option?


The runtimepath option is a list of directories.  On Windows the
default is

$HOME/vimfiles,$VIM/vimfiles,$VIMRUNTIME,$VIM/vimfiles/after,$HOME/
vimfiles/after

By early I meant a directory that comes before $VIMRUNTIME in the
list.  I use $HOME/vimfiles, but for a windows installation with
several users all wanting to use your menu.vim $VIM/vimfiles would be
better; you may have to create it.

Regards, John



Best regards,
Tony.
--
This is a test of the Emergency Broadcast System.  If this had been an
actual emergency, do you really think we'd stick around to tell you?

--
You received this message from the vim_use 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


Re: Any non-programmer users of Vim here?

2011-04-07 Thread Scott Bicknell
On Thu, Apr 07, 2011 at 04:15:37PM -0400, Eric Weir wrote:
 Still, as I imagine many are, I'm a bit intimidated complexity 
 of the commands and the steep learning curve. So, I'm wondering 
 if there are any ordinary, nonprogrammer writers here who've 
 gotten comfortable with Vim as a writer's editor -- or is that 
 just ridiculous to think of?

Not at all. I don't program other than writing occasional shell 
scripts. Most of my use of Vim is for writing prose. Using 
anything else for composition and editing is unthinkable. 
Whenever I try to use a word processor or other editor for 
writing, the document ends up with unwanted auto-formatting and 
tell-tail Vim commands in the text.

Go through the vimtutor included with the program, but also read 
the user manual (:h usr_toc). It is based on the book Vi 
IMproved--Vim, which is an in-depth tutorial. The user manual is 
truly excellent.

-- 
Scott Bicknell

-- 
You received this message from the vim_use 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


Re: Any non-programmer users of Vim here?

2011-04-07 Thread lith
Hi,

On Thursday, April 7, 2011 10:15:37 PM UTC+2, Eric Weir wrote:

 Still, as I imagine many are, I'm a bit intimidated complexity of the 
 commands and the steep learning curve. So, I'm wondering if there are any 
 ordinary, nonprogrammer writers here who've gotten comfortable with Vim as a 
 writer's editor -- or is that just ridiculous to think of?


I think it's a matter of how much of your work you will be doing with vim. 
Learning the vi(m) style to work with plain text pays off if you do most of 
your text editing tasks in vim. If you still use word processors and other 
text editors a lot, I personally wouldn't consider vim a good choice.

There is also the question how you get text edited with vim into some format 
you can submit. vim isn't particularly good at editing text with no hard 
line breaks (tw=0), i.e. soft wrap. In order to get some text formatting 
into e.g. Word, most likely requires the use of some command line tool that 
converts the text to something Word can read. I'm not sure such tools are 
easy to use for somebody who has never written a single line of code.

Regards,
Tom

-- 
You received this message from the vim_use 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


Re: Any non-programmer users of Vim here?

2011-04-07 Thread Magnus Woldrich

On Apr 7, 2011, at 4:59 PM, David Ohlemacher wrote:
After a fairly short time, you'll start getting irritated with all the
rest of the apps that make you pick up the mouse. You'll start to hit
'i' out of habit in your email appand not like seeing an i.


I use vim for everything. And I have vim-bindings in *every* application that I
use.
Here's my setup:

  IRC: irssi with vi-mode [0] and ii [1] with vim [2]
  PDF: apvlv [3]
Shell: zsh with  set -o vi
Music: mpd [4] with Pimpd [5]
Video: mplayer
 Readline: set editing-mode vi
   set keymap vi-insert
  Browser: Firefox with pentadactyl [6]
 Writing Mail: mutt, with editor set to vim

Oh, and I also use Vim for programming and every other situation where I write
text. Pentadactyl even lets you use Vim when entering text in web forms; just
press ^i and Vim is launched.

0: https://github.com/trapd00r/irssi-scripts/tree/master/vim-mode
1: http://tools.suckless.org/ii/
2: http://nion.modprobe.de/blog/archives/440-Using-the-ii-irc-client.html
3: https://code.google.com/p/apvlv/
4: http://mpd.wikia.com/wiki/Music_Player_Daemon_Wiki
5: https://github.com/trapd00r/pimpd
6: http://dactyl.sourceforge.net/pentadactyl/


--
Magnus Woldrich
m...@japh.se
http://japh.se

--
You received this message from the vim_use 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


Re: Any non-programmer users of Vim here?

2011-04-07 Thread Magnus Woldrich

On 2011-04-07 20:56, Eric Weir wrote:

Wow! Even help for help. Cool. I'd gotten the sense already that Vim's
help was really good. But help for help. Pretty cool.


Indeed, the help in vim is fantastic. Other than that, I'd recommend just
reading this list; look up stuff people talk about, don't be afraid to ask.
The #vim channel on freenode is also a great place for a more realtime
alternative.
--
Magnus Woldrich
m...@japh.se
http://japh.se

--
You received this message from the vim_use 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


Re: Any non-programmer users of Vim here?

2011-04-07 Thread Magnus Woldrich

On 2011-04-07 16:15, Eric Weir wrote:

So, I'm wondering if there are any ordinary, nonprogrammer writers here
who've gotten comfortable with Vim as a writer's editor -- or is that
just ridiculous to think of?


Though they sure are programmers, I'd like to point out that Tom Christiansen
used Vim when writing the Perl Cookbook [0] (his co-author Nathan Torkington
used emacs).

0: http://oreilly.com/catalog/9781565922433/

--
Magnus Woldrich
m...@japh.se
http://japh.se

--
You received this message from the vim_use 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