Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if empty(glob('~/.vim/autoload/plug.vim'))
- silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs
- \ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
- autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
- endif
- function! TernPrep()
- if !empty(glob(join([getcwd(), ".tern-port"], "/")))
- echo ".tern-port exists, deleting with result:"
- echo delete(fnameescape(join([getcwd(), ".tern-port"], "/"))) == 0 ? "Success" : "Fail"
- endif
- endfunction
- call plug#begin('~/.vim/plugged')
- "Theme
- Plug 'junegunn/seoul256.vim'
- Plug 'haishanh/night-owl.vim'
- Plug 'AlessandroYorba/Alduin'
- "Quality of life
- Plug 'scrooloose/nerdtree'
- Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' }
- Plug 'junegunn/fzf.vim'
- Plug 'itchyny/lightline.vim'
- Plug 'tpope/vim-surround'
- Plug 'jiangmiao/auto-pairs'
- call plug#end()
- " Don't forget to run `PlugInstall` to install the plugins.
- "Setup theme
- if (has("gui_running") && has("termguicolors"))
- set termguicolors
- syntax enable
- colorscheme seoul256
- else
- let g:alduin_Shout_Fire_Breath = 1
- colorscheme alduin
- endif
- map <C-n> :NERDTreeToggle<CR>
- :command QS :w | :qa!
- :command Q :qa!
- autocmd vimenter * :bel term
- autocmd vimenter * :res 5
- autocmd vimenter * NERDTree
- autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif
- autocmd StdinReadPre * let s:std_in=1
- autocmd VimEnter * if argc() == 1 && isdirectory(argv()[0]) && !exists("s:std_in") | exe 'NERDTree' argv()[0] | wincmd p | ene | endif
- map ; :Files<CR>
- :tnoremap <Esc> <C-\><C-n>
- "Go Fullscreen
- set lines=9999 columns=9999
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement