Dot files for Bash, Tmux, Zsh, Vim, Elinks, Mutt, Gnupg, Python, Java, Rtorrent.
A C/C++/Java/Python/HTML IDE for Vim is built in.
With Machine Learning Settings for TensorFlow 1.4+ and Cuda 8.0+
--- Created by Songhua Liu
Use the script cp_files.sh
to backup previous files and replace them within files in this project. The cp_files.sh
will copy those dotfiles to the system user's home folder.
These settings are shipped with configuration files for some common tools, including Elinks, Vim, Mutt, Python(2/3), Zsh, Rtorrent, Golang-go, Ardupilot and etc.
Usage:
Default Vim colorscheme is molokai
The bash scheme looks like this by default.
This is very neat for new PC initialization. Mostly for Debian/Ubuntu or its derived destros. This is friendly compaitble with Ubuntu12.04+/Linuxmint13+/Debian6+/Ubuntu14.04/Ubuntu16.04 and more their derived destros.
Notice that: For some vim users to use tagbar/ctags, they would need to install the package "ctags". For example on debian/ubuntu sudo apt-get install ctags
, or on centOS/Fedora/RHEL sudo yum install ctags
, or on archlinux pacman -S ctags
The init_*.sh
and the cp_files.sh
are very neat for new users both on ubuntu12.04 and ubuntu14.04.
init_ubuntu_12.04.sh
is compatible with Debian7/Ubuntu12.04 while init_ubuntu_14.04.sh
is for Ubuntu14.04. The default Vim provided on Ubuntu 16.04 is not pre-compiled with Python
support. To use these Vim settings, you should install Vim with Python support. See here for info about compiling it
I compiled Vim on serveral platforms to make sure you can use my dotfiles without a problem.
Download a Vim deb package pre-compiled with Java
, Python
, Lua
, Ruby
support.
Vim on Debian8/Ubuntu16.04 x86_64,
Vim 8.0.0133 on Debian7/Ubuntu14.04 x86_64,
Vim on Debian8 for ARM 7L Raspberry Pi and NanoPi/NanoPC Computers
There's a Python IDE inside. Type :Ide in the Vim prompt console.
Press F9 to enter Python IDE
Using :b [your_file_name]
to switch between different buffers windows in Vim
Paste mode toggle: F2
numbers.vim toggle: F3
Re-fresh CtrlP fuzzy search cache switch: F5
indentLine.vim toggle: F6
make
command shortcut: F7
Snippets can be found at .vim/UltiSnips/
Ultisnips open key trigger: \s
Ultisnips jump forward trigger: \f
Ultisnips jump backward trigger: \b
Colorizer Plugin toggle: \tc
Notice: <leader>
in file .vimrc
represents \
To use jedi autocompletion in vim, you need to install vim-python-jedi package. For example, on Linux debian and Ubuntu sudo apt install vim-python-jedi
. FYI, if you use python in miniconda environment, please read this https://github.com/davidhalter/jedi-vim/issues/907
I used clang
to show some variable name predictions in this setting.
The C/C++ IDE ablity is based on global
.
For more info, please visit vim-clang
Reference of snippets for C/C++
Notice: Use keys \s, \f, \b to start, jump forward and jump backward with the snippets.
Notice: Vim plugin Conque-GDB is removed due to non-maintainance.
By default it works with JDK 8 at least. If you want to set your personal JDK, please change the JAVA_HOME
/JRE_HOME
/PATH
in file .bashrc
Check this tutorial for switching to JDK8 for Ubuntu destro.
For more info and settings, please visit here for help.
Open or create a New HTML File:
vim index.html
Type something ( Notice: "_" is the cursor position):
html:5_
Then type <c-y>,
(Ctrly,), and you should see:
<!DOCTYPE HTML>
<html lang="en">
<head>
<meta charset="UTF-8">
<title></title>
</head>
<body>
_
</body>
</html>
Type
test1
test2
test3
Then select these 3 lines using Vim visual line keys Shiftv. Then press keys Ctrly,, you will see what it shows as the followings. Please try it.
Enter copy and paste mode (Vi bindings) Ctrlb[
In copy/paste mode for cursor moving
Direction | Key |
---|---|
down | j |
up | k |
left | h |
right | l |
To select v
To copy/yank selection y
To quit copy/paste mode, q
To paste your selection, Ctrlb]
For csv/dat file editing using csv.vim
The demo of CSV file editing:
If your csv file is very big, please do not edit it using Vim. It would be slow. Libreoffice is your friend. But viewing csv files in this manner makes me feel great.
.bashrc
. The Nvidia docker comes with all elements that the framework tensorflow needs for acceleration. And the docker even comes with Jupyter which is easier for people to try algorithms in web browser.By Songhua Liu A.K.A. xros