Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

First steps #84

Closed
Ziiweb opened this issue Oct 16, 2012 · 4 comments
Closed

First steps #84

Ziiweb opened this issue Oct 16, 2012 · 4 comments

Comments

@Ziiweb
Copy link

Ziiweb commented Oct 16, 2012

Hi,

I have just put in my .vim/plugin/ folder the NERD_commenter.vim file and added the line 'filetype plugin on' in my .vimrc file.

Then I open vim, write a line in a .php file, go to normal mode and press 'cc' but nothing happens. I expected that line became commented.

Any help?

Javi

@scrooloose
Copy link
Collaborator

Use <leader>cc where <leader> is usually backslash. See :help leader for the full details.

Does that work for you?

@Ziiweb
Copy link
Author

Ziiweb commented Oct 16, 2012

Yes, that worked thanks!. I did not know what the leader was...

@scrooloose
Copy link
Collaborator

Ah cool, leader is used by almost any plugin that provides mappings - so well worth knowing about :)

Cheers

@Ziiweb
Copy link
Author

Ziiweb commented Oct 16, 2012

Anyway, I'm trying to use 'cn' and 'c', but 'cn' just add more slashes (//) to the already commented lines, and 'c' removes the selected commented visual block...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants