From 6e44d40ea73eed40c62be52d0c649e15efb010f0 Mon Sep 17 00:00:00 2001 From: Frederick Yin Date: Mon, 2 Oct 2023 19:34:17 -0400 Subject: final vimrc, zshrc, and kitty conf from bandito --- .vimrc | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) (limited to '.vimrc') diff --git a/.vimrc b/.vimrc index 248be87..14bd21d 100644 --- a/.vimrc +++ b/.vimrc @@ -1,5 +1,5 @@ -set nocompatible " be iMproved, required -filetype on " required +set nocompatible " be iMproved, required +filetype on " required set timeoutlen=1000 set ttimeoutlen=5 @@ -20,6 +20,7 @@ Plugin 'nvim-treesitter/nvim-treesitter', {'do': ':TSUpdate'} Plugin 'nvim-lua/plenary.nvim' Plugin 'nvim-telescope/telescope.nvim' Plugin 'tpope/vim-surround' +Plugin 'puremourning/vimspector' " File types Plugin 'neovimhaskell/haskell-vim' Plugin 'peterhoeg/vim-qml' @@ -36,10 +37,11 @@ Plugin 'vim-airline/vim-airline-themes' Plugin 'azadkuh/vim-cmus' " Fun Plugin 'Eandrju/cellular-automaton.nvim' +Plugin 'tamton-aquib/duck.nvim' " All of your Plugins must be added before the following line -call vundle#end() " required -filetype plugin indent on " required +call vundle#end() " required +filetype plugin indent on " required " Brief help " :PluginList - lists configured plugins @@ -70,6 +72,7 @@ autocmd FileType python set ts=4 sw=4 sts=4 expandtab autocmd FileType markdown set ts=4 sw=4 sts=4 expandtab autocmd FileType tex set ts=4 sw=4 sts=4 expandtab autocmd FileType haskell set ts=4 sw=4 sts=4 expandtab +autocmd FileType qml set ts=4 sw=4 sts=4 expandtab autocmd FileType c,cpp,asm set ts=8 sw=8 sts=8 noexpandtab set autoindent smartindent @@ -82,7 +85,7 @@ highlight Pmenu guibg=#282C34 highlight PmenuSel guibg=#61AFEF " Generic shortcuts -inoremap :wi +inoremap :wa nnoremap \ :noh autocmd FileType python nnoremap b :!black %:e autocmd FileType c,cpp nnoremap b :pyf /usr/share/clang/clang-format.py @@ -117,9 +120,7 @@ let g:NERDToggleCheckAllLines = 1 let g:vimtex_view_general_viewer = 'okular' let g:vimtex_view_general_options = '--unique file:@pdf\#src:@line@tex' let g:vimtex_compiler_method = 'latexmk' -let g:vimtex_compiler_latexmk = { - \'options': ['-shell-escape'] -\} +let g:vimtex_compiler_latexmk = {'options': ['-shell-escape']} " nvim-tree nnoremap e :NvimTreeToggle @@ -134,8 +135,8 @@ let g:pencil#map#suspend_af = 'K' let g:pencil#textwidth = 74 augroup pencil autocmd! - " autocmd FileType markdown,mkd call pencil#init() - autocmd FileType text call pencil#init() + " autocmd FileType markdown,mkd call pencil#init() + autocmd FileType text call pencil#init() augroup END " vim-workspace @@ -146,3 +147,7 @@ let g:workspace_autosave = 0 " vim-cmus nnoremap c :Cmus + +" duck.nvim +nnoremap dd :lua require("duck").hatch() +nnoremap dk :lua require("duck").cook() -- cgit v1.2.3