set nocompatible
"Close vi compatible mode
set nocp
" Settings for vundle
filetype off
set rtp+=~/.vim/bundle/vundle
call vundle#rc()
" let Vundle manage Vundle
" required!
Bundle 'gmarik/vundle'
"======================My plugins=========================
" Vim Scripts repo
Bundle 'The-NERD-Commenter'
Bundle 'The-NERD-tree'
Bundle 'snipMate'
Bundle 'vim-coffee-script'
Bundle 'FuzzyFinder'
Bundle 'Handlebars'
Bundle 'L9'
Bundle 'xptemplate'
Bundle 'taglist.vim'
Bundle 'candycode.vim'
Bundle 'slimv.vim'
" Github repo
Bundle 'kien/ctrlp.vim'
Bundle 'tpope/vim-fugitive'
Bundle 'tpope/vim-rails'
Bundle 'xolox/vim-shell'
"Bundle 'vim-ruby/vim-ruby'
filetype plugin indent on
"======================My settings========================
" Set to auto read when a file is changed from the outside
set autoread
" With a map leader it's possible to do extra key combinations
" like <leader>w saves the current file
let mapleader = ","
let g:mapleader = ","
" Fast editing of the .vimrc
map <leader>ev :e! ~/.vimrc<cr>
"Fast reloading of the .vimrc
map <leader>l :source ~/.vimrc<cr>
"When .vimrc is edited, reload it
autocmd! bufwritepost .vimrc source ~/.vimrc
"Open grep window
map <leader>cw :botright cwindow<cr>
"Close current buffer quickly
map <leader>z :close<cr>
"force to overwrite file
map <leader>w :w!<cr>
"Build help
map <leader>bh :helptags ~/.vim/doc<cr>
"Taglist
let Tlist_Show_One_File=1
let Tlist_Exit_OnlyWindow=1
let Tlist_Use_Right_Window=1
let Tlist_WinWidth=45
map <F8> :TlistToggle<cr>
"FufBufferTag
map <leader>fbt :FufBufferTag<cr>
"FufBuffer
map <leader>fbf :FufBuffer<cr>
"Vim grep
map <leader>vg :vimgrep
"Quick build tags
"map <leader>bt :!ctags -R --exclude=.git --exclude=log * ~/.rvm/gems/ruby-1.9.3-p194@193<cr>
map <leader>bt :!ctags -R --exclude=.git --exclude=log <cr>
syntax enable "Enable syntax hl
colorscheme candycode
set number
set cursorline
set cursorcolumn
"set ruler "Always show current position
set cmdheight=1 "The commandbar height
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" => Text, tab and indent related
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
set shiftwidth=2
set tabstop=2
set expandtab
"set autochdir
"Make search act like search in modern browsers
set incsearch
"Highlight the search result
set hlsearch
set showmatch "Show matching bracets when text indicator is over them
set mat=2 "How many tenths of a second to blink
"Set magic on, for regular expressions
set magic
set cindent
set laststatus=2
"set foldenable
"set foldmethod=syntax
"set foldcolumn=2
"set font
set guifont=Bitstream\ Vera\ Sans\ Mono\ 9
set fenc=utf-8
"Ignore case when searching
set ignorecase
set smartcase
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" => Files, backups and undo
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Turn backup off, since most stuff is in SVN, git anyway...
set nobackup
set nowb
set noswapfile
"Show default help
let g:bufExplorerDefaultHelp=1
"Show detial help
let g:bufExplorerDetailedHelp=1
"Show relative to the current directory
let g:bufExplorerShowRelativePath=1
"The buffers are sorted by the buffer's name
let g:bufExplorerSortBy='extension'
"Split right
let g:bufExplorerSplitRight=1
"NERD_Tree
map <F7> :NERDTreeToggle<cr>
let NERDTreeCaseSensitiveSort=1
let NERDTreeWinPos="right"
let NERDTreeWinSize=45
"CtrlP file finder
map <leader>ff :CtrlP ./<cr>
set wildignore+=*/tmp/*,*.so,*.swp,*.zip " Linux/MacOSX
let g:ctrlp_custom_ignore = {
\ 'dir': '\.git$\|\.hg$\|\.svn$',
\ 'file': '\.exe$\|\.so$\|\.dll$',
\ 'link': 'SOME_BAD_SYMBOLIC_LINKS',
\ }
let g:ctrlp_by_filename=1
let g:ctrlp_use_caching=0
"omni compl ruby
let g:rubycomplete_buffer_loading=1
let g:rubycomplete_classes_in_global=1
let g:rubycomplete_rails=1
"Full screen setting
"set guioptions-=m
set guioptions-=T
set guioptions-=t
set guioptions-=l
set guioptions-=L
set guioptions-=r
set guioptions-=R
" HandleBars settings
au BufRead,BufNewFile *.handlebars,*.hbs set ft=handlebars
" Status bar
set statusline=%F%m%r%h%w/[FORMAT=%{&ff}]/[TYPE=%Y]/[ASCII=/%03.3b]/[HEX=/%02.2B]/[POS=%04l,%04v][%p%%]/[LEN=%L]
set laststatus=2
" Show command keys in the status line, default off in Unix!
set sc
"Close vi compatible mode
set nocp
" Settings for vundle
filetype off
set rtp+=~/.vim/bundle/vundle
call vundle#rc()
" let Vundle manage Vundle
" required!
Bundle 'gmarik/vundle'
"======================My plugins=========================
" Vim Scripts repo
Bundle 'The-NERD-Commenter'
Bundle 'The-NERD-tree'
Bundle 'snipMate'
Bundle 'vim-coffee-script'
Bundle 'FuzzyFinder'
Bundle 'Handlebars'
Bundle 'L9'
Bundle 'xptemplate'
Bundle 'taglist.vim'
Bundle 'candycode.vim'
Bundle 'slimv.vim'
" Github repo
Bundle 'kien/ctrlp.vim'
Bundle 'tpope/vim-fugitive'
Bundle 'tpope/vim-rails'
Bundle 'xolox/vim-shell'
"Bundle 'vim-ruby/vim-ruby'
filetype plugin indent on
"======================My settings========================
" Set to auto read when a file is changed from the outside
set autoread
" With a map leader it's possible to do extra key combinations
" like <leader>w saves the current file
let mapleader = ","
let g:mapleader = ","
" Fast editing of the .vimrc
map <leader>ev :e! ~/.vimrc<cr>
"Fast reloading of the .vimrc
map <leader>l :source ~/.vimrc<cr>
"When .vimrc is edited, reload it
autocmd! bufwritepost .vimrc source ~/.vimrc
"Open grep window
map <leader>cw :botright cwindow<cr>
"Close current buffer quickly
map <leader>z :close<cr>
"force to overwrite file
map <leader>w :w!<cr>
"Build help
map <leader>bh :helptags ~/.vim/doc<cr>
"Taglist
let Tlist_Show_One_File=1
let Tlist_Exit_OnlyWindow=1
let Tlist_Use_Right_Window=1
let Tlist_WinWidth=45
map <F8> :TlistToggle<cr>
"FufBufferTag
map <leader>fbt :FufBufferTag<cr>
"FufBuffer
map <leader>fbf :FufBuffer<cr>
"Vim grep
map <leader>vg :vimgrep
"Quick build tags
"map <leader>bt :!ctags -R --exclude=.git --exclude=log * ~/.rvm/gems/ruby-1.9.3-p194@193<cr>
map <leader>bt :!ctags -R --exclude=.git --exclude=log <cr>
syntax enable "Enable syntax hl
colorscheme candycode
set number
set cursorline
set cursorcolumn
"set ruler "Always show current position
set cmdheight=1 "The commandbar height
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" => Text, tab and indent related
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
set shiftwidth=2
set tabstop=2
set expandtab
"set autochdir
"Make search act like search in modern browsers
set incsearch
"Highlight the search result
set hlsearch
set showmatch "Show matching bracets when text indicator is over them
set mat=2 "How many tenths of a second to blink
"Set magic on, for regular expressions
set magic
set cindent
set laststatus=2
"set foldenable
"set foldmethod=syntax
"set foldcolumn=2
"set font
set guifont=Bitstream\ Vera\ Sans\ Mono\ 9
set fenc=utf-8
"Ignore case when searching
set ignorecase
set smartcase
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" => Files, backups and undo
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Turn backup off, since most stuff is in SVN, git anyway...
set nobackup
set nowb
set noswapfile
"Show default help
let g:bufExplorerDefaultHelp=1
"Show detial help
let g:bufExplorerDetailedHelp=1
"Show relative to the current directory
let g:bufExplorerShowRelativePath=1
"The buffers are sorted by the buffer's name
let g:bufExplorerSortBy='extension'
"Split right
let g:bufExplorerSplitRight=1
"NERD_Tree
map <F7> :NERDTreeToggle<cr>
let NERDTreeCaseSensitiveSort=1
let NERDTreeWinPos="right"
let NERDTreeWinSize=45
"CtrlP file finder
map <leader>ff :CtrlP ./<cr>
set wildignore+=*/tmp/*,*.so,*.swp,*.zip " Linux/MacOSX
let g:ctrlp_custom_ignore = {
\ 'dir': '\.git$\|\.hg$\|\.svn$',
\ 'file': '\.exe$\|\.so$\|\.dll$',
\ 'link': 'SOME_BAD_SYMBOLIC_LINKS',
\ }
let g:ctrlp_by_filename=1
let g:ctrlp_use_caching=0
"omni compl ruby
let g:rubycomplete_buffer_loading=1
let g:rubycomplete_classes_in_global=1
let g:rubycomplete_rails=1
"Full screen setting
"set guioptions-=m
set guioptions-=T
set guioptions-=t
set guioptions-=l
set guioptions-=L
set guioptions-=r
set guioptions-=R
" HandleBars settings
au BufRead,BufNewFile *.handlebars,*.hbs set ft=handlebars
" Status bar
set statusline=%F%m%r%h%w/[FORMAT=%{&ff}]/[TYPE=%Y]/[ASCII=/%03.3b]/[HEX=/%02.2B]/[POS=%04l,%04v][%p%%]/[LEN=%L]
set laststatus=2
" Show command keys in the status line, default off in Unix!
set sc