summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Linehan <jlinehan@pathwaysystems.com>2013-12-19 12:04:34 -0500
committerJason Linehan <jlinehan@pathwaysystems.com>2013-12-19 12:04:34 -0500
commitea98755a1696f4909bc6a360293c96fbe01a2249 (patch)
tree8b4c9126e00b958793a237e9562f3849b48fbf1f
parent2c1d155cffbbc5ce2483f048a68593ccc06a603e (diff)
parent1105426c56a6544432e4a8f459d069292e198253 (diff)
Merge branch 'master' of linehan.me:ovim
Conflicts: default.vimrc
-rw-r--r--default.vimrc15
1 files changed, 15 insertions, 0 deletions
diff --git a/default.vimrc b/default.vimrc
index 6c3b82f..a409a66 100644
--- a/default.vimrc
+++ b/default.vimrc
@@ -67,6 +67,10 @@
set showmatch " Jump to matching bracket
set matchtime=3 " Duration of matching bracket highlight
+" Folding
+" `````````````````````````````````````````````````````````````````````````````
+ set foldmethod=indent
+
" Temporary files (.swp)
" `````````````````````````````````````````````````````````````````````````````
" Automatically create .backup directory, writable by the group.
@@ -124,6 +128,7 @@
noremap <Leader>p <Esc>:call <SID>CycleTabStop()<CR>
noremap <Leader>s :Gstatus<CR>
noremap <Leader>c :Gcommit<CR>
+
" =============================================================================
@@ -251,7 +256,17 @@ endfunction
" Define a command to make it easier to use
command! -nargs=+ Each call Each(<q-args>)
+""
+" R()
+" `````
+" Replace the word under the cursor with another string
+" @replace_with: Word to replace <cword>
+function! R(replace_with)
+ execute ":%s/" . expand("<cword>") . "/" . a:replace_with . "/gc"
+endfunction
+" Define a command to make it easier to use
+command! -nargs=+ R call R(<q-args>)
" =============================================================================