daimon.vim 967 B

1234567891011121314151617181920212223242526272829
  1. set mouse-=a
  2. set paste
  3. set nu
  4. set tabstop=4
  5. set expandtab
  6. set shiftwidth=4
  7. set smartindent
  8. set laststatus=2
  9. set statusline=
  10. set statusline+=%7*\[%n] "buffernr
  11. set statusline+=%1*\ %<%F\ "File+path
  12. set statusline+=%2*\ %y\ "FileType
  13. set statusline+=%3*\ %{''.(&fenc!=''?&fenc:&enc).''} "Encoding
  14. set statusline+=%3*\ %{(&bomb?\",BOM\":\"\")}\ "Encoding2
  15. set statusline+=%4*\ %{&ff}\ "FileFormat (dos/unix..)
  16. set statusline+=%5*\ %{&spelllang}\%{HighlightSearch()}\ "Spellanguage & Highlight on?
  17. set statusline+=%8*\ %=\ row:%l/%L\ (%03p%%)\ "Rownumber/total (%)
  18. set statusline+=%9*\ col:%03c\ "Colnr
  19. set statusline+=%0*\ \ %m%r%w\ %P\ \ "Modified? Readonly? Top/bot.
  20. function! HighlightSearch()
  21. if &hls
  22. return 'H'
  23. else
  24. return ''
  25. endif
  26. endfunction