(C-x means ctrl+x, M-x means alt+x)
The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf
:
" Installation instructions | |
" Install Vundle -- git clone https://github.com/gmarik/vundle.git ~/.vim/bundle/vundle | |
" Create tmp directory -- mkdir ~/.vim/tmp | |
" Install bundles inside vim -- :PluginInstall | |
" or from the command line -- vim +PluginInstall +qall | |
set nocompatible " be iMproved, required | |
filetype off " required | |
" set the runtime path to include Vundle and initialize |
# ~/.profile: executed by the command interpreter for login shells. | |
# This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login | |
# exists. | |
# see /usr/share/doc/bash/examples/startup-files for examples. | |
# the files are located in the bash-doc package. | |
# the default umask is set in /etc/profile; for setting the umask | |
# for ssh logins, install and configure the libpam-umask package. | |
#umask 022 |
# C-b is not acceptable -- Vim uses it | |
set-option -g prefix C-a | |
bind-key C-a last-window | |
setw -g xterm-keys on | |
# Fix colors tmux + vim | |
# alternatively start with: tmux -2 | |
set -g default-terminal "screen-256color" | |
set -g terminal-overrides 'xterm:colors=256' |
# C-b is not acceptable -- Vim uses it | |
set-option -g prefix C-a | |
setw -g xterm-keys on | |
# Fix colors tmux + vim | |
# if this still does not work then put this in your .bashrc: | |
# alias tmux='tmux -2' | |
set -g default-terminal "screen-256color" |
# Load pyenv automatically | |
export PATH="~/.pyenv/bin:$PATH" | |
eval "$(pyenv init -)" | |
eval "$(pyenv virtualenv-init -)" | |
# Load nvm automatically | |
export NVM_DIR="$HOME/.nvm" | |
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm | |
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion |
set nocompatible " be iMproved, required | |
" This config file lives in Ubuntu at ~/.config/nvim/init.vim | |
" vim-plug | |
" Install vim-plug, see https://github.com/junegunn/vim-plug | |
" Install plugins inside vim -- :PlugInstall | |
" Specify a directory for plugins | |
" - For Neovim: ~/.local/share/nvim/plugged |
set nocompatible " be iMproved, required | |
" My ultimate .vimrc for Vim 8.x | |
" Ideally python (works with python3 command) and yarn is preinstalled. | |
" I tried it with npm but it fails somehow. | |
" vim-plug and all plugins are automatically installed on first run of vim | |
" if not present (by code see below). | |
" Make sure ag (or ack-grep) and yarn is installed globally. All other stuff |
/** | |
* Adapted (and translated in Kotlin) from https://gist.github.com/FrantisekGazo/d1a62fcddd0c97453ee6d57efef17916 | |
* Nice usage scenario https://www.novatec-gmbh.de/en/blog/building-android-components/ | |
*/ | |
object RxTextView { | |
private val textViewObservables = HashMap<TextView, Observable<CharSequence>>() | |
@JvmStatic | |
fun textChanges(view: TextView): Observable<CharSequence> { | |
val observable = textViewObservables[view] |
{ | |
"git.autofetch": true, | |
"terminal.integrated.shell.windows": "C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\powershell.exe", | |
"python.formatting.provider": "black", | |
"[javascript]": { | |
"editor.defaultFormatter": "esbenp.prettier-vscode" | |
}, | |
"editor.renderControlCharacters": false, | |
"editor.renderWhitespace": "none", | |
"prettier.disableLanguages": ["django-html"], |