From b2bacfae4f70408dad1afe23de6f704efbc66285 Mon Sep 17 00:00:00 2001 From: "chawley (overlook)" Date: Mon, 14 Apr 2025 09:01:36 -0400 Subject: [PATCH] .vimrc and rm old templates Removed unused templates, added word-wrap to .vimrc --- .vim/templates/markdown | 8 -------- .vim/templates/readinglist | 9 --------- .vim/templates/rlfm | 3 +-- .vimrc | 9 +++++---- 4 files changed, 6 insertions(+), 23 deletions(-) delete mode 100644 .vim/templates/markdown delete mode 100644 .vim/templates/readinglist diff --git a/.vim/templates/markdown b/.vim/templates/markdown deleted file mode 100644 index dd5be9b..0000000 --- a/.vim/templates/markdown +++ /dev/null @@ -1,8 +0,0 @@ -:insert ---- -layout: post -title: -date: -categories: ---- - diff --git a/.vim/templates/readinglist b/.vim/templates/readinglist deleted file mode 100644 index db9f4cb..0000000 --- a/.vim/templates/readinglist +++ /dev/null @@ -1,9 +0,0 @@ -:insert -* *Title*: -* *Author*: -* *Started*: -* *Finished*: -* [Goodreads Link]() - -# Highlights / Notes - diff --git a/.vim/templates/rlfm b/.vim/templates/rlfm index d6b4ba0..fd76991 100644 --- a/.vim/templates/rlfm +++ b/.vim/templates/rlfm @@ -12,7 +12,6 @@ bookfinished: # booktitle -[Goodreads Link]() +## Highlights / Notes -# Highlights / Notes diff --git a/.vimrc b/.vimrc index 70dbd5e..bc029f6 100644 --- a/.vimrc +++ b/.vimrc @@ -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 column set nowrap " turn off word wrapping at @@ -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 x q " to open FZF files map :Files + " g to open FZF Git files map g :GFiles + " Map f to open FZF with word under cursor pre-populated " https://github.com/junegunn/fzf.vim/issues/1235#issuecomment-773726008 nnoremap f :call fzf#run(fzf#vim#with_preview(fzf#wrap({'source': 'find . \( -name .git -o -name .stversions \) -prune -o -print -iname "*'.expand("").'*"', 'sink': 'e', 'options': '--query="'.expand("").'"'}))) +" Toggle wrapping with w +nnoremap w :set wrap! + " --------------------------------------------------------------------------------------------------------------------- " ==> 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 - -