The following will install this config if you have an existing config it will move it to ~/.config/nvim.old
This script only supports Ubuntu
bash <(curl -s https://raw.githubusercontent.com/DevHerles/nvim/master/utils/install.sh)
Download SDK binaries in .tar.gz (tarball) by heading over to their website
Create a directory to install SDK in with:
sudo mkdir /usr/local/java
Move the SDK binaries into the directory:
sudo mv jdk-8u261-linux-x64.tar.gz /usr/local/java
Go into the install directory:
cd /usr/local/java
Unpack the tarball:
sudo tar -xzfv jdk-8u261-linux-x64.tar.gz
To save space, delete the tarball by running:
sudo rm jdk-8u261-linux-x64.tar.gz
Let the system know where SDK is installed:
sudo update-alternatives --install "/usr/bin/java" "java" "/usr/local/java/jdk1.8.0_26/bin/java" 1
You must update the previous path in coc-settings.json like:
// java
"xml.java.home": "/usr/local/java/jdk1.8.0_261",
Don't forgot... :CocRestart
After that's done, check the installation by running:
java -version
It should output the following:
java version "1.8.0_261"
Java(TM) SE Runtime Environment (build 1.8.0_261-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.261-b12, mixed mode)
:100,200w filename
Of course 100,200 is the range of lines you want to write.
:'a,'b w filename then hit return.
vim -c "100,200w new_file.txt" -c wq original_file.txt
For example: :+0,+99w filename write the next 100 lines to filename.
:.w >> filename and hitting return.
$ vim +linenumber file.py
$ vim +3 __init__.py
$ vim +/searchTermHere file.py
$ vim +/main initlib.c
### note shell escape done with \ ###
$ vim +/addUser\( initlib.c
$ vim +/addUser\(arg1\) initlib.c
$ git config --global core.autocrlf true
Of course, this is said to convert crlf to lf, while you want to convert cr to lf. I hope this still works โฆ
And then convert your files:
$ git rm --cached -r .
If you have already added the files to be tracked, you need to remove them from tracking:
git rm .env --cached
git commit -m "Stopped tracking .env File"
You should get lots of messages like: "warning: CRLF will be replaced by LF in ."
$ git diff --cached --name-only -z | xargs -0 git add
$ git commit -m "Fix CRLF"
reporting: "on"
startuppopupversion: 1
gui:
theme:
lightTheme: false # For terminals with a light background
activeBorderColor:
- green
- bold
inactiveBorderColor:
- white
optionsTextColor:
- cyan
selectedLineBgColor:
- black
selectedRangeBgColor:
- blue