mirror of
https://github.com/Hizenberg469/Vim-tutorials.git
synced 2026-04-20 06:12:24 +03:00
Some changes in env_setup.sh and Plugin configuration in .vimrc
This commit is contained in:
30
env_setup.sh
30
env_setup.sh
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user