Browse Source

change fold chars to be less painful, fix `H` and `L`

weiyi 12 năm trước cách đây
mục cha
commit
e2e2e153e7
1 tập tin đã thay đổi với 5 bổ sung4 xóa
  1. 5 4
      vim/vimrc

+ 5 - 4
vim/vimrc

@@ -113,6 +113,7 @@ set backspace=eol,start,indent "backspace over everything
 set textwidth=80    " try to keep text within 80 characters
 set colorcolumn=+1  " mark out the limits of the textwidth
 set listchars=trail:_,tab:>.,eol:$
+set fillchars=fold:.
 
 
 """"""""
@@ -260,10 +261,10 @@ nnoremap <silent> <leader>t    :TagbarToggle<CR>
 """"""""""""""""""""""""""""""""""""""""""""""""""""""""
 
 " jump to beginning and end of line easier
-nnoremap H ^
-nnoremap L $
-vnoremap H ^
-vnoremap L $
+nmap H ^
+nmap L $
+vmap H ^
+vmap L $
 
 " Smart way to move between windows
 nnoremap <C-j> <C-W>j