myvim icon indicating copy to clipboard operation
myvim copied to clipboard

suggestion: {count}<C-G> is so useful, are you sure you want to disabled it?

Open sk1418 opened this issue 12 years ago • 15 comments

clicked your vimrc from stackoverflow (the autocmd CmdWinEnter Q), just saw one line: https://github.com/Marslo/VimConfig/blob/master/Configurations/vimrc#L363

is very useful (to me), you want to disable it?

:h ctrl-g

sk1418 avatar Apr 11 '14 13:04 sk1418

Hi @sk1418, thanks very much for your suggestion! I'm very glad someone can discuess vim-skills with me. :+1:

I'm pretty longly of using vim in my real life. :(


Well, for your suggestion, I'm tried the Ctrl+g

  1. ctrl+g in the normal mode: print the simple file information. I've using my statusline instead.
  2. About (visual)g + ctrl+g, I think this function pretty cool
  3. About ctrl+g + j/k in insert mode, that useful too, :)

By the way, the <C-g> has been mapped as <A-g> to open MRU. Have you used MRU?

Here my statusline: vim1

marslo avatar Apr 14 '14 09:04 marslo

Okay, It was just a suggestion, if you find your comfortable way to achieve the same thing, it's fine. and you are not alone, in vim world... :) yes, I had MRU installed. but I have another mapping for trigger it.

On Mon, Apr 14, 2014 at 11:14 AM, Marslo [email protected] wrote:

Hi @sk1418 https://github.com/sk1418, thanks very much for your suggestion! I'm very glad someone can discuess vim-skills with me. [image: :+1:]

I'm pretty longly of using vim in my real life. :(

Well, for your suggestion, I'm tried the Ctrl+g

  1. ctrl+g in the normal mode: print the simple file informationhttp://vimdoc.sourceforge.net/htmldoc/editing.html#CTRL-G. I've using my statuslinehttps://github.com/Marslo/VimConfig/blob/0d8f03c1a2a96ccbc16219ba98647e7c5dc8a31a/Configurations/vimrc#L229instead.
  2. About (visual)g + ctrl+g, I think this function pretty cool
  3. About ctrl+g + j/k in insert mode, that useful too, :)

By the way, the has been mapped as https://github.com/Marslo/VimConfig/blob/0d8f03c1a2a96ccbc16219ba98647e7c5dc8a31a/Configurations/vimrc#L366to open MRU https://github.com/yegappan/mru. Have you used MRU?

Here my statusline: [image: vim1]https://cloud.githubusercontent.com/assets/5822057/2693436/b88c9388-c3b4-11e3-8d1d-1ab0c260289c.png

Reply to this email directly or view it on GitHubhttps://github.com/Marslo/VimConfig/issues/1#issuecomment-40346584 .

sk1418 avatar Apr 14 '14 09:04 sk1418

Cool! <Leader>fr? :)

marslo avatar Apr 14 '14 10:04 marslo

yes, I have mapped fr for triggering MRU. since I had Fuzzyfinder installed too, it begins with ff, fb...

Later I installed ctrl-p, the three plugins have overlapped function sets. Now I mainly use ctrl-p for finding things (mru files too), but the other two plugins have still been being there.

On Mon, Apr 14, 2014 at 12:55 PM, Marslo [email protected] wrote:

Cool! fr? :)

— Reply to this email directly or view it on GitHubhttps://github.com/Marslo/VimConfig/issues/1#issuecomment-40353845 .

sk1418 avatar Apr 14 '14 11:04 sk1418

I haven't use Fuzzyfinder before, but I'm using ctrl-p for long time.

I found someting "issue" (I not sure it is) about ctrl-p, that is if the directory structure changed, the ctrl-p cache will not change automaticlly. Somebody said F5 could refresh the cache. But I never successed.....

marslo avatar Apr 15 '14 02:04 marslo

Okay, F5 works in Windows, but nothing shows in PuTTy

marslo avatar Apr 15 '14 02:04 marslo

I have FF installed, but rarely used after I installed ctrl-p. I don't have windows system to test, and no putty either... you can look for help in FF's issue tracker.

On Tue, Apr 15, 2014 at 4:48 AM, Marslo [email protected] wrote:

Okay, F5 works in Windows, but nothing shows in PuTTy

— Reply to this email directly or view it on GitHubhttps://github.com/Marslo/VimConfig/issues/1#issuecomment-40440625 .

sk1418 avatar Apr 15 '14 08:04 sk1418

That's okay... I think that might be the problem of PuTTy (shortcut key conflict or something). I can live with that... :)

marslo avatar Apr 16 '14 03:04 marslo

Have you any clue about my "autocmd CmdWinEnter Q"?

marslo avatar Apr 16 '14 03:04 marslo

By the way, I've read the VIM document - intro

<M-a> Meta- a ('a' with bit 8 set) <M-A> Meta- A ('A' with bit 8 set)

what does "'a' with bit 8 set" means?

marslo avatar Apr 16 '14 06:04 marslo

I believe that the bit-8 is terminal setting. because <alt-x> mappint doesn't work out of box for all terminals. You need tun a little bit. I was looking for a solution for insert mode <Alt-x> mapping, but didn't find a way there with my urxvt terminal. and gave up.

On Wed, Apr 16, 2014 at 8:06 AM, Marslo [email protected] wrote:

By the way, I've read the VIM document - introhttp://vimdoc.sourceforge.net/htmldoc/intro.html#%3C

Meta- a ('a' with bit 8 set) Meta- A ('A' with bit 8 set)

what does "'a' with bit 8 set" means?

— Reply to this email directly or view it on GitHubhttps://github.com/Marslo/VimConfig/issues/1#issuecomment-40566183 .

sk1418 avatar Apr 16 '14 07:04 sk1418

If you are using Linux Terminal (not PuTTy), try to add the following setting in your ~/.inputrc (this is mine).

set convert-meta on

The terminal way works for me. However, GUI can not (only Alt+b in InsertMode, Alt++ and others works fine for me), including both Windows and Linux(Ubuntu acutally)

marslo avatar Apr 17 '14 00:04 marslo

Of cause, you also needs disable the Enable menu access keys: kbs

marslo avatar Apr 17 '14 00:04 marslo

thank you for the suggestion.

  • .inputrc is for readline config. my default shell is zsh, it doesn't read the file. and I don't think this will change the behavior of terminal
  • my terminal (urxvt) doesn't have menu.
  • I have struggled with this problem for relatively long time, but long time ago.... there is not yet a "universal working" solution,(or I haven't found). different terminals could need different settings, terminal setting, vim's timeout, ttimeout, keycode, mapping .... I just gave up. I was trying to map Alt-hjkl in Insert mode to move cursor. Now I found it doesn't hurt without that thing. :)
  • Alt mapping should work with gvim out of box.

On Thu, Apr 17, 2014 at 2:32 AM, Marslo [email protected] wrote:

Of cause, you also needs disable the Enable menu access keys: [image: kbs]https://cloud.githubusercontent.com/assets/5822057/2726992/bb33fcc4-c5c7-11e3-9e1f-447b6804fcec.png

— Reply to this email directly or view it on GitHubhttps://github.com/Marslo/VimConfig/issues/1#issuecomment-40668771 .

sk1418 avatar Apr 17 '14 13:04 sk1418

Alright... I'm using bash all the time.

marslo avatar Apr 19 '14 13:04 marslo