Created
July 19, 2013 09:03
-
-
Save bingeboy/6037784 to your computer and use it in GitHub Desktop.
Quick .vimrc for webservers
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set nocompatible " be iMproved | |
filetype off " required! | |
"Allow F2 key to toggle paste from outside of vim and retain indents | |
set pastetoggle=<F2> | |
"Set up the clipboard to be shared across termi windows" | |
set clipboard=unnamed | |
set rtp+=~/.vim/bundle/vundle/ | |
call vundle#rc() | |
" let Vundle manage Vundle | |
" required! | |
"Bundle 'gmarik/vundle' | |
execute pathogen#infect() | |
set nocompatible "This fixes the problem where arrow keys do not function properly on some systems. | |
syntax on "Enables syntax highlighting for programming languages | |
set mouse=a "Allows you to click around the text editor with your mouse to move the cursor | |
set showmatch "Highlights matching brackets in programming languages | |
set autoindent "If you're indented, new lines will also be indented | |
set smartindent "Automatically indents lines after opening a bracket in programming languages | |
set backspace=2 "This makes the backspace key function like it does in | |
set tabstop=4 "How much space Vim gives to a tab | |
set number "Enables line numbering | |
set smarttab "Improves tabbing | |
set shiftwidth=4 "Assists code formatting | |
set splitbelow " New window goes below | |
set splitright " New windows goes right | |
set smartcase | |
set hidden " When a buffer is brought to foreground, remember undo history | |
set history=1000 " Increase history from 20 default to 1d000 | |
" IMPORTANT: Uncomment one of the following lines to force | |
" using 256 colors (or 88 colors) if your terminal supports it, | |
" but does not automatically use 256 colors by default. | |
set t_Co=256 | |
"set t_Co=88 | |
let g:CSApprox_attr_map = { 'bold' : 'bold', 'italic' : '', 'sp' : '' } | |
" | |
" colorscheme badwolf "Changes the color scheme. Change this to your liking. | |
"colors for aws | |
syntax enable | |
set background=dark | |
colorscheme solarized | |
" Lookin /usr/share/vim/vim61/colors/ for options. | |
"setlocal spell "Enables spell checking (CURRENTLY DISABLED because it's | |
" kinda annoying). Make sure to uncomment the next line if you use this. | |
"set spellfile=~/.vimwords.add "The location of the spellcheck dictionary. | |
" Uncomment this line if you uncomment the previous line. | |
set foldmethod=manual "Lets you hide sections of code | |
"--- The following commands make the navigation keys work like standard editors | |
imap <silent> <Down> <C-o>gj | |
imap <silent> <Up> <C-o>gk | |
nmap <silent> <Down> gj | |
nmap <silent> <Up> gk | |
" "--- Ends navigation commands | |
" "--- The following adds a sweet menu, press F4 to use it. | |
source $VIMRUNTIME/menu.vim | |
call pathogen#infect() | |
set wildmenu | |
set cpo-=< | |
set wcm=<C-Z> | |
map <F4> :emenu <C-Z> | |
"--- End sweet menu |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment