.vimrc
-
mv .vimrc .vimrc.bak
Also Make sure you run the command in the directory where your already existing .vimrc is located. The command will rename it with a .bak file-extension which stands for backup. Now this backup file can be stored/located wherever wanted.
This config can also be used for NeoVim if wanted. Just replace the directory ~/.vim/plugged
with .local/share/nvim/plugged
in the first line of the section of the config shown below, before performing the 2nd step of Instructions -
call plug#begin('~/.vim/plugged')
" Plug 'vim-airline/vim-airline'
Plug 'vim-airline/vim-airline'
" Plug coc.nvim for C/C++ lsp
Plug 'neoclide/coc.nvim'
Plug 'jiangmiao/auto-pairs'
Plug 'vim-airline/vim-airline-themes'
Plug 'gruvbox-community/gruvbox'
Plug 'catppuccin/vim', { 'as': 'catppuccin' }
Plug 'sonph/onehalf', { 'rtp': 'vim' }
Plug 'preservim/nerdtree'
Plug 'christoomey/vim-tmux-navigator'
Plug 'ryanoasis/vim-devicons'
" Plug 'Exafunction/codeium.vim', { 'branch': 'main' }
Plug 'prasada7/toggleterm.vim'
Plug 'junegunn/fzf', { 'do': { -> fzf#install() } }
Plug 'junegunn/fzf.vim'
call plug#end()
config.vim
file in this repo and paste it in your own blank .vimrc
file. Save it.:PlugInstall
inside vim (According to the config, I’m using Vim-Plug plugin manager. If you use any other plugin manager like vundle or packer, you are free to change the config file wherever needed and then run the plugin manager’s install command). You may need to run the command after restarting vim. You may also need to run :PLugClean
to remove all the previously installed plugins.:PlugUpdate
command inside vim to update the already installed plugins.npm ci
in the directory ~/.vim/plugged/coc.nvim
(if you are using vim) or ~/.local/share/nvim/plugged/coc.nvim
(if you are using neovim) to activate it.:CocInstall coc-clangd
inside vim to install the required lsp for C and C++, :CocInstall coc-pyright
to install the required lsp for python. :CocInstall coc-tsserver coc-json coc-eslint
is recommended javascript/typescript + json
lsp support. You can find the required lsp for the programming language that you use on this page of coc.nvim repo.Plug 'Exafunction/codeium.vim', { 'branch': 'main' }
in the config file and run :PlugInstall
to install the Codeium AI plugin in vim. After installation refer to the Official Codeium AI installation and usage guide .,
is the leader key in this configuration.,+n
to open and close the file explorer.Enter
key to manually trigger completion. You can also click Tab
to trigger completion by going down through the list of code suggesions & click Shift+Tab
to trigger completion by going up through the list of code suggessions.Ctrl+\
to toggle terminal. Now you can navigate to the file buffer from terminal and vice versa using the native window navigation keymaps of vim or your beloved mouse, whatever you want. Use Ctrl+d
to kill the terminal.:Colors
to change colorscheme<space>ff
to quickly navigate to a file inside the CWD, with fuzzy search(fzf) (Optional: for file preview- install bat. for debian/ubuntu - sudo apt install bat
).<space>b
to quickly navigate to an existing buffer inside the CWD.Any kind of suggesion, contributions(bug fixes, enhancements) are cordially welcomed.