From 45c4126735a5060c8f17f69a930b2c4e024c1272 Mon Sep 17 00:00:00 2001 From: niblock Date: Fri, 28 Jul 2017 18:37:09 -0400 Subject: [PATCH] vimrc: Remove ESC mapping; additional changes --- vim/vimrc | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/vim/vimrc b/vim/vimrc index 65c225b..8852683 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -52,15 +52,14 @@ set statusline= " Initialize it set statusline+=%m%1*%r%0*%h " Modified, RO, Help flags set statusline+=%2*%{&spell?'[SPELL]':''} " Spell flag set statusline+=%#StatusLine# -set statusline+=%{fugitive#statusline()} " Fugitive: Git branch +" Show the Fugitive-provided status line, if Fugitive is installed +set statusline+=%{exists('g:loaded_fugitive')?fugitive#statusline():''} set statusline+=%#Pmenu# " Color change (see :hi) set statusline+=\ %F " Full-path to current buffer set statusline+=%= " Switch to right-side set statusline+=%y\ " Filetype set statusline+=%#StatusLine# " Color change (see :hi) set statusline+=\|%4l\:%2c\| " Line and column -set statusline+=%#SyntasticError# " Color change (see :hi_ -set statusline+=%{SyntasticStatuslineFlag()} " Syntastic: Warnings/Errors augroup user_stl_colors autocmd! @@ -72,8 +71,6 @@ augroup END " Mappings " ============================================================================== let mapleader = "," -" Remap ESC in insert mode -inoremap jk " Make moving up/down work on wrapped lines of text nnoremap j gj nnoremap k gk @@ -88,11 +85,11 @@ cmap w!! w !sudo tee > /dev/null % nnoremap rtw :%s/\s\+$//e " Open help topic in a full new tab command! -nargs=1 -complete=help H :tabnew | :set buftype=help | :h -" Show buffer list and prompt to choose one -nnoremap b :ls:b " Simple mapping to dotfiles directory (f = current tab; F = new tab) nnoremap f :edit ~/.dotfiles/ nnoremap F :tabnew ~/.dotfiles/ +" Emulatae vinegar.vim +nnoremap - :silent edit =empty(expand('%')) ? '.' : expand('%:p:h') " ============================================================================== " Plugins " ==============================================================================