From 342f1dcf115f998cbb5d27c5593e215b01e5b7a4 Mon Sep 17 00:00:00 2001 From: Andrew Opalach Date: Wed, 29 Oct 2025 14:20:21 -0400 Subject: Finish adding files from new moyo, misc updates --- files/vim/autoload/Juliana.vim | 2 ++ files/vim/vimrc | 10 ++++++---- 2 files changed, 8 insertions(+), 4 deletions(-) (limited to 'files/vim') diff --git a/files/vim/autoload/Juliana.vim b/files/vim/autoload/Juliana.vim index 4dd86db..9af02d7 100644 --- a/files/vim/autoload/Juliana.vim +++ b/files/vim/autoload/Juliana.vim @@ -6,6 +6,8 @@ function! Juliana#Init() autocmd ModeChanged [V\x16]*:i let g:Juliana#has_selection = 1 autocmd InsertLeave * let g:Juliana#has_selection = 0 augroup END + " This won't trigger autocomplete until 2 characters are typed. + autocmd ModeChanged *:i set noac | augroup JulianaSkipAutocomplete | autocmd TextChangedI * set ac | autocmd! JulianaSkipAutocomplete | augroup END endfunction function! Juliana#CompleteTab(type) diff --git a/files/vim/vimrc b/files/vim/vimrc index 41e30fb..c40eeec 100644 --- a/files/vim/vimrc +++ b/files/vim/vimrc @@ -1,5 +1,3 @@ -" @TODO: Map 'd' to delete no yank - " Basic settings. set nocompatible set number @@ -130,8 +128,9 @@ if isdirectory(expand("~/c")) endif set autocomplete -set complete=.^5,w^5,b^5,u^5 -set completeopt=popup +"set complete=.^6,w^6,b^6,u^6,i^6,d^6 +set complete=.^6,w^6,b^6,u^6 +set completeopt+=menu,popup " Plugins. let g:fugitive_no_maps = 1 @@ -182,6 +181,8 @@ nnoremap nmap " ctrl + c no-op. nnoremap +" shift + x delete no yank. +vnoremap X "_x " Disable F1 for help. nmap " Disable q: for histroy. @@ -266,6 +267,7 @@ nnoremap Juliana#CompleteNTab("FOLD") command Tabify set noexpandtab | %retab! | set expandtab command Untabify set expandtab | %retab! +" @TODO: noeol, nofixeol, binary command Hex :%!xxd command Unhex :%!xxd -r -- cgit v1.2.3-101-g0448