mirror of
https://github.com/Hizenberg469/Vim-tutorials.git
synced 2026-04-19 22:02:24 +03:00
updating env_setup.sh
This commit is contained in:
9
.vimrc
9
.vimrc
@@ -149,6 +149,15 @@ call plug#begin()
|
|||||||
Plug 'mbbill/undotree' " Utility to view undo history
|
Plug 'mbbill/undotree' " Utility to view undo history
|
||||||
Plug 'morhetz/gruvbox' " retro-inspired color scheme
|
Plug 'morhetz/gruvbox' " retro-inspired color scheme
|
||||||
Plug 'luochen1990/rainbow' " For rainbow coloring of Parentheses
|
Plug 'luochen1990/rainbow' " For rainbow coloring of Parentheses
|
||||||
|
Plug 'preservim/nerdtree' " A filesystem explorer
|
||||||
|
Plug 'puremourning/vimspector' " A multi-language debugging plugin
|
||||||
|
Plug 'tpope/vim-dispatch' " A plugin for async executing long-running commands
|
||||||
|
Plug 'tpope/vim-fugitive' " A popular Git Wrapper.
|
||||||
|
Plug 'tpope/vim-speeddating' " A plugin that allow you to quickly adjust dates.
|
||||||
|
Plug 'vim-airline/vim-airline' " A lightweight and customizable status line.
|
||||||
|
Plug 'vim-scripts/c.vim' " A packages of tools for C and C++.
|
||||||
|
Plug 'vimwiki/vimwiki' " A personal wiki plugin for Vim.
|
||||||
|
Plug 'voldikss/vim-floaterm' " A plugin for floating terminal inside vim.
|
||||||
|
|
||||||
call plug#end()
|
call plug#end()
|
||||||
|
|
||||||
|
|||||||
38
env_setup.sh
38
env_setup.sh
@@ -1,11 +1,16 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
: << cmt
|
||||||
|
|
||||||
|
This script is used to setup the environment
|
||||||
|
for development in C and C++.
|
||||||
|
|
||||||
|
cmt
|
||||||
|
|
||||||
|
|
||||||
# To setup the environment
|
# To setup the environment
|
||||||
|
|
||||||
function env_setup{
|
function settingUpVimrc{
|
||||||
|
|
||||||
# Setting up the .vimrc
|
# Setting up the .vimrc
|
||||||
|
|
||||||
@@ -21,3 +26,34 @@ function env_setup{
|
|||||||
|
|
||||||
source $HOME/.vimrc
|
source $HOME/.vimrc
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
# To setup latest vim
|
||||||
|
|
||||||
|
function settingUpLatestVim{
|
||||||
|
|
||||||
|
# Installing the required packages.
|
||||||
|
|
||||||
|
user = ""
|
||||||
|
|
||||||
|
if [ '$(whoami)' = 'root' ]; then
|
||||||
|
|
||||||
|
user = ""
|
||||||
|
else
|
||||||
|
|
||||||
|
user = "sudo"
|
||||||
|
|
||||||
|
$user apt install git
|
||||||
|
$user apt install make
|
||||||
|
$user apt install clang
|
||||||
|
$user apt install libtool-bin
|
||||||
|
$user apt install libxt-dev
|
||||||
|
$user apt install python3-dev
|
||||||
|
$user apt install libpython3-dev
|
||||||
|
|
||||||
|
# Clone the vim official repo.
|
||||||
|
git clone https://github.com/vim/vim.git
|
||||||
|
|
||||||
|
# Configure for compilation.
|
||||||
|
./vim/src/configure --with-features=huge --enable-python3interp=yes --enable-multibyte --enable-cscope --prefix=/usr/local
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user