" vimrc
" Author: Byron Torres (@torresjrjr) <b@torresjrjr.com>
" License: GPLv3 <https://www.gnu.org/licenses/gpl>
filetype plugin indent on | syntax enable
set hidden showcmd laststatus=2 showbreak=`
set path+=** wildmenu wildignorecase backspace=2
set number scrolloff=5 splitbelow splitright
set hlsearch incsearch ignorecase smartcase
set autoindent smarttab shiftwidth=0 tabstop=4
set nowrap textwidth=72 linebreak breakindent
set mouse+=a guioptions+=d highlight=Sn,su colorcolumn=73,81
set viminfofile=$XDG_CACHE_HOME/vim/viminfo nojoinspaces
set list listchars=tab:\:\ ,lead:.,trail:#,nbsp:%
set ruler rulerformat=%17(%l,%c%V%)%=`%B
colorscheme elflord
hi LineNr ctermfg=DarkMagenta
hi NonText ctermfg=DarkBlue
hi SpecialKey ctermfg=DarkBlue
hi ColorColumn ctermbg=Black
let g:netrw_home='$XDG_CACHE_HOME/vim/'
let g:netrw_banner=0
let g:netrw_liststyle=3
let g:netrw_browse_split=3
command VV <mods> new $MYVIMRC
command VL <mods> new $MYVIMRCLOCAL
command VimrcLocal let $MYVIMRCLOCAL = expand('<sfile>:p:~')
au BufReadPost * exe "norm! g`\""
noremap! kj <esc>
noremap Q q:
noremap <C-L> :nohls<CR><C-L>
noremap <C-W>v :vnew<CR>
noremap <C-J> :bnext<CR>
noremap <C-K> :bprev<CR>
noremap <C-N> :cnext<CR>
noremap <C-P> :cprev<CR>
let mapleader="\<space>"
noremap <leader><tab> :.term sh<CR>
noremap <leader>q :.!sh<CR>
noremap <leader>r :.r !
noremap <leader>w :.w !
noremap <leader>f :Files<CR>
noremap <leader>b :Buffers<CR>
" Plugin Manager: junegunn/vim-plug
if !filereadable(expand('~/.vim/autoload/plug.vim')) | finish | endif
call plug#begin('~/.vim/plugged')
Plug 'https://github.com/junegunn/fzf.git', { 'do': { -> fzf#install() } }
Plug 'https://github.com/junegunn/fzf.vim.git'
Plug 'https://github.com/tpope/vim-surround.git'
call plug#end()
let g:plug_window='0tabnew'
" @torresjrjr