add vim stuff

This commit is contained in:
frosty 2024-06-23 07:00:53 -04:00
parent f4df860c3a
commit d92e7df602
4 changed files with 80 additions and 0 deletions

1
.config/vim/autoload Submodule

@ -0,0 +1 @@
Subproject commit d863d0783236e1a46291f7791347740891186154

75
.config/vim/vimrc Normal file
View file

@ -0,0 +1,75 @@
call plug#begin()
Plug 'morhetz/gruvbox'
Plug 'mhinz/vim-startify'
Plug 'preservim/nerdtree'
Plug 'liuchengxu/vim-which-key'
Plug 'vim-airline/vim-airline'
Plug 'vim-airline/vim-airline-themes'
Plug 'preservim/nerdcommenter'
Plug 'nathanaelkane/vim-indent-guides'
call plug#end()
set background=dark
set termguicolors
colorscheme gruvbox
let g:NERDTreeWinPos = "right"
let g:NERDTreeMinimalUI = 1
set mouse=a
set showtabline=2
filetype plugin on
nnoremap , <Nop>
let mapleader = ','
nnoremap <leader>r :NERDTreeToggle<CR>
nnoremap <leader>we :w<CR>
nnoremap <leader>tn :tabe<CR>
nnoremap <leader>bw :set wrap!<CR>
nnoremap <leader>gh :Startify<CR>
nnoremap <leader>br :Ex<CR>
let g:NERDCreateDefaultMappings = 1
let g:NERDSpaceDelims = 1
let g:NERDTrimTrailingWhitespace = 1
let g:indent_guides_enable_on_vim_startup = 1
let g:indent_guides_start_level = 1
let g:indent_guides_guide_size = 1
set number relativenumber
set cursorline
let g:AirlineTheme = 'gruvbox'
let g:airline_section_z = '%l:%c - %{&expandtab ? "spaces" : "tabs"}: %{&shiftwidth}'
set wildmenu
set wildmode=longest,list,full
" Startify options
highlight StartifyHeader ctermfg=Green
let g:startify_custom_header = [
\ ' █████ █████ ███ ',
\ ' ░░███ ░░███ ░░░ ',
\ ' ░███ ░███ ████ █████████████ ',
\ ' ░███ ░███ ░░███ ░░███░░███░░███ ',
\ ' ░░███ ███ ░███ ░███ ░███ ░███ ',
\ ' ░░░█████░ ░███ ░███ ░███ ░███ ',
\ ' ░░███ █████ █████░███ █████ ',
\ ' ░░░ ░░░░░ ░░░░░ ░░░ ░░░░░ ',
\ ]
let g:startify_lists = [
\ { 'type': 'bookmarks', 'header': [' Bookmarks'] },
\ { 'type': 'commands', 'header': [' Commands'] },
\ { 'type': 'files', 'header': [' Recents'] },
\ ]
" Set viminfo file
if !has('nvim') | set viminfofile=$XDG_DATA_HOME/vim/viminfo | endif
set noswapfile
" vim: tabstop=4 shiftwidth=4 expandtab

1
.gitignore vendored Normal file
View file

@ -0,0 +1 @@
/.config/vim/plugged

3
.gitmodules vendored Normal file
View file

@ -0,0 +1,3 @@
[submodule ".config/vim/autoload"]
path = .config/vim/autoload
url = https://github.com/junegunn/vim-plug