Skip to content

Instantly share code, notes, and snippets.

@walkoncross
Last active April 6, 2020 10:26
Show Gist options
  • Select an option

  • Save walkoncross/90f5198bc34b6890ae36d6a6277b33c3 to your computer and use it in GitHub Desktop.

Select an option

Save walkoncross/90f5198bc34b6890ae36d6a6277b33c3 to your computer and use it in GitHub Desktop.
vimrc plugins
curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
syntax on
" Plugins will be downloaded under the specified directory.
call plug#begin('~/.vim/pack')
" Declare the list of plugins.
" Check plugins on: https://vimawesome.com/
Plug 'tpope/vim-sensible'
Plug 'tpope/vim-fugitive'
Plug 'tpope/vim-surround'
Plug 'tpope/vim-commentary'
Plug 'preservim/nerdtree'
Plug 'preservim/nerdcommenter'
Plug 'Xuyuanp/nerdtree-git-plugin'
Plug 'scrooloose/syntastic'
Plug 'ervandew/supertab'
" Plug 'davidhalter/jedi-vim'
" Plug 'valloric/youcompleteme'
Plug 'leafgarland/typescript-vim'
" List ends here. Plugins become visible to Vim after this call.
call plug#end()
" Settings for plugin: nerdtree
autocmd StdinReadPre * let s:std_in=1
autocmd VimEnter * if argc() == 0 && !exists("s:std_in") | NERDTree | 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 | exe 'cd '.argv()[0] | endif
map <C-n> :NERDTreeToggle<CR>
" Settings for plugin: syntastic
set statusline+=%#warningmsg#
set statusline+=%{SyntasticStatuslineFlag()}
set statusline+=%*
let g:syntastic_always_populate_loc_list = 1
let g:syntastic_auto_loc_list = 1
let g:syntastic_check_on_open = 1
let g:syntastic_check_on_wq = 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment