From 0d327968c0f2007c38b3e5a503a818b00ddf137d Mon Sep 17 00:00:00 2001 From: Kevin Mok Date: Tue, 13 Feb 2018 03:43:29 -0500 Subject: [PATCH] Vim: bullets plugin, replace/wrap line mappings Also changed paste toggle (F10) to instead turn on paste, paste and then turn off. --- .vimrc | 5 ++++- aliases/.git_aliases | 1 + aliases/.pc_aliases | 1 + 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.vimrc b/.vimrc index 5162c37..1eb0d9b 100644 --- a/.vimrc +++ b/.vimrc @@ -55,6 +55,7 @@ Plug 'tpope/vim-surround' Plug 'easymotion/vim-easymotion' Plug 'vim-airline/vim-airline' Plug 'vim-airline/vim-airline-themes' +Plug 'dkarter/bullets.vim' " }}} vim-plug " " YCM/UltiSnips {{{ " @@ -77,7 +78,7 @@ map :wqa map :qa! map :AutoSaveToggle map :LLPStartPreview -set pastetoggle= +nnoremap :set pastep:set nopaste map O " For splits. @@ -98,9 +99,11 @@ nnoremap pli :PlugInstall nnoremap plc :PlugClean nnoremap plu :PlugUpdate nnoremap r :.,.+s///g +nnoremap rl :.s///g nnoremap rv :source $MYVIMRC nnoremap R :%s///g nnoremap s :set syn=sh +nnoremap w Vgq nnoremap z za " }}} Mappings " diff --git a/aliases/.git_aliases b/aliases/.git_aliases index 5fdb057..83838d8 100644 --- a/aliases/.git_aliases +++ b/aliases/.git_aliases @@ -6,6 +6,7 @@ alias grbc="git rebase --continue" alias gps="git push" alias vig="vi .gitignore" alias ga="git add -A * && gs" +alias gac="git add -A *; git commit" alias gai="git add .gitignore" alias gd="git diff -w" alias gdc="git diff --cached" diff --git a/aliases/.pc_aliases b/aliases/.pc_aliases index 9dd3e30..b388ed8 100644 --- a/aliases/.pc_aliases +++ b/aliases/.pc_aliases @@ -42,6 +42,7 @@ if [ "$(hostname)" == "NZXT" ]; then alias pg="ping -c 5 google.ca" alias res="vi ~/Documents/resume/README.md" + alias sfa="d ~/Documents/self-authoring" alias rcg="d ~/Documents/coding/random-color-generator" alias dcr="d ~/Documents/coding/dcr-logger" fi