marslo / myvim

My Vim configuratons
15 stars 3 forks source link

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

Open sk1418 opened 10 years ago

sk1418 commented 10 years ago

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
marslo commented 10 years ago

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 has been mapped as to open MRU. Have you used MRU?

Here my statusline: vim1

sk1418 commented 10 years ago

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 notifications@github.com 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 .

marslo commented 10 years ago

Cool! <Leader>fr? :)

sk1418 commented 10 years ago

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 notifications@github.com wrote:

Cool! fr? :)

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

marslo commented 10 years ago

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 commented 10 years ago

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

sk1418 commented 10 years ago

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 notifications@github.com 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 .

marslo commented 10 years ago

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

marslo commented 10 years ago

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

marslo commented 10 years ago

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

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

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

sk1418 commented 10 years ago

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 notifications@github.com 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 .

marslo commented 10 years ago

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 commented 10 years ago

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

sk1418 commented 10 years ago

thank you for the suggestion.

On Thu, Apr 17, 2014 at 2:32 AM, Marslo notifications@github.com 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 .

marslo commented 10 years ago

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