dotfiles

$HOME is where the <3 is
git clone git://git.alexkarle.com/dotfiles.git
Log | Files | Refs | Submodules | README

commit c509b65edefe6c8613c742c56e332ae511037eba (patch)
parent e5a914b7dd093d67ea78a56cd1d6be7de42fbe36
Author: Alexander Karle <akarle@umass.edu>
Date:   Wed,  2 May 2018 01:26:33 -0400

Minor vimrc updates (see full log below):

1. Leader is now spacebar
2. persistent undo iff undo directory exists
3. markdown rendering plugin

Diffstat:
M.gitignore | 3+++
Mvim/keys.vim | 7+++++--
Mvim/plugins.vim | 3+++
Mvim/pluginsettings.vim | 3+++
Mvim/vimrc | 2+-
5 files changed, 15 insertions(+), 3 deletions(-)

diff --git a/.gitignore b/.gitignore @@ -6,6 +6,9 @@ vim/*/* # Ignore symlink artifact vim/vim +# ignore files starting with dot in .vim +vim/.* + # Ignore the Vagrant machine stuff used in testing Vagrantfile *.log diff --git a/vim/keys.vim b/vim/keys.vim @@ -1,8 +1,8 @@ "================================ " KEY MAPPINGS "================================ -"Map 'jk' to ESC (its wonderful) -" inoremap jk <ESC> "TEMPORARILY COMMENTING IN FAVOR OF ctrl-[ +" set leader to be spacebar +let mapleader = " " "Map ctrl-i/j/k/h to switch between splits nnoremap <C-j> <C-w>j @@ -21,3 +21,6 @@ nmap _$ :call CMDPreserve("%s/\\s\\+$//e")<CR> " save session nnoremap <leader>s :mksession!<CR> + +" edit in current buffer dir +nnoremap <leader>e :e %:h/ diff --git a/vim/plugins.vim b/vim/plugins.vim @@ -39,5 +39,8 @@ Plug 'lervag/vimtex', { 'for': 'tex' } " surround for parens and such Plug 'tpope/vim-surround' +" markdown rendering +Plug 'suan/vim-instant-markdown' + " List ends here. Plugins become visible to Vim after this call. call plug#end() diff --git a/vim/pluginsettings.vim b/vim/pluginsettings.vim @@ -18,3 +18,6 @@ let g:vimtex_view_method='skim' "for airline status bar -- need to include font let g:airline_powerline_fonts = 0 let g:airline_theme = 'gruvbox' + +" don't open instant markown on open md +let g:instant_markdown_autostart = 0 diff --git a/vim/vimrc b/vim/vimrc @@ -62,7 +62,7 @@ set guioptions-=r set guioptions-=L " Persistent undo -if(has('persistent_undo')) +if(has('persistent_undo') && !empty(finddir('~/.vim/undo', '~'))) set undodir=~/.vim/undo/ set undofile set undolevels=1000