Skip to content

Instantly share code, notes, and snippets.

@grahamg
Forked from anonymous/.vimrc
Last active June 26, 2019 22:11
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 grahamg/e75b9f51df3bfd87abb0e1e488c50fd8 to your computer and use it in GitHub Desktop.
Save grahamg/e75b9f51df3bfd87abb0e1e488c50fd8 to your computer and use it in GitHub Desktop.
For use at job
" Use Vim settings rather than Vi settings
" Required to be at the beginning of file
set nocompatible
" Required
filetype off
" Turn on syntax highlighting
syntax on
" Hilight text that is wider than 80 columns
match ColorColumn "\%80v."
set term=builtin_ansi
set number
set history=3000
set pastetoggle=<F2>
set cursorline
set visualbell
set autoindent
set smartindent
set smarttab
set shiftwidth=2
set softtabstop=2
set tabstop=2
set incsearch
set hlsearch
set ignorecase
set smartcase
set noswapfile
set nobackup
set nowb
noremap jk <esc>
noremap <esc> <nop>
noremap Q <nop>
set nofoldenable
set nowrap
"
"================ Vundle Modules ======================
" Set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'VundleVim/Vundle.vim'
Plugin 'tomtom/tcomment_vim'
Plugin 'kristijanhusak/vim-multiple-cursors'
Plugin 'justinmk/vim-sneak'
Plugin 'xolox/vim-misc'
Plugin 'xolox/vim-session'
Plugin 'jiangmiao/auto-pairs'
Plugin 'sjl/gundo.vim'
Plugin 'wincent/command-t'
Plugin 'ctrlpvim/ctrlp.vim'
Plugin 'dkprice/vim-easygrep'
Plugin 'junegunn/goyo.vim'
Plugin 'rking/ag.vim'
Plugin 'majutsushi/tagbar'
Plugin 'tpope/vim-fugitive'
Plugin 'joonty/vdebug'
Plugin 'powerline/powerline'
Plugin 'airblade/vim-gitgutter'
Plugin 'schickling/vim-bufonly'
Plugin 'vim-scripts/activity-log'
Plugin 'vim-scripts/a.vim'
Plugin 'scrooloose/nerdtree'
call vundle#end() " required
"================ Toggle Keymaps ======================
:nmap \f zi<CR>
:nmap \t :TagbarToggle<CR>
:nmap \g :GundoToggle<CR>
:nmap \b :Bufonly<CR>
:nmap \o :Goyo<CR>
"================ Vdebug Options ======================
let g:vdebug_options = {'ide_key': 'PHPSTORM'}
let g:vdebug_options = {'break_on_open': 0}
let g:vdebug_options = {'server': '127.0.0.1'}
let g:vdebug_options = {'port': '9000'}
filetype plugin indent on " required
let g:indentLine_color_term = 239
let g:indentLine_color_tty_light = 7 " (default: 4)
let g:indentLine_color_dark = 1 " (default: 2)
let g:session_autosave = 'no'
autocmd VimEnter * if !argc() | NERDTree | endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment