Skip to content

Instantly share code, notes, and snippets.

@Angel-Dijoux
Created November 6, 2022 22:05
Show Gist options
  • Save Angel-Dijoux/6ebdef38e91fceca0ce3a27a125dfde4 to your computer and use it in GitHub Desktop.
Save Angel-Dijoux/6ebdef38e91fceca0ce3a27a125dfde4 to your computer and use it in GitHub Desktop.
:set number
:set relativenumber
:set autoindent
:set tabstop=4
:set shiftwidth=4
:set smarttab
:set softtabstop=4
:set mouse=a
:set encoding=UTF-8
call plug#begin()
Plug 'https://github.com/preservim/nerdtree' " NerdTree
Plug 'https://github.com/preservim/tagbar' " Tagbar for code navigation
Plug 'https://github.com/rafi/awesome-vim-colorschemes' " Retro Scheme
Plug 'https://github.com/ryanoasis/vim-devicons'
Plug 'https://github.com/vim-airline/vim-airline' " Status bar
Plug 'https://github.com/tc50cal/vim-terminal' " Vim Terminal
Plug 'https://github.com/ap/vim-css-color' " CSS Color Preview
Plug 'https://github.com/lifepillar/pgsql.vim' " PSQL Pluging needs :SQLSetType pgsql.vim
Plug 'https://github.com/tpope/vim-commentary' " For Commenting gcc & gc
Plug 'http://github.com/tpope/vim-surround' " Surrounding ysw)
Plug 'https://github.com/neoclide/coc.nvim' " Auto Completion
Plug 'https://github.com/folke/noice.nvim'
Plug 'https://github.com/MunifTanjim/nui.nvim'
call plug#end()
lua require("noice").setup()
:colorscheme rdark-terminal2
:set completeopt-=preview
nnoremap <C-f> :NERDTreeFocus<CR>
nnoremap <C-n> :NERDTree<CR>
nnoremap <C-n> :NERDTreeToggle<CR>
nnoremap <C-l> :call CocActionAsync('jumpDefinition')<CR>
nmap <F7> :TerminalSplit zsh<CR>
nmap <F8> :TagbarToggle<CR>
autocmd FileType python map <buffer> <F9> :w<CR>:exec '!python3' shellescape(@%, 1)<CR>
autocmd FileType python imap <buffer> <F9> <esc>:w<CR>:exec '!python3' shellescape(@%, 1)<CR>
autocmd FileType javascript map <buffer> <F9> :w<CR>:exec '!node' shellescape(@%, 1)<CR>
autocmd FileType javascript imap <buffer> <F9> <esc>:w<CR>:exec '!node' shellescape(@%, 1)<CR>
let g:airline_poweline_fonts = 1
inoremap <expr> <Tab> pumvisible() ? coc#_select_confirm() : "<Tab>"
@Angel-Dijoux
Copy link
Author

Get neovim 8.0

wget https://github.com/neovim/neovim/releases/download/v0.8.0/nvim-linux64.deb 

Install

sudo apt install ./nvim-linux64.deb 

Vim plugin

sh -c 'curl -fLo "${XDG_DATA_HOME:-$HOME/.local/share}"/nvim/site/autoload/plug.vim --create-dirs \
       https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment