syntax enable let mapleader = " " call plug#begin('~/.vim/plugged') Plug 'ervandew/supertab' Plug 'preservim/nerdtree' Plug 'liuchengxu/space-vim-dark' Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' } Plug 'junegunn/fzf.vim' Plug 'mhinz/vim-startify' Plug 'jeetsukumaran/vim-buffergator' Plug 'ap/vim-buftabline' Plug 'airblade/vim-gitgutter' Plug 'majutsushi/tagbar' Plug 'vim-airline/vim-airline' " Plug 'ctrlpvim/ctrlp.vim' " Replaced with telescope Plug 'enricobacis/vim-airline-clock' Plug 'nvim-lua/plenary.nvim' Plug 'nvim-telescope/telescope.nvim' Plug 'thoughtbot/vim-rspec' Plug 'voldikss/vim-floaterm' call plug#end() map :NERDTreeToggle set tabstop=2 set shell=/bin/bash set shiftwidth=2 set expandtab set hidden set background=dark set autoindent set preserveindent set copyindent " Set Colors if (has("termguicolors")) set termguicolors endif colorscheme space-vim-dark hi Comment cterm=italic " Relative numbers and when not in buiffer set absolute numbers set number relativenumber augroup numbertoggle autocmd! autocmd BufEnter,FocusGained,InsertLeave * set relativenumber autocmd BufLeave,FocusLost,InsertEnter * set norelativenumber augroup END " Colors " Disable EX Mode map q: " Disable EX Mode nnoremap Q " Search with Ag nnoremap / :Ag nnoremap :bnext nnoremap :bprev nmap bq :bp bd # "Clock let g:airline#extensions#clock#format = '%I:%M:%S %X' " Find files using Telescope command-line sugar. nnoremap ff Telescope find_files nnoremap fg Telescope live_grep nnoremap fb Telescope buffers " nnoremap ft Telescope help_tags " RSpec.vim mappings map rt :call RunCurrentSpecFile() map rs :call RunNearestSpec() map rl :call RunLastSpec() map ra :call RunAllSpecs() let g:python_host_prog = '~/.nvim.pythonenv2/bin/python' let g:python3_host_prog = '~/.nvim.pythonenv/bin/python' " Floaterm let g:floaterm_keymap_toggle = '' let g:floaterm_width = 0.85 let g:floaterm_height = 0.85