Last active
December 22, 2021 03:58
-
-
Save coreymcmahon/0ccfae28185dbe59f91a34ec60500459 to your computer and use it in GitHub Desktop.
Set up Vim for JS, TS, etc.
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
# Install vim-plug | |
curl -fLo ~/.vim/autoload/plug.vim --create-dirs \ | |
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim | |
# ... add vim-plug to vimrc | |
call plug#begin() | |
Plug 'tpope/vim-sensible' | |
" On-demand loading | |
Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' } | |
Plug 'pangloss/vim-javascript' | |
Plug 'leafgarland/typescript-vim' | |
Plug 'editorconfig/editorconfig-vim' | |
Plug 'junegunn/fzf', { 'do': { -> fzf#install() } } | |
call plug#end() | |
let g:typescript_compiler_binary = 'tsc' | |
let g:typescript_compiler_options = '' | |
autocmd QuickFixCmdPost [^l]* nested cwindow | |
autocmd QuickFixCmdPost l* nested lwindow | |
let g:netrw_banner = 0 | |
"# // (ignore) | |
# Run :PlugInstall to install listed plugins |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment