Upload New File
This commit is contained in:
parent
9a3214e232
commit
5aeb5097ab
1 changed files with 36 additions and 0 deletions
36
init.vim
Normal file
36
init.vim
Normal file
|
@ -0,0 +1,36 @@
|
||||||
|
"Plug"
|
||||||
|
source $HOME/.config/nvim/vim-plug/plugins.vim
|
||||||
|
"Sets"
|
||||||
|
set encoding=utf-8
|
||||||
|
set guicursor=i:block
|
||||||
|
set backupdir=~/.private/vimtmp/
|
||||||
|
set directory=~/.private/vimtmp/
|
||||||
|
set nobackup
|
||||||
|
set nowritebackup
|
||||||
|
set number
|
||||||
|
set cmdheight=2
|
||||||
|
set updatetime=200
|
||||||
|
set shortmess+=c
|
||||||
|
set signcolumn=yes
|
||||||
|
set hidden
|
||||||
|
set noerrorbells
|
||||||
|
set smartcase
|
||||||
|
set nowrap
|
||||||
|
set tabstop=2
|
||||||
|
set ls=2
|
||||||
|
set ai
|
||||||
|
"Mappings"
|
||||||
|
nmap <F3> :NERDTreeToggle<CR>
|
||||||
|
nmap <F2> :NERDTree-CD
|
||||||
|
inoremap <silent><expr> <TAB>
|
||||||
|
\ pumvisible() ? "\<C-n>" :
|
||||||
|
\ <SID>check_back_space() ? "\<TAB>" :
|
||||||
|
\ coc#refresh()
|
||||||
|
inoremap <expr><S-TAB> pumvisible() ? "\<C-p>" : "\<C-h>"
|
||||||
|
inoremap <silent><expr> <c-space> coc#refresh()
|
||||||
|
inoremap <silet><expr> <cr> pumvisible() ? coc#_select_confirm()
|
||||||
|
\: "\<C-g>u\<CR>\<c-r>=coc#on_enter()\<CR>"
|
||||||
|
function! s:check_back_space() abort
|
||||||
|
let col = col('.') - 1
|
||||||
|
return !col || getline('.')[col-1] =~# '\s'
|
||||||
|
endfunction
|
Loading…
Reference in a new issue