.vimrc and rm old templates

Removed unused templates, added word-wrap to .vimrc
This commit is contained in:
2025-04-14 09:01:36 -04:00
parent 6db5468bfe
commit b2bacfae4f
4 changed files with 6 additions and 23 deletions

View File

@@ -1,8 +0,0 @@
:insert
---
layout: post
title:
date:
categories:
---

View File

@@ -1,9 +0,0 @@
:insert
* *Title*:
* *Author*:
* *Started*:
* *Finished*:
* [Goodreads Link]()
# Highlights / Notes

View File

@@ -12,7 +12,6 @@ bookfinished:
# booktitle
[Goodreads Link]()
## Highlights / Notes
# Highlights / Notes

9
.vimrc
View File

@@ -28,7 +28,6 @@ set term=xterm-256color " LOTS of colors
set wildmenu " enhanced command line completion
" Text Wrapping
set textwidth=135 " Set textwidth
set colorcolumn= " disable colorzing <textwidth> column
set nowrap " turn off word wrapping at <textwidth>
@@ -46,7 +45,6 @@ set shiftwidth=4
set expandtab
autocmd! bufwritepost .vimrc source ~/.vimrc " When vimrc is edited, reload it
" Turn line numbers on/off for active/inactive buffers
augroup BgHighlight
autocmd!
@@ -248,12 +246,17 @@ map <esc>x <c-w>q
" <leader><leader> to open FZF files
map <leader><leader> :Files<CR>
" <leader>g to open FZF Git files
map <leader>g :GFiles<CR>
" Map <leader>f to open FZF with word under cursor pre-populated
" https://github.com/junegunn/fzf.vim/issues/1235#issuecomment-773726008
nnoremap <leader>f :call fzf#run(fzf#vim#with_preview(fzf#wrap({'source': 'find . \( -name .git -o -name .stversions \) -prune -o -print -iname "*'.expand("<cword>").'*"', 'sink': 'e', 'options': '--query="'.expand("<cword>").'"'})))<CR>
" Toggle wrapping with <leader>w
nnoremap <leader>w :set wrap!<CR>
" ---------------------------------------------------------------------------------------------------------------------
" ==> Keymaps: Text bubbling (http://vimcasts.org/episodes/bubbling-text/)
@@ -379,5 +382,3 @@ autocmd FileType netrw setl bufhidden=delete
"
autocmd BufNewFile,BufReadPost *.{yaml,yml} set filetype=yaml foldmethod=indent
autocmd FileType yaml setlocal ts=2 sts=2 sw=2 expandtab