Skip to content

Instantly share code, notes, and snippets.

@marinalimeira
Last active November 22, 2017 18:43
Show Gist options
  • Save marinalimeira/0de394c0e8ef3ae2aca16972dfcaa927 to your computer and use it in GitHub Desktop.
Save marinalimeira/0de394c0e8ef3ae2aca16972dfcaa927 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()
" 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 'dracula/vim'
Plugin 'scrooloose/nerdtree'
Plugin 'mattn/emmet-vim'
Plugin 'godlygeek/tabular'
Plugin 'mustache/vim-mustache-handlebars'
Plugin 'easymotion/vim-easymotion'
" All of your Plugins must be added before the following line
call vundle#end() " required
filetype plugin indent on " required
" To ignore plugin indent changes, instead use:
"filetype plugin on
"
" 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
" Put your non-Plugin stuff after this line
" Reload files if changed outside vim
set autoread
set number
color dracula
set tabstop=2 shiftwidth=2 expandtab
set backupdir=~/.vim/backup/
set directory=~/.vim/backup/
set hidden
" turn on syntax highlighting
syntax on
" Turn off swap and backup files
set noswapfile
set nobackup
set nowb
" Indentation
set autoindent
set smarttab
" Disabling arrow keys
noremap <Left> :echoe "Use h"<CR>
noremap <Right> :echoe "Use l"<CR>
noremap <Up> :echoe "Use k"<CR>
noremap <Down> :echoe "Use j"<CR>
" Share the clipboard outside of macvim
set clipboard=unnamed
" Auto format any pasted text
nnoremap P P=`]
nnoremap p p=`]
" Display extra whitespace
set list listchars=tab:»·,trail:·,nbsp:·
" Highlight search results
set hlsearch
" NerdTree keymaps
nmap <silent> <Leader>p :NERDTreeToggle<CR>
nmap <silent> <Leader>l :NERDTreeFind<CR>
" Easymotion
map / <Plug>(easymotion-sn)
omap / <Plug>(easymotion-tn)
map n <Plug>(easymotion-next)
map N <Plug>(easymotion-prev)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment