manual

2007-05-25 Thread linda . s

After clicking the user manuual under help, I wonder which command can
be used to open these help txt in the manual?
Thanks,
Linda


book

2007-05-14 Thread linda . s

Hi,
I am a beginner in VIM. Wonder whether there is any good book for VIM?
Also, what is the difference between vim and latex?
Thanks,
Linda


Re: editor size

2007-05-07 Thread linda . s

On 5/7/07, Michael Henry <[EMAIL PROTECTED]> wrote:

linda.s wrote:
> After I set textwidth=78 in the .gvimrc and .vimrc, I opened my vim
> editor and the cursor ends at column 68. Everytime I need manaually
> drag the editor to make it column 78. Is there a way to make the
> editor the desired size (column 78)?

Linda,

Have a look at the 'columns' variable (:help 'columns).  It controls the
width of your window.  The 'textwidth' variable controls the column at
which your text will wrap for things like the "format lines" command
(:help gq), and it sets the maximum width of text that will be inserted
(longer lines will be broken at whitespace).

Try this in your .gvimrc:

set columns=78


I set columns=78 but when I opened vim editor, I found the editor's
column size to be 70. Why?


editor size

2007-05-06 Thread linda . s

After I set textwidth=78 in the .gvimrc and .vimrc, I opened my vim
editor and the cursor ends at column 68. Everytime I need manaually
drag the editor to make it column 78. Is there a way to make the
editor the desired size (column 78)?


textwidth

2007-04-30 Thread linda . s

After I set textwidth=66 in the .gvimrc and .vimrc, I edited my vim
file. I tried adding one new word but the the original well-displayed
paragraph immediately appeared as if there was no textwidth setting.
Why?


Re: a question

2006-04-13 Thread linda . s
On 4/13/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> linda.s <[EMAIL PROTECTED]> wrote on 2006.04.13 16:02:44:
>
> > I have both vim and gvim app under my applications in the Mac. Both work
> fine.
> > I typed vim in the terminal and it successfully went yo VIM interface.
> > However, if I typed gvim, there came an error message "-bash: gvim:
> > command not found". If I want to launch gvim from the terminal, what
> > to do
>
>
> try: vim -g
>
vim -g
E25: GUI cannot be used: Not enabled at compile time


a question

2006-04-13 Thread linda . s
I have both vim and gvim app under my applications in the Mac. Both work fine.
I typed vim in the terminal and it successfully went yo VIM interface.
However, if I typed gvim, there came an error message "-bash: gvim:
command not found". If I want to launch gvim from the terminal, what
to do


folder

2006-04-08 Thread linda . s
In the vim, how to create a folder and make it permanent? (I tried
tools/folding/create folder but it was not a permanent change).


change word

2006-04-08 Thread linda . s
I read the help file of "cw" but really can not understand what it means.
I use "/" to get the word i want to replace, then no matter i type :cw
or cw, unexpected results show.


open file

2006-04-08 Thread linda . s
In the command mode, i typed :vim filename and got the error message:
not an edit command
why i can not use :vim to open the file?
Linda


restore function

2006-04-08 Thread linda . s
If I wrongly set  nnoremap w k in my command mode, how to restore the
function of "w"?
Linda


Re: arrow key

2006-04-08 Thread linda . s
On 4/8/06, Suresh Govindachar <[EMAIL PROTECTED]> wrote:
>
>linda.s Sent April 08, 2006 7:13 PM
>
>   > [Question concerned use of arrow keys to
>   > move vertically when lines are wrapped]
>
>   See help gj and help gk
>
>   In another post, you asked about examples of map and imap;
>   and in yet another post, I gave an example of an imap.
>   Here are examples of nmap:
>
>   noremap  gj
>   noremapgk
>
>   Since I use the alphabet keys (rather than arrow keys) to move, I
>   have the following maps in my _vimrc:
>
>   nnoremap  j  gj
>   nnoremap gj   j
>   nnoremap  k  gk
>   nnoremap gk   k
>
>   --Suresh
>
>
Thanks. But what is the difference between "map" and "nnoremap"? I
tested it and they are the same. If so, why use "nnoremap"?
Also, I wonder how I can use the help file? I mean though I know "j"
means go down one space , i can not image "gj" can solve my question.
Thanks again,
Linda


multiple search

2006-04-08 Thread linda . s
if type /q,
vim will search the letter "q" only for one time. how i can search "q"
multiple times?
Linda


arrow key

2006-04-08 Thread linda . s
I used arrow keys to move the cursor, but sometimes I will jump from
line one to line three, ignoring line two.
i have to use mouse to click the place where I want to insert in the line two.
Is there anyway to move to line two just using the keyboard.
I guess VIM treat the sentence which extends from line one to line two
as a whole one s it jumps directly from line one to line three if
using the arrow key...


Re: delete in the insert mode

2006-04-08 Thread linda . s
in the command mode, I pushed "shift" and "j" together to join lines.
in the insert mode, I pushed "control","shift" and "o" together but it
did not work. I am very new to this...

On 4/8/06, Eric Arnold <[EMAIL PROTECTED]> wrote:
>
> ^OJ
>
> See :help i_CTRL-O
>
>
> --- "linda.s" <[EMAIL PROTECTED]> wrote:
>
> > Hi,
> > In the command mode, shif + j can move the stuffs in the following
> > line to the current line, for example:
> > (line1) aaa
> > (line2) bbb
> > will become:
> > aaa bbb
> > i wonder how to do it in the insert mode?
> > Linda
> >
>
>


delete in the insert mode

2006-04-08 Thread linda . s
Hi,
In the command mode, shif + j can move the stuffs in the following
line to the current line, for example:
(line1) aaa
(line2) bbb
will become:
aaa bbb
i wonder how to do it in the insert mode?
Linda


run vim

2006-04-08 Thread linda . s
what is the difference to run vim from application and run vim from terminal?
Thanks,
Linda


Re: imap and map

2006-04-08 Thread linda . s
On 4/6/06, Yakov Lerner <[EMAIL PROTECTED]> wrote:
> On 4/6/06, linda. s <[EMAIL PROTECTED]> wrote:
> > What is the difference between imap and map. Very hard to understand...
>
> imap for insert mode. map for normal mode and 2 other modes
> (visual and operator-pending). for simpicity, you can say that map
> is for normal mode (such it was in original vi). For normal-mode
> mapping only, you use nmap, but map is ok too.
>
> Yakov
>
Can you give an example?
Linda