Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also .

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also .
Choose a base branch
...
Choose a head branch
  • 2 commits
  • 1 file changed
  • 0 commit comments
  • 1 contributor
Showing with 3 additions and 4 deletions.
  1. +3 −4 .vimrc
View
7 .vimrc
@@ -161,7 +161,6 @@ if has("autocmd")
autocmd FileType python set foldlevel=99
augroup END
-
augroup C
autocmd FileType c set makeprg=gcc\ -o\ %<\ %
autocmd FileType c setlocal cindent
@@ -288,9 +287,9 @@ function! XdefaultsComment()
endfunction
function! CComment()
- noremap - :s/^/\/\*/<CR>
- noremap _ :s/^\s*\/\* \=//<CR>
- set comments=:/*
+ noremap - :s/^/\/\*/<CR> \| :s/$/ \*\//<CR> \| :nohls<CR>
+ noremap _ :s/^\s*\/\* \=//<CR> \| :s/\s*\*\/$//<CR> \| :nohls<CR>
+ set comments=sO:*\ -,mO:*\ \ ,exO:*/,s1:/*,mb:*,ex:*/,://
endfunction
function! LuaComment()

No commit comments for this range