vim and zsh config

This commit is contained in:
Daan Vanoverloop 2020-11-25 09:54:32 +01:00
parent 2883c46c5c
commit 1d009e866d
2 changed files with 16 additions and 7 deletions

View File

@ -2,7 +2,6 @@
set nocompatible " be iMproved, required
filetype off " required
call plug#begin()
Plug 'vim-scripts/c.vim'
Plug 'arcticicestudio/nord-vim'
@ -41,7 +40,7 @@ Plug 'vim-pandoc/vim-pandoc'
Plug 'vim-pandoc/vim-pandoc-syntax'
Plug 'junegunn/fzf.vim'
Plug 'tpope/vim-dadbod'
Plug 'lervag/vimtex'
"Plug 'lervag/vimtex'
Plug 'dpelle/vim-LanguageTool'
Plug 'neoclide/coc.nvim', {'branch': 'release'}
Plug 'tikhomirov/vim-glsl'
@ -235,10 +234,6 @@ smap <expr><TAB> neosnippet#expandable_or_jumpable() ?
\ "\<Plug>(neosnippet_expand_or_jump)"
\: "\<TAB>"
let g:deoplete#enable_smart_case = 1
imap <expr><CR> pumvisible() ? deoplete#close_popup() : "\<CR>"
:tnoremap <Esc> <C-\><C-n>
inoremap <silent><expr> <TAB>
\ pumvisible() ? coc#_select_confirm() :
\ coc#expandableOrJumpable() ? "\<C-r>=coc#rpc#request('doKeymap', ['snippets-expand-jump',''])\<CR>" :
@ -254,5 +249,16 @@ let g:coc_snippet_next = '<tab>'
nnoremap <C-f> :Files<cr>
" Disable arrow keys
map <Up> <Esc>
map <Down> <Esc>
map <Left> <Esc>
map <Right> <Esc>
imap <Up> <Esc>
imap <Down> <Esc>
imap <Left> <Esc>
imap <Right> <Esc>
set completeopt=menu,noinsert

5
.zshrc
View File

@ -70,7 +70,7 @@ alias nodeindex="node lib/index.js"
plugins=(
git
archlinux
tig gitfast colorize command-not-found cp dirhistory sudo zsh-syntax-highlighting
tig gitfast colorize command-not-found cp dirhistory sudo
)
ZSH_COMPDUMP=/tmp/zcompdump-$USER
@ -179,6 +179,9 @@ alias mkpy="python -m venv"
bindkey -v
bindkey "^?" backward-delete-char
zle-line-init() { zle -K vicmd; }
zle -N zle-line-init
HYPHEN_INSENSITIVE="true"
COMPLETION_WAITING_DOTS="true"