summaryrefslogtreecommitdiffstats
path: root/vimrc
diff options
context:
space:
mode:
authorMitsuo Tokumori <[email protected]>2020-02-03 11:23:56 -0600
committerMitsuo Tokumori <[email protected]>2020-02-03 11:23:56 -0600
commitcbf559a2a9dfaee98e189e04267ad5c176ffabf8 (patch)
treeda8081fe7cb5f239f968f3489c906289f940253f /vimrc
parent355c9967d671cc4c5f3c2a08eb3cc8d55df2b5a9 (diff)
downloaddotfiles-cbf559a2a9dfaee98e189e04267ad5c176ffabf8.tar.gz
dotfiles-cbf559a2a9dfaee98e189e04267ad5c176ffabf8.tar.bz2
dotfiles-cbf559a2a9dfaee98e189e04267ad5c176ffabf8.zip
DE settings and config files, added a "script"
Diffstat (limited to 'vimrc')
-rw-r--r--vimrc5
1 files changed, 5 insertions, 0 deletions
diff --git a/vimrc b/vimrc
index 849330d..c79e5c8 100644
--- a/vimrc
+++ b/vimrc
@@ -120,6 +120,11 @@ set printoptions=paper:A4,duplex:long
"FIX: this shit :(
" digr :) 0x263a :( 0x2639
+" yields result of previous WORD arithmetic expression (from the Vim wiki)
+"inoremap <C-A> <C-O>yiW<End>=<C-R>=<C-R>0<CR>
+" Replaces previous WORD arithmetic expression with result
+inoremap <C-A> <Esc>diWi<C-R>=<C-R>"<CR>
+
" iVim
" ====
" TODO: map :h _argument_ to :h _argument_ <C-w>L<C-w>_ This makes help window