From 1aefd0ddba85b4846a1446e855687017640a6334 Mon Sep 17 00:00:00 2001 From: Von Random Date: Thu, 19 May 2016 17:05:20 +0300 Subject: [PATCH] back to airline, more sane mappings --- vimrc | 29 +++++++++++++---------------- 1 file changed, 13 insertions(+), 16 deletions(-) diff --git a/vimrc b/vimrc index dfbef36..374cee2 100644 --- a/vimrc +++ b/vimrc @@ -51,10 +51,8 @@ nnoremap c :set cursorline! "clear search highlight nnoremap / :nohls "make wrapped lines navigation easier -nnoremap j gj -nnoremap k gk -vnoremap j gj -vnoremap k gk +noremap j (v:count == 0 ? 'gj' : 'j') +noremap k (v:count == 0 ? 'gk' : 'k') "home / end nnoremap H ^ nnoremap L $ @@ -66,7 +64,7 @@ if v:version >= 700 set number set list set listchars=tab:\|_,nbsp:x,trail:• - nnoremap n :setlocal number! + nnoremap n :setlocal relativenumber! number! nnoremap l :setlocal list! " enable case indentation @@ -81,12 +79,13 @@ if v:version >= 700 " general plugins Plug 'Lokaltog/vim-easymotion' "easy motion - Plug 'itchyny/lightline.vim' "lightline - Plug 'jeetsukumaran/vim-buffergator' "buffer management - Plug 'mhinz/vim-signify' "version control system gutter info Plug 'directionalWindowResizer' "resize windows with simple hotkeys + Plug 'jeetsukumaran/vim-buffergator' "buffer management Plug 'junegunn/vim-easy-align' "aligning + Plug 'mhinz/vim-signify' "version control system gutter info Plug 'nvie/vim-togglemouse' "hotkey to toggle mouse + Plug 'vim-airline/vim-airline' "airline + Plug 'vim-airline/vim-airline-themes' "themes for airline " colorschemes Plug 'vdrandom/forked-solarized.vim' @@ -103,14 +102,12 @@ if v:version >= 700 map j (easymotion-j) map k (easymotion-k) - " lightline options - " 'active': { 'right': [ ['lineinfo', 'percent'] ] }, - let g:lightline = { - \ 'colorscheme': 'solarized_dark', - \ 'separator': { 'left': "\ue0b0", 'right': "\ue0b2" }, - \ 'subseparator': { 'left': "\ue0b1", 'right': "\ue0b3" }, - \ 'component': { 'readonly': '%{&readonly?"\ue0a2":""}' }, - \ } + " airline options + let g:airline_symbols={} + let g:airline_symbols.whitespace='!' + let g:airline_powerline_fonts=1 + let g:airline_extensions=['hunks'] + let g:airline_section_z='%3p%% %{g:airline_symbols.linenr}%4l:%3v' " buffergator options map :BuffergatorToggle