First, install Vundle:
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
My current ~/.vimrc file is the following.
Don’t forget to :PluginInstall in vim after writing it.
colorscheme torte
" Vundle setup (for Vim plugins)
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'
" Install ctrlp for vim
Plugin 'ctrlpvim/ctrlp.vim'
" All of your Plugins must be added before the following line
call vundle#end() " required
syntax on
filetype on
filetype plugin indent on
set smartindent
set tabstop=2
set shiftwidth=2
set softtabstop=2
set expandtab
set autoindent
set ruler
set showcmd
set nocompatible "Kill vi-compatibility
set encoding=utf-8 "UTF-8 character encoding
set showmatch
set hlsearch
set ignorecase
set smartcase
set incsearch
set wrap
set linebreak
set backspace=indent,eol,start "Better backspacing
set ttyfast "Speed up vim
set nostartofline
set nonu "No use numbers
set lazyredraw "Don't redraw while running macros (faster)
set wildmode=longest,list "Better unix-like tab completion
set clipboard=unnamed "Copy and paste from system clipboard
set formatoptions=croq "Enable comment line auto formatting
" Strip whitespace from end of lines when writing file
autocmd BufWritePre * :%s/\s\+$//e
imap jj <esc>:w<CR>
imap kk <esc>l
nmap j gj
nmap k gk
nmap 0 ^
nmap cv <C-v>
My current ~/.zshrc or ~/.bashrc file is:
alias ls='ls -G'
alias d='cd ~/Desktop'
alias g='cd ~/git'
alias python=python3
alias pip=pip3
function clone() {
git clone https://github.com/$1
}
alias sha='sha256sum'
alias sit='source ~/.zshrc'
# To change to the x86 environment, run the following:
# env /usr/bin/arch -x86_64 /bin/zsh --login
alias ibrew='/usr/local/Homebrew/bin/brew'