Advertisement
Guest User

Untitled

a guest
Oct 1st, 2014
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.86 KB | None | 0 0
  1. " Configuration file for vim
  2.  
  3. " Normally me use vim-extensions. If you want true vi-compatibility
  4. set t_Sb=mnge the following statements
  5. endifocompatible " Use Vim defaults instead of 100% vi compatibility
  6. set backspace=indent,eol,start " more powerful backspacing
  7. " Make p in Visual mode replace the selected text with the "" register.
  8. vnoremap p <Esc>:let current_reg = @"<CR>gvdi<C-R>=current_reg<CR><Esc>
  9. set autoindent " always set autoindenting on
  10. " Vim5 and later versions support syntax highlighting. Uncommenting the next
  11. " line enables syntax highlighting by default.file
  12. syntax onfo='20,\"50 " read/write a .viminfo file, don't store more than
  13. " 50 lines of registers
  14. " Debian uses compressed helpfiles. We must inform vim that the main
  15. " helpfiles is compressed. Other helpfiles are stated in the tags-file.
  16. set helpfile=$VIMRUNTIME/doc/help.txt.gz
  17. " Suffixes that get lower priority when doing tab completion for filenames.
  18. if has("autocmd") we are not likely to want to edit or read.
  19. " Enabled file type detectionnfo,.aux,.log,.dvi,.bbl,.blg,.brf,.cb,.ind,.idx,.ilg,. " Use the default filetype settings. If you also want to load indent files
  20. " to automatically do language-dependent indenting add 'indent' as well.
  21. filetype plugin onian is a color terminal
  22. if &term =~ "xterm-debian" || &term =~ "xterm-xfree86"
  23. endif " has ("autocmd")
  24. set t_Sf=
  25. " Some Debian-specific things
  26. augroup filetype
  27. au BufRead reportbug.* set ft=mail
  28. au BufRead reportbug-* set ft=mail
  29. augroup END
  30.  
  31. " The following are commented out as they cause vim to behave a lot
  32. " different from regular vi. They are highly recommended though.
  33. "set showcmd " Show (partial) command in status line.
  34. set showmatch " Show matching brackets.
  35. "set ignorecase " Do case insensitive matching
  36. "set incsearch " Incremental search
  37. "set autowrite " Automatically save before commands like :next and :make
  38.  
  39. if has("syntax")
  40. hi Normal ctermfg=grey guifg=LightBlue
  41. hi Comment term=bold ctermfg=darkcyan guifg=LightBlue
  42. hi Constant term=underline ctermfg=darkmagenta gui=underline guifg=LemonChiffon
  43. hi String term=underline ctermfg=darkmagenta guifg=orange
  44. hi Identifier term=underline ctermfg=brown guifg=Red gui=underline guibg=White
  45. hi Function term=underline ctermfg=brown guifg=Red gui=underline guibg=White
  46. hi Statement term=bold ctermfg=brown gui=bold guifg=AntiqueWhite1
  47. hi PreProc term=underline ctermfg=darkmagenta guifg=salmon guibg=black
  48. hi NameFunc term=underline ctermfg=darkmagenta guifg=Red gui=underline
  49. hi Type term=underline ctermfg=darkgreen guifg=DarkSeaGreen gui=bold
  50. hi Special term=bold ctermfg=darkred guifg=Orange gui=underline
  51. hi Error term=reverse ctermbg=darkred guibg=Orange
  52. hi Todo term=standout ctermbg=brown guifg=Blue guibg=Yellow
  53. endif
  54.  
  55. set tabstop=4
  56. set shiftwidth=4
  57. set expandtab
  58. set hlsearch
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement