Skip to content

Instantly share code, notes, and snippets.

@mrsoftware
Created August 20, 2019 20:21
Show Gist options
  • Save mrsoftware/c2fee435af645e9b5ac4aacecd733d91 to your computer and use it in GitHub Desktop.
Save mrsoftware/c2fee435af645e9b5ac4aacecd733d91 to your computer and use it in GitHub Desktop.
set nocompatible
filetype off
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'VundleVim/Vundle.vim'
" Add plugins here
Plugin 'ctrlpvim/ctrlp.vim'
Plugin 'gkapfham/vim-vitamin-onec'
Plugin 'itchyny/lightline.vim'
Plugin 'airblade/vim-gitgutter'
Plugin 'nathanaelkane/vim-indent-guides'
Plugin 'fatih/vim-go'
Plugin 'scrooloose/nerdtree'
Plugin 'Xuyuanp/nerdtree-git-plugin'
Plugin 'morhetz/gruvbox'
Plugin 'ryanoasis/vim-devicons'
Plugin 'mhinz/vim-startify'
Bundle 'jistr/vim-nerdtree-tabs'
" Plugin 'dense-analysis/ale'
Plugin 'majutsushi/tagbar'
call vundle#end()
filetype plugin indent on
set termguicolors
" colorscheme vitaminonec
colorscheme gruvbox
set background=dark " Setting dark mode
set laststatus=2
set number
set encoding=UTF-8
" set guifont=Operator Mono Book:h13
if !has('gui_running')
set t_Co=256
endif
let g:indent_guides_guide_size = 1
let g:indent_guides_color_change_percent = 3
let g:indent_guides_enable_on_vim_startup = 1
set tabstop=4
" How can I open a NERDTree automatically when vim starts up if no files were specified?
autocmd StdinReadPre * let s:std_in=1
autocmd VimEnter * if argc() == 0 && !exists("s:std_in") | NERDTree | endif
" How can I map a specific key or shortcut to open NERDTree?
map <C-n> :NERDTreeToggle<CR>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment