Advertisement
Guest User

For guts, spx .vimrc

a guest
Aug 7th, 2019
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VIM 2.54 KB | None | 0 0
  1. colorscheme monokai
  2. syntax on
  3.  
  4. set number
  5.  
  6. set shiftwidth=4
  7. set tabstop=4
  8. set expandtab
  9.  
  10. " python3 from powerline.vim import setup as powerline_setup
  11. " python3 powerline_setup()
  12. " python3 del powerline_setup
  13.  
  14.  
  15. " An example for a vimrc file.
  16. "
  17. " Maintainer:   Bram Moolenaar <Bram@vim.org>
  18. " Last change:  2017 Sep 20
  19. "
  20. " To use it, copy it to
  21. "     for Unix and OS/2:  ~/.vimrc
  22. "         for Amiga:  s:.vimrc
  23. "  for MS-DOS and Win32:  $VIM\_vimrc
  24. "       for OpenVMS:  sys$login:.vimrc
  25.  
  26. " When started as "evim", evim.vim will already have done these settings.
  27. if v:progname =~? "evim"
  28.   finish
  29. endif
  30.  
  31. " Get the defaults that most users want.
  32. source $VIMRUNTIME/defaults.vim
  33.  
  34. if has("vms")
  35.   set nobackup      " do not keep a backup file, use versions instead
  36. else
  37.   set backup        " keep a backup file (restore to previous version)
  38.   if has('persistent_undo')
  39.     set undofile    " keep an undo file (undo changes after closing)
  40.   endif
  41. endif
  42.  
  43. if &t_Co > 2 || has("gui_running")
  44.   " Switch on highlighting the last used search pattern.
  45.   set hlsearch
  46. endif
  47.  
  48. " Only do this part when compiled with support for autocommands.
  49. if has("autocmd")
  50.  
  51.   " Put these in an autocmd group, so that we can delete them easily.
  52.   augroup vimrcEx
  53.   au!
  54.  
  55.   " For all text files set 'textwidth' to 78 characters.
  56.   autocmd FileType text setlocal textwidth=78
  57.  
  58.   augroup END
  59.  
  60. else
  61.  
  62.   set autoindent        " always set autoindenting on
  63.  
  64. endif " has("autocmd")
  65.  
  66. " Add optional packages.
  67. "
  68. " The matchit plugin makes the % command work better, but it is not backwards
  69. " compatible.
  70. " The ! means the package won't be loaded right away but when plugins are
  71. " loaded during initialization.
  72. if has('syntax') && has('eval')
  73.   packadd! matchit
  74. endif
  75.  
  76. set laststatus=2
  77.  
  78. execute pathogen#infect()
  79.  
  80. set statusline+=%#warningmsg#
  81. set statusline+=%{SyntasticStatuslineFlag()}
  82. set statusline+=%*
  83.  
  84. let g:syntastic_always_populate_loc_list = 1
  85. let g:syntastic_auto_loc_list = 1
  86. let g:syntastic_check_on_open = 1
  87. let g:syntastic_check_on_wq = 0
  88.  
  89. " let g:airline_powerline_fonts = 1
  90.  
  91. let g:nerdtree_tabs_open_on_console_startup = 2
  92.  
  93. let g:airline_powerline_fonts = 1
  94. if !exists('g:airline_symbols')
  95.     let g:airline_symbols = {}
  96. endif
  97.  
  98. let g:airline_symbols.space = "\ua0"
  99.  
  100. let g:airline#extensions#tabline#enabled = 1
  101. let g:airline#extensions#tabline#show_buffers = 1
  102. let g:airline_theme = 'simple'
  103.  
  104. function! SyntasticCheckHook(errors)
  105.     if !empty(a:errors)
  106.         let g:syntastic_loc_list_height = min([len(a:errors), 10])
  107.     endif
  108. endfunction
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement