Skip to content

Instantly share code, notes, and snippets.

@datacorder
Last active May 8, 2019 18:27
Show Gist options
  • Save datacorder/8bd1085d55eb8aa52522c31d8f0f6ae5 to your computer and use it in GitHub Desktop.
Save datacorder/8bd1085d55eb8aa52522c31d8f0f6ae5 to your computer and use it in GitHub Desktop.
Vim config
"""""""""""""""""""""""""""""""""""""
" GENERAL CONFIG "
"""""""""""""""""""""""""""""""""""""
set nocompatible
filetype off
syntax on
set number
set ruler
set hlsearch
set encoding=utf-8
set fileencoding=utf-8
" Vundle init
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'VundleVim/Vundle.vim'
" Set Proper Tabs
set tabstop=4
set shiftwidth=4
set smarttab
set expandtab
" Always display the status line
set laststatus=2
" Enable highlighting of the current line
set cursorline
" Plugins
Plugin 'Yggdroot/indentLine'
Plugin 'ayu-theme/ayu-vim'
Plugin 'scrooloose/nerdcommenter'
Plugin 'vim-airline/vim-airline'
Plugin 'scrooloose/nerdtree'
Plugin 'kien/rainbow_parentheses.vim'
Plugin 'robbles/logstash.vim'
" Indent guides
let g:indent_guides_enable_on_vim_startup = 1
" Nerdtree config
nmap <C-n> :NERDTreeToggle<CR>
autocmd StdinReadPre * let s:std_in=1
autocmd VimEnter * if argc() == 0 && !exists("s:std_in") | NERDTree | endif
let g:NERDTreeDirArrowExpandable = '▸'
let g:NERDTreeDirArrowCollapsible = '▾'
" Vundle last lines
call vundle#end()
filetype plugin indent on
" Colorscheme
set termguicolors
let ayucolor="dark"
colorscheme ayu
" Config comentarios
let mapleader=","
" Rainbow
let g:rbpt_max = 16
let g:rbpt_loadcmd_toggle = 0
au VimEnter * RainbowParenthesesToggle
au Syntax * RainbowParenthesesLoadRound
au Syntax * RainbowParenthesesLoadSquare
au Syntax * RainbowParenthesesLoadBraces
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment