diff options
Diffstat (limited to 'vim/init')
-rw-r--r-- | vim/init/keymaps.vim | 2 | ||||
-rw-r--r-- | vim/init/special_highlight.vim | 6 |
2 files changed, 5 insertions, 3 deletions
diff --git a/vim/init/keymaps.vim b/vim/init/keymaps.vim index aff5428..5441f32 100644 --- a/vim/init/keymaps.vim +++ b/vim/init/keymaps.vim | |||
@@ -269,8 +269,10 @@ noremap <leader><leader>ft :set filetype= | |||
269 | noremap <leader><leader>fm :set foldmethod= | 269 | noremap <leader><leader>fm :set foldmethod= |
270 | 270 | ||
271 | " Let <leader>l toggle between this and the last accessed buffer | 271 | " Let <leader>l toggle between this and the last accessed buffer |
272 | augroup SaveLastBuffer | ||
272 | let g:lastbuffer = 1 | 273 | let g:lastbuffer = 1 |
273 | au BufLeave * let g:lastbuffer = bufnr() | 274 | au BufLeave * let g:lastbuffer = bufnr() |
275 | augroup END | ||
274 | 276 | ||
275 | 277 | ||
276 | "---------------------------------------------------------------------- | 278 | "---------------------------------------------------------------------- |
diff --git a/vim/init/special_highlight.vim b/vim/init/special_highlight.vim index 50e4dc3..9729183 100644 --- a/vim/init/special_highlight.vim +++ b/vim/init/special_highlight.vim | |||
@@ -12,7 +12,7 @@ endfunction | |||
12 | 12 | ||
13 | " Defualt highlight for matched parenthesis is so weird in many colorscheme | 13 | " Defualt highlight for matched parenthesis is so weird in many colorscheme |
14 | " Why the background color is lighter than my caret !? | 14 | " Why the background color is lighter than my caret !? |
15 | highlight MatchParen ctermfg=NONE ctermbg=darkgrey cterm=NONE | 15 | " highlight MatchParen ctermfg=NONE ctermbg=darkgrey cterm=NONE |
16 | highlight LuaParen ctermfg=NONE ctermbg=darkgrey cterm=NONE | 16 | highlight LuaParen ctermfg=NONE ctermbg=darkgrey cterm=NONE |
17 | 17 | ||
18 | " Show trailing spaces | 18 | " Show trailing spaces |
@@ -23,6 +23,6 @@ match ExtraWhitespace /\s\+$/ | |||
23 | " define line highlight color | 23 | " define line highlight color |
24 | highlight MultiLineHighlight ctermbg=LightYellow guibg=LightYellow ctermfg=Black guifg=Black | 24 | highlight MultiLineHighlight ctermbg=LightYellow guibg=LightYellow ctermfg=Black guifg=Black |
25 | " highlight the current line | 25 | " highlight the current line |
26 | nnoremap <silent> <leader><leader>h :call matchadd('MultiLineHighlight', '\%'.line('.').'l')<CR> | 26 | nnoremap <silent> <leader>gh :call matchadd('MultiLineHighlight', '\%'.line('.').'l')<CR> |
27 | " clear all the highlighted lines | 27 | " clear all the highlighted lines |
28 | nnoremap <silent> <leader><leader>H :call clearmatches()<CR> | 28 | nnoremap <silent> <leader>gH :call clearmatches()<CR> |