I've installed SublimeText 3 using following commands:
$ wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add -
$ echo "deb https://download.sublimetext.com/ apt/stable/" | sudo tee /etc/apt/sources.list.d/sublime-text.list
$ sudo apt-get install sublime-text
$ dpkg -l | grep sublime
ii sublime-text 3176 amd64 Sublime Text is a sophisticated text editor for code, markup and prose
My goal was to install CMake package for syntax highlighting but I've experienced weird behavior. Following this tutorial I've installed Package Control package via pasting appropriate commands to console. But after I hit ctrl+shift+p the only available options I see in command palette is the names of currently opened files. There is no Package Control nor other commands. I've found that Package Control: Install is available via Preferences > Package Control menu, so I've installed CMake package this way. But Why I do not have any commands under command palette?
My OS: Ubuntu 18.04
Almost immediately after posting to SO I've found solution. The problem was with multiple keyboard layouts. When I typed ctrl+shift my keyboard layout was switched. I do not know why this affected ST command palette but it does. I've simply disabled ctrl+shift using gnome-tweaks as described here
Related
I installed Vim on my MacBook today (using brew install vim), but I am having a problem: vim --version tells me that there is no Python 3, which I need. I already reinstalled the newest version of Python from their website, then did brew delete vim and brew cleanup and reinstalled Vim, but I'm still having the same problem. Online, I saw the option to use the flag --with-python3 when installing, but when I try that, I get told that this flag doesn't exist. Now I don't know what to do. Do I need to install Python via Homebrew? I also found some people online saying that there are versions of Vim compiled without Python, and that you can compile Vim yourself. Do I need to do that? How?
I should add: I'm very new to this, so if you post your answers or maybe need some more information from me, please explain in detail so I can understand.
I'm a new too.
First, use brew to remove vim you should input brew uninstall vim.Then try to reinstall vim.
For instance, if you wanted to recompile Vim 8 with Python 3 support on Linux, you can try do the following:
$ git clone https://github.com/vim/vim.git
$ cd vim/src
$ ./configure --with-features=huge --enable-python3interp
$ make
$ sudo make install
So,
I include this answer to "Way 0" and "Way 1".
_______________________________________________________________---Way 0 Begin---(:
Way 0:
we should reinstall python3 and VIM,
1.run the below on terminal
brew reinstall python3
the upstairs shows that we reinstall python3 to make sure that needed by VIM.
2.continue run on terminal
brew uninstall vim
the upstairs shows that uninstall vim only if you previously installed it
3.run on terminal
brew install vim
the upstairs shows that reinstall vim via Homebrew
4.run on terminal
4.1 directly use $SHELL command
alias vim=/usr/local/bin/vim
4.2 or bash 's profile(if you use bash as SHELL)
echo 'export PATH="/usr/local/opt/vim/bin:$PATH"' >> ~/.bash_profile
source ~/.bash_profile
4.3 OR zsh configuration file(if you use zsh as SHELL)
edit your zsh configuration file ~/.zshrc via
vim ~/.zshrc
and add the below to TOP line(just use i to enter editing status,
then use ":wq" to quit editing status and save file):
export VIM_HOME=/usr/local/Cellar/vim/8.2.2100/
export PATH=$PATH:$VIM_HOME/bin
and active that config
source ~/.zshrc
(Both 4.1 or 4.2 or 4.3 are the same function.)
the upstairs 4.1/4.2/4.3 shows that we let shell command vim using HomebrewVIM not the defaultVIM.
We know the default VIM functional file is located at /usr/bin/vim,
while homebrew VIM functional file is located at /usr/local/bin/vim;
And default VIM support Python2 with not supporting Python3,
but homebrew VIM support Python3(That's also we needed!).
Let's look at Homebrew VIM:
Homebrew will install VIM vim at /usr/local/Cellar/vim,
create soft link vim under /usr/local/opt,
and Homebrew VIM 's functional file vim is located at /usr/local/bin/vim, also linked to /usr/local/Cellar/vim.
5.exit terminal and restart terminal or even restart mac, input
the below on terminal
vim --version | grep "python3"
checkout whether the symbol bdfore "python3" is + or Not?
"+" means VIM support python3, but "-" Not.
____________________________________________________________---Way 0 END---:)
____________________________________________________---Way 1 Start---(::
Way 1:
First, you need to use this to checkout whether VIM support Python3 or not?
vim --version | grep python
you may see the terminal output liking:
+conceal +linebreak -python3 +visual
as the upstairs shows: that Mac default installed VIM DO NOT SUPPORT Python3.
And that default installed VIM of Mac is not been installed via "brew".
Now, we could not use liking "brew remove" to delate that default installed VIM of Mac,
and it's also why your action
"brew delete vim and brew cleanup and reinstalled Vim"
DO NOT FUNCTION!
Second,
we need to know where that fu-king default installed VIM with not supporting python3,
which vim
output:
/usr/bin/vim
mostly shows like the upstairs(depends default macOS).
Even we use "--with-python3 " to install VIM with supporting
Python3at a long time, but Now Homebrew ONLY recognize "python -V"'s version.
SO we NEED to manually let default python to be python3.
Open your terminal and input:
alias python="python3"
then checkout python that that version whether is python3 or not:
python -V
then, we found that "python -V" shows "Python 3.9.12".
Third,
That's time to use Homebrew to install VIM.
brew install vim
After installing HomebrewVIM, we need to make sure where is HomebrewVIM,
differ from that default installed VIM of Mac:
which vim
output:
/usr/local/bin/vim
Please restart Your Mac, restart Your Terminal and reenter your terminal!!!
Please restart Your Mac, restart Your Terminal and reenter your terminal!!!
Please restart Your Mac, restart Your Terminal and reenter your terminal!!!
then, we need to checkout whether that HomebrewVIM supports Python3 or Not:
vim --version | grep python
output:
+conceal +linebreak +python3 +visual
Successful!
__________________________________________________---Way 1 Terminal---::)
END!
I'm trying to install Atom to write Python scripts on Debian Linux 9.0. After following the installation procedure, which displayed no errors, when I start Atom all I see is a black window with the title Welcome - /home/Python - Atom, but nothing else happens. If I click around it takes me to their web site https://atom.io.
So I deleted and re-installed again, this time using the debian package atom-amd64.deb. After installing it (dpkg -i atom-amd64.deb) not a single error is displayed, but when I run it I get the same problem, a black screen and nothing else. I also tried to install atom in Lubuntu 17.04 zesty but I got same problem.
Any help to get this editor running would be appreciated.
Try this, I hope it will help you as it has helped me
wget https://atom.io/download/deb -O atom.deb
sudo dpkg -i atom.deb
sudo apt-get -f install
I have just downloaded VSCode-linux-x64 from the Microsoft website. It's a zip file called VSCode-linux-x64.zip. How can I install it on my Linux system?
From a few pages deeper into the setup docs in the link you offered...
Linux
Download Visual Studio Code for Linux
Make a new folder and extract VSCode-linux-x64.zip inside that folder
Double click on Code to run Visual Studio Code
Tip: If you want to run VSCode from the terminal, create the following
link substituting /path/to/vscode/Code with the absolute path to the
Code executable
sudo ln -s /path/to/vscode/Code /usr/local/bin/code in any folder to start editing files in that
folder.
Now, you can simply type code . in any folder to start editing files
in that folder.
I found the answer to my question and posting the answer so it can help others.
To download and install Visual Studio Code on Ubuntu . follow the steps below
Download Visual Studio Code for Linux
Extract the zip file VSCode-linux-x64.zip
Go inside the folder VSCode-linux-x64
double click and Run code executable to open Visual Studio Code .
You can right click on Visual Studio Code on toolbar (or launcher)
and select Lock to Launcher. this way you can launch the editor by
clicking it on launcher.
If you are using terminal follow the terminal commands
mkdir your_folder_name && cd your_folder_name unzip
../Downloads/VSCode-linux-x64.zip
./Code
This video will help you to download and install and use Visual Studio Code on Ubuntu if you still have some doubts
After 18.04 version, the following one-line terminal code works well.
sudo snap install code --classic
Installing with apt-get:
Step 1 – Enable Package Repository
Run the following command to enable Visual studio code repository to your system:
echo "deb [arch=amd64] http://packages.microsoft.com/repos/vscode stable main" | sudo \ tee /etc/apt/sources.list.d/vs-code.list
Step 2 – Install Visual Studio Code Editor
Now, Import the package signing gpg key on your system using the following command:
curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg
sudo mv microsoft.gpg /etc/apt/trusted.gpg.d/microsoft.gpg
Install Visual Studio Code on your Debian based system (like Ubuntu):
sudo apt-get update
sudo apt-get install code
Step 3 – Launch Visual Studio Code and enable its extensions:
Now You can launch the Visual Studio Code editor on your system using the graphical menu.
There are a large number of extensions available for Visual Studio Code like PHP, Python, JavaScript etc. Install the required extensions to enhance your working experience with Visual Studio Code.
Source: https://tecadmin.net/install-visual-studio-code-editor-ubuntu/
Simplest way to install Visual Studio Code in Linux
I hope it useful.
Installing Visual Studio Code in Kali Linux - 4 simple steps
Update your system and install the below package.
sudo apt update
sudo apt install curl gpg software-properties-common apt-transport-https
Importing Microsoft GPG key to Kali Linux
curl -sSL https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add -
Adding APT repository for VS Code to Kali Linux
echo "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main" | sudo tee /etc/apt/sources.list.d/vscode.list
Installing VS Code
sudo apt update
sudo apt install code
For reference:
https://youtu.be/ycIjQf0rOJI
I want vim-gtk to use vim 7.4 which I installed from source, but gvim is opening with 7.3 itself.
On A fresh linuxmint, after updating system, I removed already existing vim, than installed vim 7.4 from source and it is perfect installation, everything went fine, and than installed ,
sudo apt-get install vim-gtk
than when I enter gvim, gvim is 7.3 not already existing 7.4!!! and if I enter vim from terminal than its vim-7.4.
I will be thankful if anyone helped me to run gvim on vim 7.4
Two things…
First, $ sudo apt-get install vim-gtk only uses your repositories (which are certainly frozen at 7.3.something), it doesn't care at all about what you installed manually.
Second, GVim is not a separate frontend that you add to an existing Vim: it is Vim, built with GUI support and either launched as gvim or as vim -g.
You could:
uninstall vim-gtk and re-compile Vim manually following these instructions (note the --enable-gui=gtk2)
or find an up-to-date ppa on LaunchPad.net, add it to your software sources and redo $ sudo apt-get install vim-gtk.
just install vim-gnome and vim-gui and reboot.It worked for me.
Maybe this post will help you install gvim 7.4. There are few steps:
Install the needed dependencies:
$ sudo apt-get install ncurses-dev build-essential mercurial
Clone the sources of Vim 7.4:
$ hg clone https://vim.googlecode.com/hg/ vim
Build Vim from sources:
$ cd vim/src
$ make distclean
$ ./configure --with-features=huge --enable-pythoninterp --enable-rubyinterp
$ make
$ sudo make install
Adjust the PATH:
$ export PATH=/usr/local/bin:$PATH
I used this guide and get gvim 7.4.54.
I'm trying to recompile VIM with clipboard support and I'm attempting to follow this guide.
The trouble is that when I do:
sudo apt-get source vim
I get E: Unable to find a source package for vim, although the package name was auto-completed and exists if you type sudo apt-get source <tab><tab>
By the way, before I started, I did sudo apt-get remove vim.
Any ideas how to proceed?
I'm using Ubuntu 12.04 LTS.
Just do
$ sudo apt-get install vim-gnome
It will install both gvim and vim with clipboard support.