This Neovim configuration differs from the previous one, as it is optimized for a text terminal with limited colors (I couldn't find a suitable color scheme). The Python code completion plugin is compatible with Neovim version 0.7 (currently supported by Debian), and no plugins are used for split-screen terminal functionality.
" https://www.youtube.com/watch?v=wzrZPcwh-bE
set encoding=utf-8
set number
syntax enable
set noswapfile
set backspace=indent,eol,start
set tabstop=4
set softtabstop=4
set shiftwidth=4
set expandtab
set autoindent
set fileformat=unix
set colorcolumn=80
highlight ColorColumn ctermbg=9
call plug#begin()
Plug 'jiangmiao/auto-pairs'
Plug 'preservim/nerdtree'
Plug 'vim-airline/vim-airline'
Plug 'vim-airline/vim-airline-themes'
" https://www.youtube.com/watch?v=JWReY93Vl6g
Plug 'preservim/tagbar'
" https://jdhao.github.io/2018/12/24/centos_nvim_install_use_guide_en/#auto-completion-plugin-deoplete
Plug 'shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' }
Plug 'zchee/deoplete-jedi'
call plug#end()
let g:airline_powerline_fonts=1
if !exists('g:airline_symbols')
let g:airline_symbols = {}
endif
" NERDTree
let NERDTreeQuitOnOpen=1
let g:NERDTreeMinimalUI=1
nmap <F2> :NERDTreeToggle<CR>
" Tagbar
nmap <F3> :TagbarToggle<CR>
let g:deoplete#enable_at_startup = 1
" https://www.reddit.com/r/vim/comments/8n5bzs/comment/dzt3fix/
" Terminal Function
let g:term_buf = 0
let g:term_win = 0
function! TermToggle(height)
if win_gotoid(g:term_win)
hide
else
botright new
exec "resize " . a:height
try
exec "buffer " . g:term_buf
catch
call termopen($SHELL, {"detach": 0})
let g:term_buf = bufnr("")
set nonumber
set norelativenumber
set signcolumn=no
endtry
startinsert!
let g:term_win = win_getid()
endif
endfunction
" Toggle terminal on/off (neovim)
nnoremap <F4> :call TermToggle(11)<CR>
inoremap <F4> <Esc>:call TermToggle(11)<CR>
tnoremap <F4> <C-\><C-n>:call TermToggle(11)<CR>
" Terminal go back to normal mode
tnoremap <Esc> <C-\><C-n>
tnoremap :q! <C-\><C-n>:q!<CR>
set number
syntax enable
set noswapfile
set backspace=indent,eol,start
set tabstop=4
set softtabstop=4
set shiftwidth=4
set expandtab
set autoindent
set fileformat=unix
set colorcolumn=80
highlight ColorColumn ctermbg=9
call plug#begin()
Plug 'jiangmiao/auto-pairs'
Plug 'preservim/nerdtree'
Plug 'vim-airline/vim-airline'
Plug 'vim-airline/vim-airline-themes'
" https://www.youtube.com/watch?v=JWReY93Vl6g
Plug 'preservim/tagbar'
" https://jdhao.github.io/2018/12/24/centos_nvim_install_use_guide_en/#auto-completion-plugin-deoplete
Plug 'shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' }
Plug 'zchee/deoplete-jedi'
call plug#end()
let g:airline_powerline_fonts=1
if !exists('g:airline_symbols')
let g:airline_symbols = {}
endif
" NERDTree
let NERDTreeQuitOnOpen=1
let g:NERDTreeMinimalUI=1
nmap <F2> :NERDTreeToggle<CR>
" Tagbar
nmap <F3> :TagbarToggle<CR>
let g:deoplete#enable_at_startup = 1
" https://www.reddit.com/r/vim/comments/8n5bzs/comment/dzt3fix/
" Terminal Function
let g:term_buf = 0
let g:term_win = 0
function! TermToggle(height)
if win_gotoid(g:term_win)
hide
else
botright new
exec "resize " . a:height
try
exec "buffer " . g:term_buf
catch
call termopen($SHELL, {"detach": 0})
let g:term_buf = bufnr("")
set nonumber
set norelativenumber
set signcolumn=no
endtry
startinsert!
let g:term_win = win_getid()
endif
endfunction
" Toggle terminal on/off (neovim)
nnoremap <F4> :call TermToggle(11)<CR>
inoremap <F4> <Esc>:call TermToggle(11)<CR>
tnoremap <F4> <C-\><C-n>:call TermToggle(11)<CR>
" Terminal go back to normal mode
tnoremap <Esc> <C-\><C-n>
tnoremap :q! <C-\><C-n>:q!<CR>
No comments:
Post a Comment