Commits

Pierre Bourdon committed b05f88d

Removed EPITA vim configuration - not useful anymore

Comments (0)

Files changed (3)

.vim/after/plugin/epita-c.vim

-" epita-c.vim
-" Configuration for EPITA C coding style
-"
-" After rationale: some options are reset by the C ftplugin
-
-function Epita_c_config()
-    let c_comment_strings = 0
-
-    set noet
-    set ts=8
-    set sts=8
-    set sw=2
-
-    " comments format
-    setlocal comments=sl:/*,mb:**,elx:*/
-endfunction
-
-if $EPITA == 1
-    au FileType c call Epita_c_config()
-endif

.vim/plugin/epita-c.vim

-" epita-c.vim
-" Configuration for EPITA C coding style
-
-function Epita_c_insert_guards()
-    let basename=substitute(@%, "[^/]*/", "", "g")
-    let underscored=tr(basename, ".", "_")
-    let const=substitute(underscored, ".*", "\\U\\0", "")."_"
-    exe "normal i#ifndef ".const."\n\e"
-    exe "normal i# define ".const."\n\n\n\n\e"
-    exe "normal i#endif /"."* !".const." */\e"
-    exe "normal 4G"
-endfunction
-
-if $EPITA == 1
-    au Bufnewfile,Bufread *.h set ft=c
-    au Bufnewfile *.h call Epita_c_insert_guards()
-endif

.vim/plugin/epita-cpp.vim

-" epita-cpp.vim
-" Configuration for EPITA C++ coding style
-
-function Epita_cpp_insert_guards()
-    let basename=substitute(@%, "[^/]*/", "", "g")
-    let underscored=substitute(basename, "[^a-zA-Z_]", "_", "g")
-    let const=substitute(underscored, ".*", "\\U\\0", "")."_"
-    exe "normal i#ifndef ".const."\n\e"
-    exe "normal i# define ".const."\n\n\n\n\e"
-    exe "normal i#endif // !".const."\e"
-    exe "normal 4G"
-endfunction
-
-if $EPITA == 1
-    au Bufnewfile,Bufread *.hh set ft=cpp
-    au Bufnewfile *.hh call Epita_cpp_insert_guards()
-endif