summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--.gitmodules3
-rw-r--r--.vimrc27
m---------bundle/vim-gitgutter0
3 files changed, 18 insertions, 12 deletions
diff --git a/.gitmodules b/.gitmodules
index 87873438..e7e9439c 100644
--- a/.gitmodules
+++ b/.gitmodules
@@ -55,3 +55,6 @@
 [submodule "bundle/vim-commentary"]
 	path = bundle/vim-commentary
 	url = https://github.com/tpope/vim-commentary.git
+[submodule "bundle/vim-gitgutter"]
+	path = bundle/vim-gitgutter
+	url = https://github.com/airblade/vim-gitgutter.git
diff --git a/.vimrc b/.vimrc
index 653459f0..efda8070 100644
--- a/.vimrc
+++ b/.vimrc
@@ -99,12 +99,11 @@ let g:syntastic_auto_loc_list=2
 nnoremap ' `
 nnoremap ` '
 
-" Clear search highlights
-nmap <silent> <leader>n :silent :nohlsearch<CR>
+nmap <leader>n :nohlsearch<CR>
 
-nmap <silent> <leader>s :set list!<CR>
+nmap <leader>s :set list!<CR>
 
-nmap <silent> <leader>z :set spell!<CR>
+nmap <leader>z :set spell!<CR>
 
 nmap <leader>p "+p
 nmap <leader>P "+P
@@ -116,18 +115,22 @@ nmap <leader>D "+D
 nmap Y y$
 
 " Insert hard tab
-imap <silent> <S-tab> <C-v><tab>
+imap <S-tab> <C-v><tab>
 
 nmap Q gq
 
-nmap <silent> <leader>b :CtrlPBuffer<CR>
-nmap <silent> <leader>e :CtrlP<CR>
+nmap <leader>b :CtrlPBuffer<CR>
+nmap <leader>e :CtrlP<CR>
 
-nmap <silent> <leader>gs :Gstatus<CR>
-nmap <silent> <leader>gc :Gcommit<CR>
-nmap <silent> <leader>gp :Git push<CR>
+nmap <leader>gs :Gstatus<CR>
+nmap <leader>gc :Gcommit<CR>
+nmap <leader>gp :Git push<CR>
 
-nnoremap <leader>u :GundoToggle<CR>
+nmap <leader>gg :GitGutterToggle<CR>
+nmap <leader>gh <Plug>GitGutterNextHunk
+nmap <leader>gH <Plug>GitGutterPrevHunk
+
+nmap <leader>u :GundoToggle<CR>
 
 " Toggle relative/absolute numbers
 function! NumberToggle()
@@ -138,7 +141,7 @@ function! NumberToggle()
   endif
 endfunc
 
-nnoremap <silent> <C-n> :call NumberToggle()<cr>
+nmap <C-n> :call NumberToggle()<CR>
 
 " Custom commands
 command! W :w
diff --git a/bundle/vim-gitgutter b/bundle/vim-gitgutter
new file mode 160000
+Subproject ff031d022f2123353bc93a3aa97290287c10a28
'/catgirl/commit/ui.c?h=1.2&id=ee0df2846e7eebf0f91e9fd05f400ef57a554290&follow=1'>Reset attrs after addIRCJune McEnroe Otherwise the marker inherits whatever was left on. 2018-08-07Add tab complete UIJune McEnroe This definitely needs refactoring. 2018-08-07Implement cycling tab completeJune McEnroe Not properly hooked up to the UI yet. 2018-08-07Mark log when scrolling upJune McEnroe 2018-08-07Remove extraneous slash from unrecognized commandJune McEnroe 2018-08-07Highlight and beep pingsJune McEnroe 2018-08-07Factor out allocating conversion between wcs and mbsJune McEnroe 2018-08-07Match commands case-insensitivelyJune McEnroe Also include the slash in their names so that they can be added to tab-complete later. 2018-08-07Convert input to multibyte before handlingJune McEnroe 2018-08-07Populate tab-complete listJune McEnroe 2018-08-07Fix /me formatting side-effectsJune McEnroe NEVER pass side-effects to a macro. 2018-08-07Define ui.c BUF_LEN with enumJune McEnroe 2018-08-07Hack clang into checking uiFmt format stringsJune McEnroe 2018-08-07Handle PART and QUIT without messagesJune McEnroe 2018-08-07Make safe filling the who bufferJune McEnroe 2018-08-07Add reverse and reset IRC formatting codesJune McEnroe 2018-08-06Rewrite line editing again, add formattingJune McEnroe 2018-08-06Fix allocation size in vaswprintfJune McEnroe This is so embarrassing. It only started crashing once it had strings that were long enough, and then it took me so long to notice this mistake. I was worried I was still doing va_list wrong somehow. 2018-08-06Implement word wrappingJune McEnroe 2018-08-06Use wchar_t strings for all of UIJune McEnroe vaswprintf is a nightmare. 2018-08-06Rename line editing functionsJune McEnroe 2018-08-05Initialize all possible color pairsJune McEnroe This is actually possible with use_default_colors! 2018-08-05Refactor color initializationJune McEnroe 2018-08-05Add ^L redrawJune McEnroe 2018-08-05Use 16 colors if availableJune McEnroe Fall back to using bold if there are only 8 colors. This also allowed bright background colors in 16-color terminals. I must port this system to torus. I'll be able to remove the awful termcap patch hack. 2018-08-05Limit parsed colors to number of mIRC colorsJune McEnroe Oh boy that's embarrassing. 2018-08-04Show source link on exitJune McEnroe 2018-08-04Implement line editing, scrollingJune McEnroe Don't really have a way to implement the M-* keys, and currently missing C-w. 2018-08-04Handle /topicJune McEnroe