autocomplete plugin
This commit is contained in:
parent
1cb777c035
commit
37882a7e99
1 changed files with 8 additions and 1 deletions
|
@ -41,11 +41,12 @@ noremap <C-c> :bd<CR>
|
||||||
noremap <C-s> :w<CR>
|
noremap <C-s> :w<CR>
|
||||||
noremap <A-h> 5<C-w><
|
noremap <A-h> 5<C-w><
|
||||||
noremap <A-l> 5<C-w>>
|
noremap <A-l> 5<C-w>>
|
||||||
|
noremap H :nohl<CR>
|
||||||
noremap <Space> za
|
noremap <Space> za
|
||||||
noremap N /@@@<CR>
|
noremap N /@@@<CR>
|
||||||
|
|
||||||
" notes
|
" notes
|
||||||
autocmd BufWritePost note-*.md execute '! git -C ~/Documents/notes/ add ~/Documents/notes/% ; git commit -m "Auto-commit: saved %"'
|
"autocmd BufWritePost note-*.md execute '! git -C ~/Documents/notes/ add ~/Documents/notes/% ; git commit -m "Auto-commit: saved %"'
|
||||||
|
|
||||||
" groff
|
" groff
|
||||||
autocmd FileType groff noremap <buffer> <silent> <F9> :!zathura --fork %:r.pdf<CR> & disown
|
autocmd FileType groff noremap <buffer> <silent> <F9> :!zathura --fork %:r.pdf<CR> & disown
|
||||||
|
@ -107,6 +108,7 @@ endif
|
||||||
|
|
||||||
call plug#begin()
|
call plug#begin()
|
||||||
Plug 'vim-airline/vim-airline-themes'
|
Plug 'vim-airline/vim-airline-themes'
|
||||||
|
Plug 'vim-scripts/AutoComplPop'
|
||||||
Plug 'vim-airline/vim-airline'
|
Plug 'vim-airline/vim-airline'
|
||||||
Plug 'jiangmiao/auto-pairs'
|
Plug 'jiangmiao/auto-pairs'
|
||||||
Plug 'Yggdroot/indentLine'
|
Plug 'Yggdroot/indentLine'
|
||||||
|
@ -124,6 +126,11 @@ let g:gruvbox_italic=1
|
||||||
set background=dark
|
set background=dark
|
||||||
colorscheme gruvbox
|
colorscheme gruvbox
|
||||||
|
|
||||||
|
" AutoComplPop
|
||||||
|
inoremap <expr> <Tab> pumvisible() ? "<C-y>" : "<Tab>"
|
||||||
|
set completeopt=menuone,longest
|
||||||
|
set complete+=kspell
|
||||||
|
|
||||||
" Airline
|
" Airline
|
||||||
let g:airline#extensions#tabline#buffer_min_count = 2
|
let g:airline#extensions#tabline#buffer_min_count = 2
|
||||||
let g:airline#extensions#tabline#enabled = 1
|
let g:airline#extensions#tabline#enabled = 1
|
||||||
|
|
Loading…
Reference in a new issue