开发者

Why nerdcommenter is not working for me

I am using macvim with pathogen. This is what I have in my vimrc

filetype off

call pathogen#runtime_append_all_bundles()

syntax on
filetype plugin indent on
set tabstop=2
set smarttab
set shi开发者_如何转开发ftwidth=2
set autoindent
set expandtab

I have nerd_commenter installed in my bundle directory.

When I open a .js file and I hit 4 , space then 4 lines are not commented.

I noticed that nerd_commenter has following lines of code

\ 'javascript': { 'left': '//', 'leftAlt': '/*', 'rightAlt': '*/' },
\ 'javascript.jquery': { 'left': '//', 'leftAlt': '/*', 'rightAlt': '*/' }

I guess by having filetype plugin indent on macvim should be able to figure that I am operating on a Javascript file.


Never mind I needed to do leader c space.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜