Skip to content
This repository has been archived by the owner on Nov 29, 2022. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
vim: Comment insertion for SQL
  • Loading branch information
h3xx committed Aug 30, 2021
1 parent 257ca46 commit bd06a4b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions vim/.vim/filetype.vim
Expand Up @@ -104,6 +104,10 @@ aug keycommands
\yaml
\ noremap <buffer> <silent> <leader>\| :s+^+#+\|nohls<CR>
"" sql uses the -- comment leader
au FileType sql
\ noremap <buffer> <silent> <leader>\| :s+^+--+\|nohls<CR>
"" c, javascript and java use the // comment leader
"" (technically, so does PHP, but I like to pretend I'm writing Perl)
au FileType c,java,javascript
Expand Down

0 comments on commit bd06a4b

Please sign in to comment.