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 <A-h> 5<C-w><
|
||||
noremap <A-l> 5<C-w>>
|
||||
noremap H :nohl<CR>
|
||||
noremap <Space> za
|
||||
noremap N /@@@<CR>
|
||||
|
||||
" 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
|
||||
autocmd FileType groff noremap <buffer> <silent> <F9> :!zathura --fork %:r.pdf<CR> & disown
|
||||
|
@ -107,6 +108,7 @@ endif
|
|||
|
||||
call plug#begin()
|
||||
Plug 'vim-airline/vim-airline-themes'
|
||||
Plug 'vim-scripts/AutoComplPop'
|
||||
Plug 'vim-airline/vim-airline'
|
||||
Plug 'jiangmiao/auto-pairs'
|
||||
Plug 'Yggdroot/indentLine'
|
||||
|
@ -124,6 +126,11 @@ let g:gruvbox_italic=1
|
|||
set background=dark
|
||||
colorscheme gruvbox
|
||||
|
||||
" AutoComplPop
|
||||
inoremap <expr> <Tab> pumvisible() ? "<C-y>" : "<Tab>"
|
||||
set completeopt=menuone,longest
|
||||
set complete+=kspell
|
||||
|
||||
" Airline
|
||||
let g:airline#extensions#tabline#buffer_min_count = 2
|
||||
let g:airline#extensions#tabline#enabled = 1
|
||||
|
|
Loading…
Reference in a new issue