From 54e10baa6c8e70193cf1303a6038c7e78d8dd876 Mon Sep 17 00:00:00 2001 From: William Carroll Date: Fri, 20 Oct 2017 19:43:08 -0400 Subject: [PATCH] Updates vimrc movement kbds --- configs/shared/.vimrc | 40 +++++++++++++++++++++++++++++++++++++--- 1 file changed, 37 insertions(+), 3 deletions(-) diff --git a/configs/shared/.vimrc b/configs/shared/.vimrc index de4ccc198..4507faebb 100644 --- a/configs/shared/.vimrc +++ b/configs/shared/.vimrc @@ -74,6 +74,12 @@ Plugin 'tpope/vim-repeat' " Pairs of mappings Plugin 'tpope/vim-unimpaired' +" LISPs support +Plugin 'guns/vim-sexp' +Plugin 'tpope/vim-sexp-mappings-for-regular-people' +let g:sexp_enable_insert_mode_mappings = 0 +let g:sexp_filetypes = '' + " Seamlessly navigate Vim and Tmux with similar bindings. Plugin 'christoomey/vim-tmux-navigator' @@ -219,6 +225,9 @@ nnoremap [ :call LocationPrevious() nnoremap ] :call LocationNext() +nnoremap h :noh + + " Alchemist settings let g:alchemist#elixir_erlang_src = '/usr/local/share/src' @@ -245,6 +254,9 @@ let g:airline_theme = 'hybrid' let g:swoopHighlight = ["hi! link SwoopBufferLineHi Warning", "hi! link SwoopPatternHi Error"] +nnoremap :q + + " Jump to buffers. nmap :1b nmap :2b @@ -360,11 +372,18 @@ set concealcursor=nvic inoremap jk -" Conventional Emacs line-editor defaults -" NOTE: interferes w/ current tmux prefix +" Hybrid mode for Vim inoremap I inoremap A +inoremap +inoremap + +inoremap +inoremap +inoremap +inoremap + " Manage Vertical and Horizontal splits nnoremap sl :vsl @@ -382,6 +401,21 @@ nnoremap q :bdelete set runtimepath^=~/.vim/bundle/ctrlp.vim +" Pane movement +let g:tmux_navigator_no_mappings = 1 + +nnoremap :TmuxNavigateLeft +nnoremap :TmuxNavigateDown +nnoremap :TmuxNavigateUp +nnoremap :TmuxNavigateRight + +" May need redundant mappings bc of LISP plugin +nnoremap :TmuxNavigateLeft +nnoremap :TmuxNavigateDown +nnoremap :TmuxNavigateUp +nnoremap :TmuxNavigateRight + + " Buffer creation and management " Buffer movement nnoremap :1bnext @@ -486,7 +520,7 @@ let NERDTreeShowHidden = 1 nnoremap n :NERDTreeToggle " View open buffer location in tree. -nnoremap f :NERDTreeFind +nnoremap N :NERDTreeFind " BOL and EOL