manual
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
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
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
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
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
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
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
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
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
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
If I wrongly set nnoremap w k in my command mode, how to restore the function of "w"? Linda
Re: arrow key
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
if type /q, vim will search the letter "q" only for one time. how i can search "q" multiple times? Linda
arrow key
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
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
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
what is the difference to run vim from application and run vim from terminal? Thanks, Linda
Re: imap and map
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