Skip to content

Instantly share code, notes, and snippets.

@lukzgois
Created February 24, 2016 21:02
Show Gist options
  • Save lukzgois/0afba66ca4fddf9fbb08 to your computer and use it in GitHub Desktop.
Save lukzgois/0afba66ca4fddf9fbb08 to your computer and use it in GitHub Desktop.
My Vim Config
set nocompatible " be iMproved, required
so ~/.vim/plugins.vim "Load vundle plugins
syntax enable
set backspace=indent,eol,start "Make backspace behave like every other editor.
let mapleader = ',' "Make comma the leader key.
"--------------GUI Settings------------"
set t_CO=256 "Make terminal default to 256 colors
colorscheme atom-dark-256 "Set colorscheme
set guifont=Fira_Code:h13 "Font for GUI vim version
set number "Show line numbers
"Disable scroolbars
set guioptions-=l
set guioptions-=L
set guioptions-=r
set guioptions-=R
"-------------Search-------------"
set hlsearch
set incsearch
"-------------Split management-------------"
nmap <C-J> <C-W><C-J>
nmap <C-K> <C-W><C-K>
nmap <C-L> <C-W><C-L>
nmap <C-H> <C-W><C-H>
set splitbelow
set splitright
"-------------Plugins-------------"
"CtrlP
let g:ctrlp_custom_ignore = 'node_modules\DS_Store\|git'
"-------------Mappings-------------"
"Make it easy to edit the Vimrc file
nmap <Leader>ev :tabedit $MYVIMRC<cr>
"Add simple highlight removal.
nmap <Leader><space> :nohlsearch<cr>
"Shows NERDTree sidebar
nmap <Leader>1 :NERDTreeToggle<cr>
nmap <Leader>r :CtrlPBufTag<cr>
"------------Auto-Commands--------"
" Automatically source te Vimrc file on save.
augroup autosourcing
autocmd!
autocmd BufWritePost .vimrc source %
augroup END
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 'tpope/vim-vinegar'
Plugin 'scrooloose/nerdtree'
Plugin 'ctrlpvim/ctrlp.vim'
" All of your Plugins must be added before the following line
call vundle#end() " required
filetype plugin indent on " required
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment