mirror of
https://github.com/chylex/dotfiles.git
synced 2025-12-16 10:28:02 +01:00
Compare commits
2 Commits
b7c2d47407
...
31f48f8934
| Author | SHA1 | Date | |
|---|---|---|---|
|
31f48f8934
|
|||
|
fccc21fd41
|
9
.vimrc
9
.vimrc
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user