You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
759 B

  1. set nocompatible
  2. colorscheme koehler
  3. "set guifont=DejaVu\ Sans\ Mono\ 7
  4. set guifont=Terminus\ 8
  5. filetype indent on
  6. syntax on
  7. set nu!
  8. set hlsearch
  9. if has("autocmd")
  10. " OpenSDE
  11. autocmd BufEnter *.in,*.conf,parse-config* set filetype=sh
  12. autocmd BufEnter *.h set filetype=c
  13. autocmd filetype c source ~/.vim/c.vim
  14. autocmd filetype sh source ~/.vim/sh.vim
  15. autocmd filetype xml source ~/.vim/xml.vim
  16. autocmd filetype lua source ~/.vim/lua.vim
  17. " autocmd filetype python source ~/.vim/python.vim
  18. endif
  19. " , #perl # comments
  20. map ,# :s/^/#/<CR>
  21. " ,/ C/C++/C#/Java // comments
  22. map ,/ :s/^/\/\//<CR>
  23. " ,< HTML comment
  24. map ,< :s/^\(.*\)$/<!-- \1 -->/<CR><Esc>:nohlsearch<CR>
  25. " c++ java style comments
  26. map ,* :s/^\(.*\)$/\/\* \1 \*\//<CR><Esc>:nohlsearch<CR>