2019-09-13 23:28:05 +00:00
|
|
|
" Single-quote is a comment written to be read
|
2019-09-14 09:20:51 +00:00
|
|
|
" Double-quotes are commented out code and can be removed or added
|
2019-09-13 23:28:05 +00:00
|
|
|
|
|
|
|
" Set tabwidth=2, adjust Vim shiftwidth to the same
|
|
|
|
set tabstop=2 shiftwidth=2
|
|
|
|
|
|
|
|
" expandtab inserts spaces instead of tabs
|
|
|
|
set expandtab
|
|
|
|
|
|
|
|
" autindent inserts the next line at your current depth
|
|
|
|
set autoindent
|
|
|
|
|
|
|
|
" mouse=a allows for mouse interaction with vim when supported
|
|
|
|
set mouse=a
|
|
|
|
|
|
|
|
" Enable Syntax Highlighting in Vim
|
|
|
|
syntax on
|
|
|
|
|
|
|
|
" Fix plugin compatibility issues
|
|
|
|
set nocp
|
|
|
|
" Allow backspace to remove all types of characters
|
|
|
|
set backspace=indent,eol,start
|
|
|
|
" set rtp+=/path/to/rtp/that/included/pathogen/vim " if needed
|
|
|
|
" Enable Pathogen plugin manager
|
|
|
|
execute pathogen#infect()
|
|
|
|
filetype plugin indent on
|
|
|
|
|
|
|
|
" Custom Keybindings
|
|
|
|
" nnoremap <C-e> <C-w> " Modify and remove leading quotation
|
|
|
|
|
|
|
|
" Set window jump to custom binding
|
|
|
|
" default Ctrl-W conflict - closes browser tabs
|
|
|
|
nnoremap <C-e> <C-w>
|