about summary refs log tree commit diff
path: root/vim
diff options
context:
space:
mode:
authorBen Harris <ben@tilde.team>2019-08-13 17:06:27 -0400
committerBen Harris <ben@tilde.team>2019-08-13 17:06:27 -0400
commit22ee872d525144f66540bc78e2d6032b570f87ed (patch)
tree45438810d759f0ee2c697679cdda9bd5e9c352f7 /vim
parentd38bddff8a01dc59aa828fb461f6a4e5f196d8f6 (diff)
some vim tips from begriffs' vim history post
Diffstat (limited to 'vim')
m---------vim/.vim/bundle/quick-scope0
m---------vim/.vim/bundle/vim-fugitive0
m---------vim/.vim/bundle/vim-gitgutter0
m---------vim/.vim/bundle/vim-surround0
-rw-r--r--vim/.vimrc21
5 files changed, 21 insertions, 0 deletions
diff --git a/vim/.vim/bundle/quick-scope b/vim/.vim/bundle/quick-scope
-Subproject 10029708ee50d300d4b5e3475610210d4b29c74
+Subproject 994576d997a52b4c7828149e9f1325d1c4691ae
diff --git a/vim/.vim/bundle/vim-fugitive b/vim/.vim/bundle/vim-fugitive
-Subproject bd0b87d36ad80e8acd94f22028d15ebb441b1c2
+Subproject 08a9a45dbc3cce0af3f246013240d71aa2519ac
diff --git a/vim/.vim/bundle/vim-gitgutter b/vim/.vim/bundle/vim-gitgutter
-Subproject 7eeea63e62b1cc088a75c7a7c244fc774d82e5b
+Subproject 71bbe88525c0b36f4f3843a2a577442bbd7fd95
diff --git a/vim/.vim/bundle/vim-surround b/vim/.vim/bundle/vim-surround
-Subproject 597068870b8f093a8b2d11536c62ff31222ee8d
+Subproject fab8621670f71637e9960003af28365129b1dfd
diff --git a/vim/.vimrc b/vim/.vimrc
index b2736ac..beef3d9 100644
--- a/vim/.vimrc
+++ b/vim/.vimrc
@@ -12,6 +12,18 @@ set smarttab
 set tabstop=4
 set shiftwidth=4
 set expandtab
+
+" swap settings
+set swapfile
+set directory^=~/.vim/swap//
+set writebackup
+set nobackup
+set backupcopy=auto
+" patch required to honor double slash
+if has("patch-8.1.0251")
+    " consolidate writebackups
+    set backupdir^=~/.vim/backup//
+end
 set undofile
 set undodir=~/.vim/undodir
 
@@ -38,6 +50,15 @@ set tabpagemax=50
 noremap 0 ^
 noremap ^ 0
 
+" shortcuts for 3way merge
+map <Leader>1 :diffget LOCAL<CR>
+map <Leader>2 :diffget BASE<CR>
+map <Leader>3 :diffget REMOTE<CR>
+
+if has("patch-8.1.0360")
+    set diffopt+=internal,algorithm:patience
+end
+
 inoremap <C-U> <C-G>u<C-U>
 
 cmap w!! w !sudo tee % >/dev/null