Skip to content

Instantly share code, notes, and snippets.

@dflima
Last active July 14, 2016 15:54
Show Gist options
  • Select an option

  • Save dflima/a272348b51df3e684b9a to your computer and use it in GitHub Desktop.

Select an option

Save dflima/a272348b51df3e684b9a to your computer and use it in GitHub Desktop.
syntax on
set background=dark
set colorcolumn=120
set encoding=utf-8
set expandtab
set hidden
set laststatus=2
set listchars=eol:⏎,tab:>-,trail:⌀,extends:>,precedes:<,conceal:-,nbsp:.
set nolist
set number
set shiftwidth=4
set tabstop=4
set backspace=2
"dein Scripts-----------------------------
set nocompatible " Be iMproved
" Required:
set runtimepath^=/home/d.lima/.vim/repos/github.com/Shougo/dein.vim
" Required:
call dein#begin(expand('/home/d.lima/.vim/'))
call dein#add('Shougo/dein.vim')
" Add or remove your plugins here:
call dein#add('Shougo/neosnippet.vim')
call dein#add('Shougo/neosnippet-snippets')
call dein#add('airblade/vim-gitgutter')
call dein#add('ctrlpvim/ctrlp.vim')
call dein#add('editorconfig/editorconfig-vim')
call dein#add('scrooloose/nerdtree')
call dein#add('terryma/vim-multiple-cursors')
call dein#add('tpope/vim-fugitive')
call dein#add('vim-airline/vim-airline')
call dein#add('vim-airline/vim-airline-themes')
" Required:
call dein#end()
" Required:
filetype plugin indent on
" If you want to install not installed plugins on startup.
if dein#check_install()
call dein#install()
endif
" End dein Scripts-------------------------
" vim-airline
let g:airline#extensions#tabline#enabled = 1
let g:airline_powerline_fonts = 1
if !exists('g:airline_symbols')
let g:airline_symbols = {}
endif
let g:airline_symbols.space = "\ua0"
set laststatus=2
" 256 colors
set t_Co=256
let g:rehash256 = 1
highlight LineNr ctermfg=grey
highlight ColorColumn ctermbg=grey
" GitGutter
set updatetime=250
let g:gitgutter_enabled = 1
let g:gitgutter_realtime = 1
let g:gitgutter_eager = 1
" keyboard shortcuts
let mapleader = ","
" json formatter
nnoremap <leader>j :% !python -m json.tool<cr>
" buffers
nnoremap <leader>b :ls<cr>
nnoremap <leader>q :bp<cr>
nnoremap <leader>w :bn<cr>
nnoremap <leader>c :bprevious<bar>split<bar>bnext<bar>bdelete<CR>
" php dev
nnoremap <leader>p :! php %
" NERDTree
nnoremap <leader>n :NERDTreeToggle<cr>
nnoremap <f3> :NERDTreeFind<cr>
" List
nnoremap <f5> :set list!<cr>
inoremap <f5> <C-o>:set list!<cr>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment