Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- filetype on
- augroup vimrc_filetype
- autocmd!
- autocmd FileType ruby call s:RubyCommenter()
- autocmd FileType vim call s:VimCommenter()
- augroup end
- map _ :s/^\/\/\\|^--\\|^> \\|^[#"%!;]//<CR>:nohlsearch<CR>
- function! s:VimCommenter()
- map - :s/^/\"/<CR>:nohlsearch<CR>
- endfunction
- function! s:RubyCommenter()
- map - :s/^/#/<CR>:nohlsearch<CR>
- endfunction
Add Comment
Please, Sign In to add comment