We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 46b0fb8 commit 9981db3Copy full SHA for 9981db3
.vimrc
@@ -175,3 +175,25 @@ function! s:CloseHiddenBuffers()
175
endif
176
endfor
177
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
198
+ map - :s/^/\"/<CR>:nohlsearch<CR>
199
plugin/pysmell.vim
0 commit comments