dotfiles

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

commit 7db203b9aaf4b0f8a5858af94e62b49daa802568
parent 6ac1e80016e1b1ba113deaf03198f2660e58c30c
Author: Alex Balgavy <a.balgavy@gmail.com>
Date:   Fri, 10 May 2019 11:53:48 +0200

vim: random improvements

Former-commit-id: 5fe66058dd7af3bf4a788f0372b0f1f194bcb249
Diffstat:
Mvim/editor.vimrc | 2+-
Mvim/map.vimrc | 6+++++-
2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/vim/editor.vimrc b/vim/editor.vimrc @@ -30,7 +30,7 @@ set relativenumber set smarttab " and 1 tab == 2 spaces -set tabstop=8 " always keep ts (visual length of \t) at 8 +set tabstop=4 " always keep ts (visual length of \t) at 4 set expandtab " use spaces instead of tabs set shiftwidth=2 " 2 spaces when >> set softtabstop=2 " and when pressing TAB diff --git a/vim/map.vimrc b/vim/map.vimrc @@ -26,6 +26,10 @@ endif vnoremap < <gv vnoremap > >gv +" visual j/k +nnoremap j gj +nnoremap k gk + " Move visual block vnoremap D :m '>+1<CR>gv=gv vnoremap U :m '<-2<CR>gv=gv @@ -75,7 +79,7 @@ nnoremap <expr> <silent> 0 col('.') == match(getline('.'),'\S')+1 ? '0' : '^' nnoremap gV `[v`] " Save in insert mode -inoremap <C-Z> <ESC>:w<CR>a +inoremap <C-Z> <C-o>:w<CR> " Config edit mappings nnoremap <C-E><C-A> :vsplit $DOTFILES/vim/autocmd.vimrc<CR>