Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

add NERDCommenter, bind to Command-/

Signed-off-by: Aman Gupta <aman@tmm1.net>
  • Loading branch information...
commit be7bac7a7780c74eec0569b4b94a9ebf49dc1533 1 parent 9090730
@wuputah wuputah authored tmm1 committed
Showing with 13 additions and 3 deletions.
  1. +9 −3 README.markdown
  2. +1 −0  Rakefile
  3. +3 −0  gvimrc
View
12 README.markdown
@@ -67,7 +67,7 @@ Janus ships with a number of basic customizations for vim:
## "Project Drawer" aka NERDTree
-NERDTree is a file explorer plugin that provides "project drawer" functionality to your vim projects.
+NERDTree is a file explorer plugin that provides "project drawer" functionality to your vim projects.
You can learn more about it with :help NERDTree.
**Customizations**: Janus adds a number of customizations to the core NERDTree:
@@ -124,6 +124,13 @@ cursor was inside `"foo bar"`, you could type `cs"'` to convert the text to `'fo
There's a lot more; check it out at `:help surround`
+## NERDCommenter
+
+NERDCommenter allows you to wrangle your code comments, regardless of filetype. View `help :NERDCommenter`
+for all the details.
+
+**Customizations**: Janus binds command-/ (`<D-/>`) to toggle comments.
+
## SuperTab
In insert mode, start typing something and hit `<TAB>` to tab-complete based on the current context.
@@ -147,7 +154,7 @@ Fugitive adds pervasive git support to git directories in vim. For more informat
Use `:Gstatus` to view `git status` and type `-` on any file to stage or unstage it. Type `p` on
a file to enter `git add -p` and stage specific hunks in the file.
-Use `:Gdiff` on an open file to see what changes have been made to that file
+Use `:Gdiff` on an open file to see what changes have been made to that file
## Markdown Preview
@@ -193,4 +200,3 @@ To set a color scheme, update your local vimrc files:
echo color desert > ~/.vimrc.local
echo color jellybeans+ > ~/.gvimrc.local
-
View
1  Rakefile
@@ -89,6 +89,7 @@ vim_plugin_task "javascript", "http://github.com/pangloss/vim-javascript.g
vim_plugin_task "markdown", "http://github.com/tpope/vim-markdown.git"
vim_plugin_task "markdown_preview", "http://github.com/robgleeson/vim-markdown-preview.git"
vim_plugin_task "nerdtree", "http://github.com/scrooloose/nerdtree.git"
+vim_plugin_task "nerdcommenter", "http://github.com/scrooloose/nerdcommenter.git"
vim_plugin_task "surround", "http://github.com/tpope/vim-surround.git"
vim_plugin_task "taglist", "http://vim.sourceforge.net/scripts/download_script.php?src_id=7701"
vim_plugin_task "vividchalk", "http://github.com/tpope/vim-vividchalk.git"
View
3  gvimrc
@@ -12,6 +12,9 @@ if has("gui_macvim")
" Apple-e for ConqueTerm
map <D-e> :call StartTerm()<CR>
+
+ " Apple-/ to toggle comments
+ map <D-/> <plug>NERDCommenterToggle<CR>
endif
" Start without the toolbar

0 comments on commit be7bac7

Please sign in to comment.
Something went wrong with that request. Please try again.