Some changes in env_setup.sh and Plugin configuration in .vimrc

This commit is contained in:
2025-08-27 20:05:39 +03:00
parent d3d1f264c4
commit 7edb0f0e99
2 changed files with 110 additions and 11 deletions

View File

@@ -8,6 +8,15 @@ for development in C and C++.
cmt
user = ""
if [ '$(whoami)' = 'root' ]; then
user = ""
else
user = "sudo"
fi
# To setup the environment
function settingUpVimrc{
@@ -34,14 +43,6 @@ function settingUpLatestVim{
# Installing the required packages.
user = ""
if [ '$(whoami)' = 'root' ]; then
user = ""
else
user = "sudo"
$user apt install git
$user apt install make
@@ -55,5 +56,16 @@ function settingUpLatestVim{
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
DIR = /usr/local # Directory to setup the latest vim build.
if [ $# -gt 0 ]; then
DIR = $1
fi
./vim/src/configure --with-features=huge --enable-python3interp=yes --enable-multibyte --enable-cscope --prefix=$DIR
}
# For ctags
# $user apt install universal-ctags -y