edenzik / macvim

Automatically exported from code.google.com/p/macvim
0 stars 0 forks source link

Ctrl+A doesn't go to start of line when typing `:' commands #228

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
This is a minor issue

I am on latest snapshot 50

1) press `:'

2) press Ctrl+E - end of line - OK

3) press Fn + left - start of line - OK

4) press Fn + right - end of line - OK

5) press Ctrl + A - nothing happens

I would expect to Ctrl+A to behave in accordance with shell VIM or Terminal 
itself`

Original issue reported on code.google.com by lsni...@gmail.com on 25 Oct 2009 at 2:21

GoogleCodeExporter commented 9 years ago
I'm not sure what you are talking about.  Ctrl-A means something else in Vim.  
From the Vim help:

                            *c_CTRL-A*
CTRL-A      All names that match the pattern in front of the cursor are
        inserted.

Please always look at the help before reporting an issue.

Original comment by bjorn.winckler@gmail.com on 25 Oct 2009 at 2:30

GoogleCodeExporter commented 9 years ago
Sorry you are right, I didn't check what VIM actually does - I assumed it would 
do the same as, say, bash shell

I wonder why VIM maps that feature to Ctrl+A. Not extremely useful, is it, and 
a bit confusing if you often type 
shell commands into the `:' line. Anyway that's one for Bram

Original comment by lsni...@gmail.com on 25 Oct 2009 at 2:40

GoogleCodeExporter commented 9 years ago
Vim uses Ctrl+b to go to the _B_eginning of the line.  If you prefer Ctrl+a you 
can add this line to your .vimrc:

cnoremap <C-a> <C-b>

Original comment by bjorn.winckler@gmail.com on 25 Oct 2009 at 2:49

GoogleCodeExporter commented 9 years ago
Cool!

Thanks Bjorn!

Original comment by lsni...@gmail.com on 25 Oct 2009 at 2:56

GoogleCodeExporter commented 9 years ago
The reason this is slightly confusing is that Ctrl-A/Ctrl-E works literally 
everywhere in OS X, and on MacBook 
laptops they are more convenient than Fn-left/Fn-right (the keys are too small 
and you have to move your hands 
too much)

Original comment by lsni...@gmail.com on 25 Oct 2009 at 3:00