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.

41 lines
897 B

  1. set nocompatible
  2. set encoding=utf-8
  3. colorscheme koehler
  4. "set guifont=DejaVu\ Sans\ Mono\ 7
  5. set guifont=Terminus\ 8
  6. " `set list` to activate
  7. set showbreak=
  8. set listchars=tab:→·,eol:↲,nbsp:␣,trail,extends:⟩,precedes:⟨
  9. filetype indent on
  10. syntax on
  11. set nu!
  12. set hlsearch
  13. if has("autocmd")
  14. " OpenSDE
  15. autocmd BufEnter *.in,*.conf,parse-config* set filetype=sh
  16. autocmd BufEnter *.h set filetype=c
  17. autocmd filetype c source ~/.vim/c.vim
  18. autocmd filetype sh source ~/.vim/sh.vim
  19. autocmd filetype xml source ~/.vim/xml.vim
  20. autocmd filetype lua source ~/.vim/lua.vim
  21. " autocmd filetype python source ~/.vim/python.vim
  22. endif
  23. " , #perl # comments
  24. map ,# :s/^/#/<CR>
  25. " ,/ C/C++/C#/Java // comments
  26. map ,/ :s/^/\/\//<CR>
  27. " ,< HTML comment
  28. map ,< :s/^\(.*\)$/<!-- \1 -->/<CR><Esc>:nohlsearch<CR>
  29. " c++ java style comments
  30. map ,* :s/^\(.*\)$/\/\* \1 \*\//<CR><Esc>:nohlsearch<CR>