Skip to content

Instantly share code, notes, and snippets.

@jasoncharnes
Created July 5, 2019 23:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jasoncharnes/bdd8b617304a2637dd4e03bff480b724 to your computer and use it in GitHub Desktop.
Save jasoncharnes/bdd8b617304a2637dd4e03bff480b724 to your computer and use it in GitHub Desktop.
Personal VIM
" A minimal vimrc for new vim users to start with.
"
" Referenced here: http://vimuniversity.com/samples/your-first-vimrc-should-be-nearly-empty
"
" Original Author: Bram Moolenaar <Bram@vim.org>
" Made more minimal by: Ben Orenstein
" Modified by : Ben McCormick
" Last change: 2014 June 8
"
" To use it, copy it to
" for Unix based systems (including OSX and Linux): ~/.vimrc
" for Windows : $VIM\_vimrc
"
" If you don't understand a setting in here, just type ':h setting'.
" Use Vim settings, rather than Vi settings (much better!).
" This must be first, because it changes other options as a side effect.
set nocompatible
" Make backspace behave in a sane manner.
set backspace=indent,eol,start
" Switch syntax highlighting on
syntax on
" Enable file type detection and do language-dependent indenting.
filetype plugin indent on
" Show line numbers
set number
" Allow hidden buffers, don't limit to 1 file per window/split
set hidden
" Specify a directory for plugins
" - For Neovim: ~/.local/share/nvim/plugged
" - Avoid using standard Vim directory names like 'plugin'
call plug#begin('~/.vim/plugged')
" Make sure you use single quotes
Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' }
Plug 'ctrlpvim/ctrlp.vim'
Plug 'janko/vim-test'
Plug 'tpope/vim-rails'
" Initialize plugin system
call plug#end()
nmap <C-n> :NERDTreeToggle<CR>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment