Last active
March 15, 2022 00:59
-
-
Save apirak/df390dc473a78623fa4bb7c5a721f117 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
syntax on | |
set rtp+=/usr/local/opt/fzf | |
call plug#begin() | |
" File Explorer NERDtree " | |
Plug 'preservim/nerdtree' | |
" Fast file search with crtl-p | |
Plug 'ctrlpvim/ctrlp.vim' | |
" For Svelte | |
Plug 'othree/html5.vim' | |
Plug 'pangloss/vim-javascript' | |
Plug 'evanleck/vim-svelte', {'branch': 'main'} | |
" For multiple cursor | |
Plug 'mg979/vim-visual-multi', {'branch': 'master'} | |
" Initialize plugin system | |
call plug#end() | |
" Start NERDTree when Vim is started without file arguments. | |
autocmd StdinReadPre * let s:std_in=1 | |
autocmd VimEnter * if argc() == 0 && !exists('s:std_in') | NERDTree | endif | |
" Exit Vim if NERDTree is the only window remaining in the only tab. | |
autocmd BufEnter * if tabpagenr('$') == 1 && winnr('$') == 1 && exists('b:NERDTree') && b:NERDTree.isTabTree() | quit | endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment