From 2a014b64daf915df1a74a5a67c8908a5e0b066f2 Mon Sep 17 00:00:00 2001 From: Garrit Franke Date: Wed, 17 Feb 2021 10:13:50 +0100 Subject: [PATCH] Disable arrow keys in vim --- .config/nvim/init.vim | 27 +++++++++++++++++++++++++++ .zshrc | 17 +++++++++++++++-- 2 files changed, 42 insertions(+), 2 deletions(-) diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim index ad19ee0..9aff90c 100644 --- a/.config/nvim/init.vim +++ b/.config/nvim/init.vim @@ -75,6 +75,30 @@ let g:ale_rust_rls_toolchain = 'stable' " inoremap ( () " noremap , w +" Remove newbie crutches in Command Mode +cnoremap +cnoremap +cnoremap +cnoremap + +" Remove newbie crutches in Insert Mode +inoremap +inoremap +inoremap +inoremap + +" Remove newbie crutches in Normal Mode +nnoremap +nnoremap +nnoremap +nnoremap + +" Remove newbie crutches in Visual Mode +vnoremap +vnoremap +vnoremap +vnoremap + " Remaps :autocmd BufWritePost * ALEFix @@ -83,3 +107,6 @@ nnoremap :tabn nnoremap :tabp nnoremap gd :YcmCompleter GoTo nnoremap f :ALEFix + +nnoremap k gk +nnoremap j gj diff --git a/.zshrc b/.zshrc index 2bf6a6b..b8d583a 100644 --- a/.zshrc +++ b/.zshrc @@ -2,8 +2,19 @@ export ZSH="$HOME/.oh-my-zsh" export EDITOR="/usr/local/bin/nvim" +# Add Flutter +export PATH=$PATH:~/sources/flutter/bin + # Add scripts directory -export PATH=$PATH:~/dev/scripts/ +export PATH=$PATH:~/sources/scripts/ + +# Add cargo +export PATH=$PATH:~/.cargo/bin + +# LLVM +export PATH="/usr/local/opt/llvm/bin:$PATH" +export LDFLAGS="-L/usr/local/opt/llvm/lib" +export CPPFLAGS="-I/usr/local/opt/llvm/include" # Set name of the theme to load --- if set to "random", it will # load a random theme each time oh-my-zsh is loaded, in which case, @@ -156,7 +167,6 @@ if command -v pyenv 1>/dev/null 2>&1; then fi autoload bashcompinit && bashcompinit -alias config='/usr/bin/git --git-dir=/Users/frankeg/.cfg/ --work-tree=/Users/frankeg' # Start X if necessary if [[ -z $DISPLAY ]] && [[ $(tty) = /dev/tty1 ]]; then exec startx; fi @@ -164,3 +174,6 @@ if [[ -z $DISPLAY ]] && [[ $(tty) = /dev/tty1 ]]; then exec startx; fi 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 + +# Add RVM to PATH for scripting. Make sure this is the last PATH variable change. +export PATH="$PATH:$HOME/.rvm/bin"