From 0d99916e38f577d6bca4caf9f8d1fd1ea2bf6c37 Mon Sep 17 00:00:00 2001 From: Max Christian Pohle Date: Wed, 30 Aug 2017 06:14:43 +0200 Subject: Fixed titlestring, added leader-h command --- doc/git | 2 ++ vimrc-full | 15 ++++++++------- 2 files changed, 10 insertions(+), 7 deletions(-) create mode 100644 doc/git diff --git a/doc/git b/doc/git new file mode 100644 index 0000000..1205d00 --- /dev/null +++ b/doc/git @@ -0,0 +1,2 @@ +undo last commit: git reset HEAD~ +diff two branches: git diff branch1 branch2 path/to/file diff --git a/vimrc-full b/vimrc-full index 0aecf24..166fb37 100644 --- a/vimrc-full +++ b/vimrc-full @@ -252,7 +252,7 @@ if has("autocmd") augroup set_window_title " { " autocmd BufWinEnter quickfix setl statusline=%t " autocmd BufEnter * let &titlestring = hostname() . "[vim(" . expand("%:t") . ")]" - autocmd CursorHold * let &titlestring = "%t|".$USER."@".hostname().":%{expand(\"%:~:.:h\")}%=%y" + autocmd CursorHold * let &titlestring = "%y %t | ".$USER."@".hostname().":%{expand(\"%:~:.:h\")}" set title " autocmd CursorHold * let &titlestring = "Vim (".airline#extensions#tagbar#currenttag().")" @@ -366,7 +366,7 @@ if has("autocmd") augroup CurrentFileName " highlight the current files name inside the document... - let @g = ":exe ':match IncSearch /'.escape(expand('%:t'), '.').'/'" + let @g = ":exe ':match SpellBad /'.escape(expand('%:t'), '.').'/'" " put the current files name after the cursor... let @f = ":exe ':normal a'.expand('%:t')" @@ -398,11 +398,11 @@ if has("autocmd") \ :execute ':!nvr --servername /tmp/nvimsocket --remote % +'.line('.'):stopinsert:set readonly menu &Verify.&Textwidth\ and\ white\ space - \ :execute ':match ColorColumn /\%>'.&textwidth.'v./' - \ :2match IncSearch /\s\+$/ + \ :execute ':match SpellBad /\%>'.&textwidth.'v./' + \ :2match SpellBad /\s\+$/ menu &Verify.Highlight\ current\ file\ name - \ :execute ':match ColorColumn /'.escape(expand('%:t'), '.').'/' + \ :execute ':match SpellBad /'.escape(expand('%:t'), '.').'/' menu &Window.-Sep- : menu &Window.Quickfix\ List @@ -585,7 +585,7 @@ let g:lightline_buffer_minfextlen = 3 let g:lightline_buffer_reservelen = 20 let g:lightline = { - \ 'colorscheme': 'Tomorrow_Night_Blue', + \ 'colorscheme': 'Tomorrow_Night_Bright', \ 'separator': { 'left': "\ue0b0", 'right': "\ue0b2" }, \ 'subseparator': { 'left': "\ue0b1", 'right': "\ue0b3" }, \ 'active': { @@ -804,4 +804,5 @@ set background=light set scrolloff=0 | " keeps cursor centered autocmd VimEnter,WinEnter * exec ':set scrolljump='.winheight(0)/2 - +" display highlight group under the cursor +map h :echo map(synstack(line('.'), col('.')), 'synIDattr(v:val, "name")') -- cgit v1.2.3