vim and zsh config
This commit is contained in:
parent
2883c46c5c
commit
1d009e866d
|
@ -2,7 +2,6 @@
|
||||||
set nocompatible " be iMproved, required
|
set nocompatible " be iMproved, required
|
||||||
filetype off " required
|
filetype off " required
|
||||||
|
|
||||||
|
|
||||||
call plug#begin()
|
call plug#begin()
|
||||||
Plug 'vim-scripts/c.vim'
|
Plug 'vim-scripts/c.vim'
|
||||||
Plug 'arcticicestudio/nord-vim'
|
Plug 'arcticicestudio/nord-vim'
|
||||||
|
@ -41,7 +40,7 @@ Plug 'vim-pandoc/vim-pandoc'
|
||||||
Plug 'vim-pandoc/vim-pandoc-syntax'
|
Plug 'vim-pandoc/vim-pandoc-syntax'
|
||||||
Plug 'junegunn/fzf.vim'
|
Plug 'junegunn/fzf.vim'
|
||||||
Plug 'tpope/vim-dadbod'
|
Plug 'tpope/vim-dadbod'
|
||||||
Plug 'lervag/vimtex'
|
"Plug 'lervag/vimtex'
|
||||||
Plug 'dpelle/vim-LanguageTool'
|
Plug 'dpelle/vim-LanguageTool'
|
||||||
Plug 'neoclide/coc.nvim', {'branch': 'release'}
|
Plug 'neoclide/coc.nvim', {'branch': 'release'}
|
||||||
Plug 'tikhomirov/vim-glsl'
|
Plug 'tikhomirov/vim-glsl'
|
||||||
|
@ -235,10 +234,6 @@ smap <expr><TAB> neosnippet#expandable_or_jumpable() ?
|
||||||
\ "\<Plug>(neosnippet_expand_or_jump)"
|
\ "\<Plug>(neosnippet_expand_or_jump)"
|
||||||
\: "\<TAB>"
|
\: "\<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>
|
inoremap <silent><expr> <TAB>
|
||||||
\ pumvisible() ? coc#_select_confirm() :
|
\ pumvisible() ? coc#_select_confirm() :
|
||||||
\ coc#expandableOrJumpable() ? "\<C-r>=coc#rpc#request('doKeymap', ['snippets-expand-jump',''])\<CR>" :
|
\ 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>
|
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
|
set completeopt=menu,noinsert
|
||||||
|
|
||||||
|
|
5
.zshrc
5
.zshrc
|
@ -70,7 +70,7 @@ alias nodeindex="node lib/index.js"
|
||||||
plugins=(
|
plugins=(
|
||||||
git
|
git
|
||||||
archlinux
|
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
|
ZSH_COMPDUMP=/tmp/zcompdump-$USER
|
||||||
|
@ -179,6 +179,9 @@ alias mkpy="python -m venv"
|
||||||
|
|
||||||
|
|
||||||
bindkey -v
|
bindkey -v
|
||||||
|
bindkey "^?" backward-delete-char
|
||||||
|
zle-line-init() { zle -K vicmd; }
|
||||||
|
zle -N zle-line-init
|
||||||
|
|
||||||
HYPHEN_INSENSITIVE="true"
|
HYPHEN_INSENSITIVE="true"
|
||||||
COMPLETION_WAITING_DOTS="true"
|
COMPLETION_WAITING_DOTS="true"
|
||||||
|
|
Loading…
Reference in New Issue