Advertisement
Guest User

Vim stripped config jtomes123

a guest
Nov 14th, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VIM 1.67 KB | None | 0 0
  1. if empty(glob('~/.vim/autoload/plug.vim'))
  2. silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs
  3. \ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
  4. autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
  5. endif
  6.  
  7. function! TernPrep()
  8.     if !empty(glob(join([getcwd(), ".tern-port"], "/")))
  9.         echo ".tern-port exists, deleting with result:"
  10.         echo delete(fnameescape(join([getcwd(), ".tern-port"], "/"))) == 0 ? "Success" : "Fail"
  11.     endif
  12. endfunction
  13.  
  14.  
  15.  
  16. call plug#begin('~/.vim/plugged')
  17.  
  18.  
  19. "Theme
  20. Plug 'junegunn/seoul256.vim'
  21. Plug 'haishanh/night-owl.vim'
  22. Plug 'AlessandroYorba/Alduin'
  23.  
  24. "Quality of life
  25. Plug 'scrooloose/nerdtree'
  26. Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' }
  27. Plug 'junegunn/fzf.vim'
  28. Plug 'itchyny/lightline.vim'
  29. Plug 'tpope/vim-surround'
  30. Plug 'jiangmiao/auto-pairs'
  31.  
  32.  
  33. call plug#end()
  34. " Don't forget to run `PlugInstall` to install the plugins.
  35.  
  36. "Setup theme
  37. if (has("gui_running") && has("termguicolors"))
  38.     set termguicolors
  39.     syntax enable
  40.     colorscheme seoul256
  41. else
  42.     let g:alduin_Shout_Fire_Breath = 1
  43.     colorscheme alduin
  44. endif
  45.  
  46.  
  47.  
  48. map <C-n> :NERDTreeToggle<CR>
  49.  
  50. :command QS :w | :qa!
  51. :command Q :qa!
  52.  
  53. autocmd vimenter * :bel term
  54. autocmd vimenter * :res 5
  55.  
  56. autocmd vimenter * NERDTree
  57.  
  58. autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif
  59.  
  60. autocmd StdinReadPre * let s:std_in=1
  61. autocmd VimEnter * if argc() == 1 && isdirectory(argv()[0]) && !exists("s:std_in") | exe 'NERDTree' argv()[0] | wincmd p | ene | endif
  62.  
  63. map ; :Files<CR>
  64.  
  65. :tnoremap <Esc> <C-\><C-n>
  66.  
  67. "Go Fullscreen
  68. set lines=9999 columns=9999
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement