From eb3893cf3007ec2541dfd49fb2c656b6431de203 Mon Sep 17 00:00:00 2001 From: Kevin Mok Date: Sat, 10 Feb 2018 23:41:04 -0500 Subject: [PATCH] Vim: listed plugins, split mappings - surround - EasyMotion - airline (themes) --- .vimrc | 15 ++++++++++++++- aliases/.pc_aliases | 1 + aliases/.school_aliases | 2 +- 3 files changed, 16 insertions(+), 2 deletions(-) diff --git a/.vimrc b/.vimrc index 837f2f7..4d0397f 100644 --- a/.vimrc +++ b/.vimrc @@ -46,6 +46,10 @@ Plug 'scrooloose/nerdcommenter' let g:NERDSpaceDelims = 1 Plug 'xolox/vim-misc' Plug 'xolox/vim-colorscheme-switcher' +Plug 'tpope/vim-surround' +Plug 'easymotion/vim-easymotion' +Plug 'vim-airline/vim-airline' +Plug 'vim-airline/vim-airline-themes' " }}} vim-plug " " YCM/UltiSnips {{{ " @@ -67,16 +71,25 @@ map :wa map :wqa map :qa! map :AutoSaveToggle +map :LLPStartPreview set pastetoggle= map O +" For splits. +nnoremap +nnoremap +nnoremap +nnoremap +" Maximize height/width. +nnoremap _ +nnoremap | + let mapleader="\" nnoremap e o nnoremap f za nnoremap ff :set foldmethod=marker zM nnoremap h :set hlsearch! hlsearch? nnoremap m :call cursor(0, len(getline('.'))/2) -nnoremap p :LLPStartPreview nnoremap pli :PlugInstall nnoremap plc :PlugClean nnoremap plu :PlugUpdate diff --git a/aliases/.pc_aliases b/aliases/.pc_aliases index fc0bf3e..9dd3e30 100644 --- a/aliases/.pc_aliases +++ b/aliases/.pc_aliases @@ -41,6 +41,7 @@ if [ "$(hostname)" == "NZXT" ]; then alias spt="speedtest" alias pg="ping -c 5 google.ca" + alias res="vi ~/Documents/resume/README.md" alias rcg="d ~/Documents/coding/random-color-generator" alias dcr="d ~/Documents/coding/dcr-logger" fi diff --git a/aliases/.school_aliases b/aliases/.school_aliases index 06e1b5c..5d28d4e 100644 --- a/aliases/.school_aliases +++ b/aliases/.school_aliases @@ -80,4 +80,4 @@ run() { # }}} # }}} -alias 6a="$cd_school/236/a1" +alias 36a="$cd_school/236/a1"