From d4be6484a078a4c4ac2146b36834d050afc7439e Mon Sep 17 00:00:00 2001 From: Tony Duckles Date: Mon, 16 Jul 2012 20:36:32 -0500 Subject: [PATCH] .vimrc: Easier buffer navigation --- .vimrc | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/.vimrc b/.vimrc index 7f4a7d3..e11afd7 100644 --- a/.vimrc +++ b/.vimrc @@ -38,7 +38,7 @@ if &t_Co > 2 || has("gui_running") syntax enable " syntax highligting set hlsearch " highlight all search matches " Press to turn off highlighting and clear any message already displayed. - :nnoremap :nohlsearch:echo + nnoremap :nohlsearch:echo " Define to-do color(s) if !exists("autocmd_colorscheme_loaded") @@ -79,7 +79,6 @@ highlight SpecialKey ctermfg=DarkGray ctermbg=Black set nobackup " do not keep backups after close set nowritebackup " do not keep a backup while working -set backupdir=$HOME/.vim/backup " store backups under ~/.vim/backup set backupcopy=yes " keep attributes of original file set backupskip=/tmp/*,$TMPDIR/*,$TMP/*,$TEMP/* set directory=.,~/tmp,~/.vim/swap " swap file directory-order @@ -161,13 +160,6 @@ let mapleader = "," nnoremap :set invpaste paste? set pastetoggle= -"" /- to navigation between buffers -if version >= 700 - set switchbuf=usetab - nnoremap :sbnext - nnoremap :sbprevious -endif - " disable default vim regex handling for searching nnoremap / /\v vnoremap / /\v @@ -192,6 +184,10 @@ inoremap gk cnoremap cnoremap +" buffer navigation +nnoremap :bnext +nnoremap :bprev + " easier split-window movement nnoremap h nnoremap j -- 2.45.2