Advertisement
Guest User

Untitled

a guest
Apr 24th, 2017
583
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.08 KB | None | 0 0
  1. autocmd StdinReadPre * let s:std_in=1
  2. autocmd VimEnter * if argc() == 0 && !exists("s:std_in") | NERDTree | endif
  3.  
  4. " All system-wide defaults are set in $VIMRUNTIME/archlinux.vim (usually just
  5. " /usr/share/vim/vimfiles/archlinux.vim) and sourced by the call to :runtime
  6. " you can find below. If you wish to change any of those settings, you should
  7. " do it in this file (/etc/vimrc), since archlinux.vim will be overwritten
  8. " everytime an upgrade of the vim packages is performed. It is recommended to
  9. " make changes after sourcing archlinux.vim since it alters the value of the
  10. " 'compatible' option.
  11.  
  12. " This line should not be removed as it ensures that various options are
  13. " properly set to work with the Vim-related packages.
  14. runtime! archlinux.vim
  15.  
  16. " If you prefer the old-style vim functionalty, add 'runtime! vimrc_example.vim'
  17. " Or better yet, read /usr/share/vim/vim80/vimrc_example.vim or the vim manual
  18. " and configure vim to your own liking!
  19.  
  20. " do not load defaults if ~/.vimrc is missing
  21. "let skip_defaults_vim=1
  22.  
  23. " The ArchLinux global vimrc - setting only a few sane defaults
  24. "
  25. " Maintainer: Thomas Dziedzic [gostrc@gmail.com]
  26. "
  27. " NEVER EDIT THIS FILE, IT'S OVERWRITTEN UPON UPGRADES, GLOBAL CONFIGURATION
  28. " SHALL BE DONE IN /etc/vimrc, USER SPECIFIC CONFIGURATION IN ~/.vimrc
  29.  
  30. " Normally we use vim-extensions. If you want true vi-compatibility
  31. " remove change the following statements
  32. set nocompatible " Use Vim defaults instead of 100% vi compatibility
  33. set backspace=indent,eol,start " more powerful backspacing
  34.  
  35. " Now we set some defaults for the editor
  36. set history=50 " keep 50 lines of command line history
  37. set ruler " show the cursor position all the time
  38.  
  39. " Suffixes that get lower priority when doing tab completion for filenames.
  40. " These are files we are not likely to want to edit or read.
  41. set suffixes=.bak,~,.swp,.o,.info,.aux,.log,.dvi,.bbl,.blg,.brf,.cb,.ind,.idx,.ilg,.inx,.out,.toc,.png,.jpg
  42.  
  43. if has('gui_running')
  44. " Make shift-insert work like in Xterm
  45. map <S-Insert> <MiddleMouse>
  46. map! <S-Insert> <MiddleMouse>
  47. endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement