From 7d467d1440ee77e06676355fe662f3d36c3f37f9 Mon Sep 17 00:00:00 2001 From: tavo-wasd Date: Fri, 15 Dec 2023 10:25:35 -0600 Subject: [PATCH] vimwiki and vim commentary --- .gitignore | 2 ++ vim/vimrc | 20 ++++++++++++-------- 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/.gitignore b/.gitignore index 3fdd0e1..66bd259 100644 --- a/.gitignore +++ b/.gitignore @@ -157,3 +157,5 @@ nextjs-nodejs/ kritadisplayrc kritarc okular-generator-popplerrc +r2modman/ +r2modmanPlus-local/ diff --git a/vim/vimrc b/vim/vimrc index c9eecfe..0f0ce9b 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -14,7 +14,9 @@ set clipboard=unnamedplus set shellcmdflag=-c set encoding=utf-8 set relativenumber +filetype plugin on set shiftwidth=4 +set nocompatible set cursorline set ignorecase set smartcase @@ -28,11 +30,9 @@ set undofile set mouse=a set showcmd set number +syntax on " Global keybindings -noremap gc :!git commit -m "" -noremap gp :!git push -noremap gl :!git pull noremap :setlocal spell! spelllang=en noremap :setlocal spell! spelllang=es noremap !!$SHELL @@ -45,9 +45,6 @@ noremap H :nohl noremap za noremap N /@@@ -" notes -"autocmd BufWritePost note-*.md execute '! git -C ~/Documents/notes/ add ~/Documents/notes/% ; git commit -m "Auto-commit: saved %"' - " groff autocmd FileType groff noremap :!zathura --fork %:r.pdf & disown autocmd FileType groff noremap :w :!groffc % @@ -66,7 +63,9 @@ autocmd BufWinEnter bibliography silent loadview autocmd BufWinLeave bookmarks zM | mkview autocmd BufWinEnter bookmarks silent loadview -" Neovim exclusive (I think) +" Wiki +autocmd FileType vimwiki noremap :w :VimwikiAll2HTML :!/bin/surf file:///tmp/wiki/index.html & + " Open a shell on a vertical split set splitright function OpenTerminal() @@ -111,12 +110,14 @@ Plug 'vim-airline/vim-airline-themes' Plug 'vim-scripts/AutoComplPop' Plug 'vim-airline/vim-airline' Plug 'jiangmiao/auto-pairs' +Plug 'tpope/vim-commentary' Plug 'Yggdroot/indentLine' Plug 'preservim/nerdtree' Plug 'junegunn/goyo.vim' Plug 'mhinz/vim-signify' -Plug 'ibhagwan/fzf-lua' " Neovim exclusive +Plug 'ibhagwan/fzf-lua' Plug 'morhetz/gruvbox' +Plug 'vimwiki/vimwiki' "Plug 'dracula/vim' call plug#end() @@ -162,3 +163,6 @@ noremap gf :FzfLua files let g:signify_disable_by_default = 1 highlight SignColumn ctermbg=NONE noremap gd :SignifyToggle + +" Vimwiki +let g:vimwiki_list = [{'path': '~/Documents/', 'path_html': '/tmp/wiki/'}]