Skip to content

Instantly share code, notes, and snippets.

@rhberro
Created July 21, 2016 20:55
Show Gist options
  • Select an option

  • Save rhberro/ea5352c905f823f2a56f1e6b6cdb248b to your computer and use it in GitHub Desktop.

Select an option

Save rhberro/ea5352c905f823f2a56f1e6b6cdb248b to your computer and use it in GitHub Desktop.
set nocompatible "Do not try to be vi compatible.
syntax on "Enable syntax highlighting.
"--------------------------------------"
"-GUI----------------------------------"
"--------------------------------------"
set guioptions-=l
set guioptions-=L
set guioptions-=r
set guioptions-=R
set guioptions-=e "Don't show gui tabs.
"--------------------------------------"
"-COLORS-------------------------------"
"--------------------------------------"
set background=dark
colorscheme solarized "Set the color scheme.
"--------------------------------------"
"-TABS & SPACES------------------------"
"--------------------------------------"
set expandtab "Expand tab to spaces.
set tabstop=4 "Set the tab width.
set softtabstop=4 "Set the tab width.
set shiftwidth=4 "Set the tab width.
"--------------------------------------"
"-EDITOR-------------------------------"
"--------------------------------------"
set number "Show line numbers.
set ruler "Show the ruler.
set wildmenu "Enable visual to autocomplete on command menu.
set cursorline "Highlight the current line.
set showcmd "Show command in bottom bar.
set autoindent "Enable the auto indenting.
filetype indent on "Set filetype-specific for indent files.
filetype plugin on
set backspace=indent,eol,start "Make the backspack works like others editors.
"--------------------------------------"
"-FONT---------------------------------"
"--------------------------------------"
set guifont=FiraCode\ 12 "Set the font family.
set linespace=15 "Set the space between lines.
"--------------------------------------"
"-SEARCH-------------------------------"
"--------------------------------------"
set hlsearch "Enable the search highlighting.
set incsearch "Enable incremental search highlighting.
set ignorecase "Ignore case when searching.
"--------------------------------------"
"-CTRLP--------------------------------"
"--------------------------------------"
set runtimepath^=~/.vim/bundle/ctrlp.vim "Setup the ctrlp.vim plugin.
let g:ctrlp_custom_ignore = 'node_modules\|git' "Set the files to ignore.
let g:ctrlp_match_window = 'bottom,min:1,max:30,results:15' "Set the max number of ctrlp plugin results.
let g:ctrlp_switch_buffer = 0 "Always open files in a new buffer.
let g:ctrlp_working_path_mode = 0 "Follow our directory change.
"--------------------------------------"
"-BINDINGS-----------------------------"
"--------------------------------------"
map <Leader>vi :e $MYVIMRC<cr>
"--------------------------------------"
"-AUTO---------------------------------"
"--------------------------------------"
augroup autosourcing
autocmd!
autocmd BufWritePost .vimrc source %
augroup END
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment