Skip to content

Commit 9981db3

Browse files
committed
Update .vimrc, delete pysmell
1 parent 46b0fb8 commit 9981db3

File tree

2 files changed

+22
-84
lines changed

2 files changed

+22
-84
lines changed

.vimrc

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,3 +175,25 @@ function! s:CloseHiddenBuffers()
175175
endif
176176
endfor
177177
endfunction
178+
179+
augroup vimrc_filetype
180+
autocmd!
181+
autocmd FileType c call s:MyCSettings()
182+
"...
183+
autocmd FileType vim call s:MyVimSettings()
184+
augroup end
185+
186+
" Clear all comment markers (one rule for all languages)
187+
map _ :s/^\/\/\\|^--\\|^> \\|^[#"%!;]//<CR>:nohlsearch<CR>
188+
189+
function! s:MyCSettings()
190+
"...
191+
" Insert comments markers
192+
map - :s/^/\/\//<CR>:nohlsearch<CR>
193+
endfunction
194+
195+
function! s:MyVimSettings()
196+
"...
197+
" Insert comments markers
198+
map - :s/^/\"/<CR>:nohlsearch<CR>
199+
endfunction

plugin/pysmell.vim

Lines changed: 0 additions & 84 deletions
This file was deleted.

0 commit comments

Comments
 (0)