Skip to content

Instantly share code, notes, and snippets.

@mrsteveheyes
Created March 9, 2017 14:55
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 mrsteveheyes/870d65fa0a42b12faf8588495f500cfe to your computer and use it in GitHub Desktop.
Save mrsteveheyes/870d65fa0a42b12faf8588495f500cfe to your computer and use it in GitHub Desktop.
filetype off
set nocompatible
set backspace=indent,eol,start
let mapleader=" "
" Soft tabs
set smartindent
set expandtab
set shiftwidth=2
set tabstop=2
" Interface
syntax on
set number
set cursorline
set guifont=Inconsolata\ 14
" Stop background vim files being created
set noswapfile
set nobackup
set nowritebackup
" Show guideline for ideal width
set cc=80
" reload a file
set autoread
set autoindent " Auto indention should be on
filetype plugin indent on
" gui colors if running iTerm
if $TERM_PROGRAM =~ "iTerm"
" set termguicolors
let $NVIM_TUI_ENABLE_CURSOR_SHAPE=1
let &t_SI = "\<esc>]50;CursorShape=1\x7" " Vertical bar in insert mode
let &t_EI = "\<esc>]50;CursorShape=0\x7" " Block in normal mode
endif
""" PLUGINS
" For vundle
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#rc()
" Dependency managment
Plugin 'VundleVim/Vundle.vim'
" NERDtree
Bundle 'scrooloose/nerdtree'
map <leader>n :NERDTreeToggle<CR>
let NERDTreeShowHidden=1
" CTRL P
Bundle 'kien/ctrlp.vim'
let g:ctrlp_custom_ignore = 'node_modules|vendor|git'
" ACK
Plugin 'mileszs/ack.vim'
syntax enable
" Syntax
Plugin 'mattn/emmet-vim'
Plugin 'StanAngeloff/php.vim'
Plugin 'tpope/vim-git'
Plugin 'othree/html5.vim'
Plugin 'tpope/vim-rails'
Plugin 'jiangmiao/auto-pairs'
Plugin 'moll/vim-node'
Plugin 'tpope/vim-markdown'
Plugin 'ervandew/supertab'
Plugin 'tpope/vim-surround'
Plugin 'pangloss/vim-javascript'
" let g:php_syntax_extensions_enabled
" Tomorrow Theme
Plugin 'chriskempson/base16-vim'
let base16colorspace=256 " Access colors present in 256 colorspace
set t_Co=256 " 256 color mode
set background=dark
colorscheme base16-eighties
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment