1
0
mirror of https://github.com/chylex/dotfiles.git synced 2025-12-16 10:28:02 +01:00

Compare commits

...

2 Commits

Author SHA1 Message Date
31f48f8934 Update .vimrc (disable joinspaces) 2025-12-09 13:36:47 +01:00
fccc21fd41 Update .vimrc (completion bindings) 2025-12-09 13:04:59 +01:00

9
.vimrc
View File

@@ -1,5 +1,6 @@
set autoindent
set backspace=indent,eol,start
set completeopt=fuzzy,menuone,preview
set encoding=utf-8
set guifont=Cascadia_Mono:h12:cANSI:qDRAFT
set guioptions-=t " Remove menu tearoff
@@ -16,6 +17,7 @@ set modeline
set modelines=2
set mouse=a
set noerrorbells
set nojoinspaces
set noshowcmd
set noshowmode
set nrformats-=octal
@@ -175,6 +177,13 @@ xnoremap P p
" Clear search highlights
nnoremap <Esc> :nohlsearch<Return><Esc>
" Completion
inoremap <C-Space> <C-n>
inoremap <expr> j pumvisible() ? '<C-n>' : 'j'
inoremap <expr> k pumvisible() ? '<C-p>' : 'k'
inoremap <expr> <Esc> pumvisible() ? '<C-e>' : '<Esc>'
inoremap <expr> <Enter> pumvisible() ? '<C-y>' : '<Enter>'
" Use Ctrl for selection and clipboard
nnoremap <C-a> ggVG
xnoremap <C-a> ggoG