Skip to content

Instantly share code, notes, and snippets.

@aboustayyef
Created August 12, 2020 22:07
Show Gist options
  • Save aboustayyef/2a7df90a30a409d40ba8de57de5b4728 to your computer and use it in GitHub Desktop.
Save aboustayyef/2a7df90a30a409d40ba8de57de5b4728 to your computer and use it in GitHub Desktop.
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()
" let Vundle manage Vundle, required
Plugin 'VundleVim/Vundle.vim' " Package Manager
Plugin 'tpope/vim-vinegar' " Simple File Browsing (using - )
Plugin 'scrooloose/nerdtree' " File Sidebar
Plugin 'ctrlpvim/ctrlp.vim' " Fast File Access Sublime Style
Plugin 'jwalton512/vim-blade' " Syntax Highlighting for blade
Plugin 'elzr/vim-json' " Syntax Highlighting for Json
Plugin 'mxw/vim-jsx' " Syntax Highlighting for Babel / JSX
Plugin 'posva/vim-vue' " Vue Syntax highlighting
" All of your Plugins must be added before the following line
call vundle#end() " required
filetype plugin indent on " required
set showmode " always show what mode we're currently editing in
set nowrap " don't wrap lines
set smarttab
set tags=tags
set shiftround " use multiple of shiftwidth when indenting with '<' and '>'
set backspace=indent,eol,start " allow backspacing over everything in insert mode
set autoindent " always set autoindenting on
set copyindent " copy the previous indentation on autoindenting
set number " always show line numbers
set ignorecase " ignore case when searching
set smartcase " ignore case if search pattern is all lowercase,
set timeout timeoutlen=200 ttimeoutlen=100
set visualbell " don't beep
set noerrorbells " don't beep
set autowrite "Save on buffer switch
set mouse=a
syntax enable
let NERDTreeShowHidden=1
"--------Backspace button functionality------"
set backspace=indent,eol,start
let mapleader = ','
set linespace=15
"-------- Nerd Tree --------
let NERDTreeHijackNetrw = 0
"------------Visuals------------"
colorscheme atom-dark-256
" remove the background color for the line numbers bar
highlight LineNr ctermbg=bg
set nuw=5
set guioptions-=l
set guioptions-=L
set guioptions-=r
set guioptions-=R
set guifont=Monospace:h20
set foldcolumn=0
"------------Mappings-----------"
set hlsearch
set incsearch
"------------Mappings-----------"
"make it easy to edit the Vimrc File"
nmap <leader>ev :tabedit $MYVIMRC<cr>
"add simple highlight removal using ,<space>
nmap <C-_> :nohlsearch<cr>
"make NERDTreeToggle simpler
nmap <C-b> :NERDTreeToggle<cr>
"CtrlP toggler for Tag finder
nmap <C-r> :CtrlPBufTag<cr>
"CtrlP Most Recently Used Files
nmap <C-e> :CtrlPMRUFiles<cr>
" Set order of ctrlp window
let g:ctrlp_match_window = 'top,order:ttb,min:1,max:30,results:30'
"Automatically source the Vimrc file on save.
augroup autosourcing
autocmd!
autocmd BufWritePost .vimrc source %
augroup END
" Tab Stops
set tabstop=4 " The width of a TAB is set to 4.
" Still it is a \t. It is just that
" Vim will interpret it to be having
" a width of 4.
set shiftwidth=4 " Indents will have a width of 4
set softtabstop=4 " Sets the number of columns for a tab
set expandtab " Expand TABs to spaces
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment