diff options
Diffstat (limited to 'files/vim')
| -rw-r--r-- | files/vim/autoload/Juliana.vim | 2 | ||||
| -rw-r--r-- | files/vim/vimrc | 10 |
2 files changed, 8 insertions, 4 deletions
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 <S-l> <nop> nmap <Tab> <nop> " ctrl + c no-op. nnoremap <C-c> <nop> +" shift + x delete no yank. +vnoremap X "_x " Disable F1 for help. nmap <F1> <nop> " Disable q: for histroy. @@ -266,6 +267,7 @@ nnoremap <silent> <expr> <Tab> 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 |