back to airline, more sane mappings
This commit is contained in:
parent
f3a7945a6f
commit
1aefd0ddba
1 changed files with 13 additions and 16 deletions
29
vimrc
29
vimrc
|
@ -51,10 +51,8 @@ nnoremap <Leader>c :set cursorline!<CR>
|
||||||
"clear search highlight
|
"clear search highlight
|
||||||
nnoremap <Leader>/ :nohls<CR>
|
nnoremap <Leader>/ :nohls<CR>
|
||||||
"make wrapped lines navigation easier
|
"make wrapped lines navigation easier
|
||||||
nnoremap j gj
|
noremap <silent> <expr> j (v:count == 0 ? 'gj' : 'j')
|
||||||
nnoremap k gk
|
noremap <silent> <expr> k (v:count == 0 ? 'gk' : 'k')
|
||||||
vnoremap j gj
|
|
||||||
vnoremap k gk
|
|
||||||
"home / end
|
"home / end
|
||||||
nnoremap H ^
|
nnoremap H ^
|
||||||
nnoremap L $
|
nnoremap L $
|
||||||
|
@ -66,7 +64,7 @@ if v:version >= 700
|
||||||
set number
|
set number
|
||||||
set list
|
set list
|
||||||
set listchars=tab:\|_,nbsp:x,trail:•
|
set listchars=tab:\|_,nbsp:x,trail:•
|
||||||
nnoremap <Leader>n :setlocal number!<CR>
|
nnoremap <Leader>n :setlocal relativenumber! number!<CR>
|
||||||
nnoremap <Leader>l :setlocal list!<CR>
|
nnoremap <Leader>l :setlocal list!<CR>
|
||||||
|
|
||||||
" enable case indentation
|
" enable case indentation
|
||||||
|
@ -81,12 +79,13 @@ if v:version >= 700
|
||||||
|
|
||||||
" general plugins
|
" general plugins
|
||||||
Plug 'Lokaltog/vim-easymotion' "easy motion
|
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 'directionalWindowResizer' "resize windows with simple hotkeys
|
||||||
|
Plug 'jeetsukumaran/vim-buffergator' "buffer management
|
||||||
Plug 'junegunn/vim-easy-align' "aligning
|
Plug 'junegunn/vim-easy-align' "aligning
|
||||||
|
Plug 'mhinz/vim-signify' "version control system gutter info
|
||||||
Plug 'nvie/vim-togglemouse' "hotkey to toggle mouse
|
Plug 'nvie/vim-togglemouse' "hotkey to toggle mouse
|
||||||
|
Plug 'vim-airline/vim-airline' "airline
|
||||||
|
Plug 'vim-airline/vim-airline-themes' "themes for airline
|
||||||
|
|
||||||
" colorschemes
|
" colorschemes
|
||||||
Plug 'vdrandom/forked-solarized.vim'
|
Plug 'vdrandom/forked-solarized.vim'
|
||||||
|
@ -103,14 +102,12 @@ if v:version >= 700
|
||||||
map <Leader>j <Plug>(easymotion-j)
|
map <Leader>j <Plug>(easymotion-j)
|
||||||
map <Leader>k <Plug>(easymotion-k)
|
map <Leader>k <Plug>(easymotion-k)
|
||||||
|
|
||||||
" lightline options
|
" airline options
|
||||||
" 'active': { 'right': [ ['lineinfo', 'percent'] ] },
|
let g:airline_symbols={}
|
||||||
let g:lightline = {
|
let g:airline_symbols.whitespace='!'
|
||||||
\ 'colorscheme': 'solarized_dark',
|
let g:airline_powerline_fonts=1
|
||||||
\ 'separator': { 'left': "\ue0b0", 'right': "\ue0b2" },
|
let g:airline_extensions=['hunks']
|
||||||
\ 'subseparator': { 'left': "\ue0b1", 'right': "\ue0b3" },
|
let g:airline_section_z='%3p%% %{g:airline_symbols.linenr}%4l:%3v'
|
||||||
\ 'component': { 'readonly': '%{&readonly?"\ue0a2":""}' },
|
|
||||||
\ }
|
|
||||||
|
|
||||||
" buffergator options
|
" buffergator options
|
||||||
map <Leader><Tab> :BuffergatorToggle<CR>
|
map <Leader><Tab> :BuffergatorToggle<CR>
|
||||||
|
|
Loading…
Reference in a new issue