~torresjrjr/.vim

.vim/vimrc -rw-r--r-- 1.9 KiB
fc9fc68eByron Torres Contents 1 year, 7 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
" 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