set nocompatible " be iMproved, required filetype off " required " set the runtime path to include Vundle and initialize set rtp+=$VIM/bundle/Vundle.vim/ call vundle#begin('$VIM/bundle/') "call vundle#begin() " let Vundle manage Vundle, required Plugin 'VundleVim/Vundle.vim' Plugin 'scrooloose/nerdtree' Plugin 'tpope/vim-fugitive' Plugin 'tpope/vim-commentary' Plugin 'tpope/vim-surround' Plugin 'raimondi/delimitMate' Plugin 'flazz/vim-colorschemes' Plugin 'zeis/vim-kolor' Plugin 'vim-scripts/mru.vim' Plugin 'dhruvasagar/vim-table-mode' Plugin 'easymotion/vim-easymotion' Plugin 'ervandew/supertab' "Plugin 'garbas/vim-snipmate' "Plugin 'tomtom/tlib_vim' " dependency of snipmate "Plugin 'marcweber/vim-addon-mw-utils' " dependency of snipmate "Plugin 'Shougo/neocomplete.vim' "Plugin 'vim-syntastic/syntastic' "Plugin 'Valloric/YouCompleteMe' " " Brief help " :PluginList - lists configured plugins " :PluginInstall - installs plugins; append `!` to update or just :PluginUpdate " :PluginSearch foo - searches for foo; append `!` to refresh local cache " :PluginClean - confirms removal of unused plugins; append `!` to auto-approve removal " " see :h vundle for more details or wiki for FAQ " All of your Plugins must be added before the following line call vundle#end() " required filetype plugin indent on " required " Put your non-Plugin stuff after this line source $VIMRUNTIME/vimrc_example.vim source $VIMRUNTIME/mswin.vim behave mswin set diffexpr=MyDiff() function MyDiff() let opt = '-a --binary ' if &diffopt =~ 'icase' | let opt = opt . '-i ' | endif if &diffopt =~ 'iwhite' | let opt = opt . '-b ' | endif let arg1 = v:fname_in if arg1 =~ ' ' | let arg1 = '"' . arg1 . '"' | endif let arg2 = v:fname_new if arg2 =~ ' ' | let arg2 = '"' . arg2 . '"' | endif let arg3 = v:fname_out if arg3 =~ ' ' | let arg3 = '"' . arg3 . '"' | endif if $VIMRUNTIME =~ ' ' if &sh =~ '\ ' . arg3 if exists('l:shxq_sav') let &shellxquote=l:shxq_sav endif endfunction " remap home to jkl; noremap ; l noremap l k noremap k j noremap j h " press jk instead of escape ":imap jk "imap k "map af to enter button! imap af "press i to enter insert, ;j to exit inoremap ;j :nmap sd (easymotion-w) ":verbose nmap sd "Enter or Shift-Enter in normal mode to insert a blank line below or above current line. "Of course substitute and with your preferred keys. "increase/decrease split with +- if bufwinnr(1) map + + map - - endif filetype plugin indent on syntax on " y will now copy to clipboard set clipboard=unnamed set laststatus=2 "set statusline=%F%m%r%h%w\ [FORMAT=%{&ff}]\ [TYPE=%Y]\ "[POS=%l,%v][%p%%]\ %{strftime(\"%d/%m/%y\ -\ %H:%M\")} "distinguished - good for javascript " codeschool - all around good "guardian is ok for html , maybe better for CSS "github is a decent white bg : "eiffel is best white for visiblity colorscheme codeschool set guioptions-=T " Removes top toolbar set guioptions-=r " Removes right hand scroll bar set go-=L " Removes left hand scroll bar set guifont=Consolas\ Bold\ 14 :set formatoptions+=t set linespace=0 " Pixels of space between lines set noexpandtab " expandtab = inserts spaces set tabstop=4 " :retab substitutes a tab with this many spaces (or vice versa) set shiftwidth=4 " Automatic indentation indents this many spaces set softtabstop=0 " =sts Try to give user the feeling of using tabs although he/she :set tw=100 :set wm=2 " set margin of 2 "Put vim files in the temp directory instead of the current directory set backup set backupdir=$VIM\tmp set backupskip=$VIM\tmp\* set directory=$VIM\tmp set undodir=$VIM\tmp "set backupdir=C:\WINDOWS\Temp "set backupskip=C:\WINDOWS\Temp\* "set directory=C:\WINDOWS\Temp "set undodir=C:\WINDOWS\Temp set writebackup "set line no, buffer, search, highlight, autoindent and more. set nu set hidden set ignorecase set incsearch set smartcase set showmatch set autoindent set ruler set vb set viminfo+=n$VIM/_viminfo set noerrorbells set showcmd set mouse=a set history=1000 set undolevels=1000 "http://vim.wikia.com/wiki/Word_wrap_without_line_breaks set wrap set linebreak set nolist set textwidth=0 set wrapmargin=0 "open nerdtree at start autocmd VimEnter * NERDTree autocmd BufEnter * NERDTreeMirror