From 350ac709c2a2d389e2a478e2ed8ad1f469db7d66 Mon Sep 17 00:00:00 2001 From: Tony Duckles Date: Thu, 10 Jan 2013 21:19:09 -0600 Subject: [PATCH] .vimrc: +sidescrolloff=10, smarttab, +nnoremap Y Inspired by https://github.com/tpope/vim-sensible --- .vimrc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.vimrc b/.vimrc index 6a74ac8..bce1de8 100644 --- a/.vimrc +++ b/.vimrc @@ -98,6 +98,7 @@ set report=0 " tell us about changes set nostartofline " don't jump to the start of line when scrolling set scrolloff=4 " vertcal padding set sidescroll=40 " side-scrolling increment (for nowrap mode) +set sidescrolloff=10 " horz padding " ---------------------------------------------------------------------------- " Visual Cues @@ -134,7 +135,7 @@ set softtabstop=2 " yep, two set shiftwidth=2 " .. set tabstop=4 set expandtab " expand tabs to spaces -set nosmarttab " screw tabs +set smarttab " smarter softtab handling set formatoptions+=n " support for numbered/bullet lists set textwidth=0 " no line-wrapping by default set virtualedit=block " allow virtual edit in visual block .. @@ -171,6 +172,9 @@ set pastetoggle= " press to turn off highlighting and clear any message already displayed. nnoremap :nohlsearch:echo +" make Y consistent with C (c$) and D (d$) +nnoremap Y y$ + " disable default vim regex handling for searching nnoremap / /\v vnoremap / /\v -- 2.45.2