Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- call plug#begin('~/.vim/plugged')
- Plug 'scrooloose/nerdtree'
- Plug 'itchyny/lightline.vim'
- Plug 'tpope/vim-surround'
- Plug 'raimondi/delimitmate'
- Plug 'tpope/vim-endwise'
- Plug 'wincent/command-t'
- Plug 'yggdroot/indentline'
- Plug 'tomtom/tcomment_vim'
- Plug 'editorconfig/editorconfig-vim'
- Plug 'bronson/vim-trailing-whitespace'
- Plug 'mxw/vim-jsx'
- Plug 'dracula/vim'
- Plug 'elixir-lang/vim-elixir'
- call plug#end()
- " ----------------------------------------------------------
- " Neovim
- " ----------------------------------------------------------
- " Enable mouse integration.
- set mouse=a
- " Show line number.
- set number
- " Theme.
- color dracula
- " Indentation
- set expandtab
- set shiftwidth=2
- set softtabstop=2
- " ----------------------------------------------------------
- " NERDTree
- " ----------------------------------------------------------
- " Open NERDTree automatically when vim starts up.
- autocmd StdinReadPre * let s:std_in=1
- autocmd VimEnter * if argc() == 0 && !exists("s:std_in") | NERDTree | endif
- " Add shortcut to toggle NERDTree.
- map <C-n> :NERDTreeToggle<CR>
- " Show hidden files
- let NERDTreeShowHidden=1
- " Close Vim when the only window left open is the NERDTree.
- autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif
- " ----------------------------------------------------------
- " Indentline
- " ----------------------------------------------------------
- " Disable by default.
- let g:indentLine_enabled = 0
Add Comment
Please, Sign In to add comment