From d7053a7f1c211f98c08f70a5df213bbaff671065 Mon Sep 17 00:00:00 2001 From: Adam Lamers Date: Tue, 21 Jul 2020 15:25:20 -0500 Subject: [PATCH] Vim config tweaks --- common_shell_functions | 7 +++++++ vimrc | 6 ++++++ vimrc_vundle | 4 ---- 3 files changed, 13 insertions(+), 4 deletions(-) diff --git a/common_shell_functions b/common_shell_functions index 9ab6105..2f9296d 100644 --- a/common_shell_functions +++ b/common_shell_functions @@ -114,3 +114,10 @@ function flocate() { zgrep $1 /tmp/flocate.db --color=auto } + + +#################### OS Initialization Tools ################### +function debian_init() { + sudo apt-get update + sudo apt-get install -y tmux vim curl +} diff --git a/vimrc b/vimrc index 89426d7..a9e5e05 100644 --- a/vimrc +++ b/vimrc @@ -71,6 +71,7 @@ map ba :1,1000 bd! map q :bd map qq :q map w :w +map g :NERDTreeToggle "Return to last position when re-opening file autocmd BufReadPost * @@ -99,6 +100,7 @@ colorscheme monokai "change tabs with tab and shift-tab nnoremap gt nnoremap gT +nnoremap :CtrlP autocmd BufWritePre * :%s/\s\+$//e @@ -166,3 +168,7 @@ nnoremap h nnoremap j nnoremap k nnoremap l +tnoremap h +tnoremap j +tnoremap k +tnoremap l diff --git a/vimrc_vundle b/vimrc_vundle index ffbec77..86cf721 100644 --- a/vimrc_vundle +++ b/vimrc_vundle @@ -19,15 +19,11 @@ Plugin 'gmarik/Vundle.vim' " plugin on GitHub repo " plugin from http://vim-scripts.org/vim/scripts.html Plugin 'tmhedberg/SimpylFold' -Plugin 'rizzatti/dash.vim' Plugin 'vimwiki/vimwiki' -Plugin 'mattn/calendar-vim' Plugin 'kien/ctrlp.vim' Plugin 'octol/vim-cpp-enhanced-highlight' Plugin 'mattn/emmet-vim' Plugin 'tpope/vim-surround' -Plugin 'davidhalter/jedi-vim' -Plugin 'leafgarland/typescript-vim' Plugin 'scrooloose/nerdtree' " All of your Plugins must be added before the following line