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()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')
" let Vundle manage Vundle, required
Plugin 'VundleVim/Vundle.vim'
Plugin 'othree/javascript-libraries-syntax.vim'
Plugin 'posva/vim-vue'
Plugin 'luochen1990/rainbow'
Plugin 'tpope/vim-commentary'
let g:rainbow_active = 1 "0 if you want to enable it later via :RainbowToggle
" All of your Plugins must be added before the following line
call vundle#end() " required
filetype plugin indent on " required
" Set colorscheme and his variation
colorscheme gruvbox
set bg=dark
" Set number line
set number
" Tab as spaces an 2 spaces
set shiftwidth=2 softtabstop=2 expandtab
" map %:h to %%
cnoremap <expr> %% getcmdtype() == ':' ? expand('%:h').'/' : '%%'
" Let use find ex command set all searchh in all subdirectories inside of root
" directory
set path=**
" Set higlight over matched words after searchs
set hls
" Remap the Caps Lock Key to Scape
41 au VimEnter * silent !xmodmap -e 'clear Lock' -e 'keycode 0x42 = Escape'
42 au VimLeave * silent !xmodmap -e 'clear Lock' -e 'keycode 0x42 = Caps_Lock'
" Set Commands History to 200 records
set history=200
" Set file or buffer title on the terminal bar
set title
" Show file status at the bottom bar
set laststatus=2
" Set leader key to , instead of \
let mapleader = ','