More mature vim setup

This commit is contained in:
Nathan Schneider
2025-01-06 12:51:05 -07:00
parent d1f3961632
commit 7a7fc7d6f1
5 changed files with 43 additions and 16 deletions
+26 -9
View File
@@ -3,22 +3,39 @@
" Basics
syntax on
set noerrorbells
set tabstop=4 softtabstop=4
set linebreak
set wrap
nnoremap <F5> :set linebreak<CR>
nnoremap <C-F5> :set nolinebreak<CR>
set incsearch
set spell
" Line wrapping in Markdown files
autocmd FileType markdown setlocal linebreak
autocmd FileType markdown noremap j gj
autocmd FileType markdown noremap k gk
" Tabs
set tabstop=4
set shiftwidth=4
set expandtab
"Search
set ic
set smartcase
set incsearch
" Workspace location
let g:workspace_session_directory = $HOME . '/.vim/sessions/'
" Set shell to bash
set shell=bash\ -l
" Shortcuts
command! Proximate :e ~/Cloud/Notes/Proximate.md
" Create panda command for pandout
command! -nargs=1 Panda :!~/.scripts/panda.sh % <args>
" Plugins
call plug#begin()
"Plug 'plasticboy/vim-markdown'
Plug 'junegunn/goyo.vim'
Plug 'reedes/vim-pencil'
Plug 'vim-pandoc/vim-pandoc'
"Plug 'plasticboy/vim-markdown'
"Plug 'vim-pandoc/vim-pandoc'
"Plug 'vim-pandoc/vim-pandoc-syntax'
call plug#end()