From 5af7ff17ba866168a5a5cca9385066e615e5648d Mon Sep 17 00:00:00 2001 From: Von Random Date: Thu, 13 Nov 2014 02:49:29 +0300 Subject: [PATCH] moar vim tweaks --- vimrc | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/vimrc b/vimrc index 6431ebb..7229806 100644 --- a/vimrc +++ b/vimrc @@ -40,7 +40,9 @@ autocmd FileType python setlocal sts=4 sw=4 expandtab map " map buffers to leader buffer number for i in range(1,9) - execute 'nmap ' . i . ' :buffer ' . i . '' + execute 'nmap '.i.' :b'.i.'' + execute 'nmap s'.i. ' :sb'.i.'' + execute 'nmap v'.i.' :vert sb'.i.'' endfor " nmaps @@ -64,13 +66,18 @@ if v:version >= 703 " general plugins Plugin 'bling/vim-airline' "stylish info display Plugin 'bling/vim-bufferline' "stylish buffer display + Plugin 'kien/ctrlp.vim' "some quick file accessiong goodness Plugin 'mbbill/undotree' "undo buffer manager Plugin 'mhinz/vim-signify' "version control system gutter info Plugin 'msanders/snipmate.vim' "snippets support + Plugin 'scrooloose/nerdcommenter' "comment manager Plugin 'scrooloose/nerdtree' "file manager Plugin 'scrooloose/syntastic' "syntax checker Plugin 'tpope/vim-surround' "quotes replacement made easy + " experimenting + Plugin 'buffet.vim' "horribly outdated, replace with version from bitbucket + " colorscheme ... Plugin 'vdrandom/forked-solarized.vim' "solarized Plugin 'nanotech/jellybeans.vim' "jellybeans @@ -94,7 +101,8 @@ if v:version >= 703 let g:signify_sign_change = '~' " nerdtree options - map k :NERDTreeToggle + let NERDTreeDirArrows=0 + map . :NERDTreeToggle autocmd StdinReadPre * let s:std_in=1 autocmd VimEnter * if argc() == 0 && !exists("s:std_in") | NERDTree | endif endif