Skip to content

Instantly share code, notes, and snippets.

@leopolicastro
Created January 26, 2024 21:22
Show Gist options
  • Save leopolicastro/f1fe4bace18b9d3afa35517f13068aec to your computer and use it in GitHub Desktop.
Save leopolicastro/f1fe4bace18b9d3afa35517f13068aec to your computer and use it in GitHub Desktop.
" Plugins {{{
call plug#begin()
Plug 'itchyny/lightline.vim'
Plug 'jessarcher/vim-heritage'
Plug 'junegunn/fzf'
Plug 'junegunn/fzf.vim'
Plug 'kana/vim-textobj-user'
Plug 'nelstrom/vim-textobj-rubyblock'
Plug 'pangloss/vim-javascript'
Plug 'preservim/vimux'
Plug 'tpope/vim-bundler'
Plug 'tpope/vim-commentary'
Plug 'tpope/vim-dispatch'
Plug 'tpope/vim-endwise'
Plug 'tpope/vim-fugitive'
Plug 'tpope/vim-ragtag'
Plug 'tpope/vim-rails'
Plug 'tpope/vim-rhubarb'
Plug 'tpope/vim-sensible'
Plug 'tpope/vim-surround'
Plug 'tpope/vim-unimpaired'
Plug 'tpope/vim-vinegar'
Plug 'vim-test/vim-test'
call plug#end()
" }}}
" Keymaps {{{
let mapleader=' '
nmap <leader>ve :e $MYVIMRC<cr>
nmap <leader>vr :source $MYVIMRC<cr>
nmap <leader>gst :Git<cr>
nmap <C-T> :GFiles<cr>
nmap <C-P> :Files<cr>
nmap <leader>fp :Rg<cr>
nmap <leader>ft :Tags<cr>
nmap <leader>ls :Buffers<cr>
nmap <leader>o :BTags<cr>
nmap <leader>/ :BLines<cr>
nmap <cr> :w<cr>
nmap <leader>q :bd<cr>
nmap <leader>Q :bufdo bd<cr>
" C-T is an override for popping the tagstack, so remap
nmap <leader><bs> :pop<cr>
nmap <leader>ycp :let @+=expand("%")<cr>
nmap <leader>vp :VimuxPromptCommand<cr>
nmap <leader>vl :VimuxRunLastCommand<cr>
nmap <leader>v<C-l> :VimuxClearTerminalScreen<cr>
nmap <leader>tf :TestFile<cr>
nmap <leader>tl :TestLast<cr>
nmap <leader>tn :TestNearest<cr>
nmap <leader>tg :TestVisit<cr>
" }}}
" Theme {{{
packadd! dracula_pro
let g:dracula_colorterm=0
let g:dracula_bold=0
let g:dracula_italic=0
set termguicolors
colorscheme dracula_pro
" }}}
" Settings {{{
set exrc
set hidden
set modeline
set modelines=1
set scrolloff=10
set splitbelow
set splitright
set hlsearch
set ignorecase
set incsearch
set smartcase
set nobackup
set noswapfile
if !isdirectory($HOME . '/.vim/undo-dir')
call mkdir($HOME . '/.vim/undo-dir', '', 0700)
endif
set undodir=~/.vim/undo-dir
set undofile
"" Status Line
set noshowmode
let g:lightline = {
\ 'colorscheme': 'dracula_pro',
\ }
"" vim-test
let test#strategy='vimux'
" }}}
" vim: foldmethod=marker
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment