dotfiles

My personal shell configs and stuff
git clone git://git.alex.balgavy.eu/dotfiles.git
Log | Files | Refs | Submodules | README | LICENSE

commit 639e7df7b470e9bc4547686a75389d4d77e4ca05
parent 4993ad26099a515fd39a561c6e19df47a1cb9008
Author: Alex Balgavy <a.balgavy@gmail.com>
Date:   Wed, 16 Oct 2019 16:52:39 -0400

vim: mappings

Former-commit-id: f173866afc6e6a5a3d8546b0509f387015ae9ffc
Diffstat:
Mvim/vimrc | 8+++++++-
1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/vim/vimrc b/vim/vimrc @@ -259,7 +259,8 @@ nmap <leader>sd <Plug>DeleteSession nmap <leader>sq <Plug>CloseSession " }}} " Sparkup {{{ -let g:sparkupExecuteMapping = '<C-x><C-e>' +let g:sparkupExecuteMapping = '<C-x><C-e><CR>' +let g:sparkupNextMapping = '<C-x><C-e><tab>' " }}} " Haskell {{{ let hs_highlight_delimiters = 1 @@ -379,6 +380,7 @@ set statusline+=%= " Move every set statusline+=\ %y " File type set statusline+=\ [%{&expandtab?'spaces':'tabs'}, " Using spaces or tabs set statusline+=%{strlen(&shiftwidth)?&shiftwidth:'none'}] " Spaces in a tab +set statusline+=\ [z%{&foldlevel}] " The current foldlevel set statusline+=\ %l/%L\ " Cursor line/total lines set statusline+=\ B%n " Buffer number set statusline+=\ \ %{strftime(\"%H:%M\")} " Time @@ -723,6 +725,8 @@ nnoremap gV `[v`] " Save in insert mode inoremap <C-Z> <C-o>:w<CR> +" Set the foldlevel +nnoremap zs :set foldlevel= " Config edit mappings nnoremap <C-E><C-A> :vsplit $MYVIMRC<CR>gg/Autocommands {{{$<CR>:noh<CR>za nnoremap <C-E><C-C> :vsplit $MYVIMRC<CR>gg/Commands {{<CR>:noh<CR>za @@ -771,6 +775,8 @@ vmap <leader><CR> <Plug>VisualRunCommands nnoremap H :bprevious<CR> nnoremap L :bnext<CR> +nnoremap <leader>H :previous<CR> +nnoremap <leader>L :next<CR> nmap <C-P> <Plug>VimcolorSynstack