Guest User

Untitled

a guest
Feb 19th, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.20 KB | None | 0 0
  1. if v:lang =~ "utf8$" || v:lang =~ "UTF-8$"
  2. set fileencodings=utf-8,latin1
  3. endif
  4.  
  5. set nocompatible " Use Vim defaults (much better!)
  6. set bs=2 " allow backspacing over everything in insert mode
  7. "set ai " always set autoindenting on
  8. "set backup " keep a backup file
  9. set viminfo='20,\"50 " read/write a .viminfo file, don't store more
  10. " than 50 lines of registers
  11. set history=512 " keep 512 lines of command line history
  12. set ruler " show the cursor position all the time
  13.  
  14. " Only do this part when compiled with support for autocommands
  15. if has("autocmd")
  16. " In text files, always limit the width of text to 78 characters
  17. autocmd BufRead *.txt set tw=78
  18. " When editing a file, always jump to the last cursor position
  19. autocmd BufReadPost *
  20. \ if line("'\"") > 0 && line ("'\"") <= line("$") |
  21. \ exe "normal g'\"" |
  22. \ endif
  23. endif
  24. " Switch syntax highlighting on, when the terminal has colors
  25. " Also switch on highlighting the last used search pattern.
  26. if &t_Co > 2 || has("gui_running")
  27. syntax on
  28. "set hlsearch
  29. endif
  30.  
  31. if &term=="xterm"
  32. set t_Co=8
  33. set t_Sb=^[4%dm
  34. set t_Sf=^[3%dm
  35. endif
Add Comment
Please, Sign In to add comment