Browse files

Add comments into VIMRC

  • Loading branch information...
1 parent e3d070f commit cd9755b106d661cbff7dd194131f06df2087962f @RStankov committed Apr 8, 2012
Showing with 44 additions and 9 deletions.
  1. +44 −9 dot/vimrc
@@ -1,44 +1,79 @@
+" Switch on syntax highlighting
+syntax on
+" Use vim defauls
set nocompatible
+" Pathogen
call pathogen#infect()
filetype plugin on
filetype indent on
syntax on
-set clipboard=unnamedplus
+" Disable swap files
set nobackup nowritebackup noswapfile
-set number
+" Tell vim to always put a status line in, even if there is only one window
set laststatus=2
-set expandtab
-set shiftwidth=2
+" Set formating options (see help for details)
set formatoptions=croqn
-set linebreak showbreak=+>
-set autoread autowrite
+" Enable linebreaks and user '...' for marking them
+set linebreak showbreak=...
+" Automatically read a file that has changed on disk
+set autoread
+" Set default encoding to UTF-8
set encoding=utf-8
+" Set file formats to Unix
set ffs=unix
-set hlsearch incsearch
+" Enable search highlighting
+set hlsearch
+" Incrementally match the search
+set incsearch
+" Fix backspace in insert mode
set backspace=indent,eol,start
+"<D-"> Set clipboard
+set clipboard=unnamedplus
+" Autoindent options
set autoindent
set expandtab smarttab
set tabstop=8 softtabstop=2
set shiftwidth=2 shiftround
+" Set ignorecase in searches
+set ignorecase
+" Enable wildmenu command completions
set wildmenu
set wildmode=list:longest,full
+" Show the current mode
+set showmode
+" Show line numbers
+set number
+" Theme setup
set background=dark
colo solarized
+" Quick shortcuts for editing vim config
command! CEdit e $MYVIMRC
command! CRefresh source $MYVIMRC | source $MYGVIMRC
+" Toggle NERDTree
nmap gn :NERDTreeToggle<cr>
+" Splitjoin on Shift +/-
nmap _ :SplitjoinJoin<cr>
nmap + :SplitjoinSplit<cr>

0 comments on commit cd9755b

Please sign in to comment.