summaryrefslogtreecommitdiffstats
path: root/.vimrc
diff options
context:
space:
mode:
authorGravatar Robin Obůrka <r.oburka@gmail.com> 2014-05-28 23:42:44 +0200
committerGravatar Robin Obůrka <r.oburka@gmail.com> 2014-05-28 23:42:44 +0200
commit652b98647f3018fcbca53e8c559d4ff78ee64912 (patch)
tree4c4ab84bbd85c6f05c572389d3d1df97b0ea5c9f /.vimrc
parentMatch <, > too in vim % command (diff)
downloadvim_sync-652b98647f3018fcbca53e8c559d4ff78ee64912.tar.xz
Add leader and use it in "reselect pasted text" operation
Diffstat (limited to '.vimrc')
-rw-r--r--.vimrc5
1 files changed, 5 insertions, 0 deletions
diff --git a/.vimrc b/.vimrc
index 58b520c..4e351f4 100644
--- a/.vimrc
+++ b/.vimrc
@@ -1,6 +1,8 @@
"Cancel vi compatibility
set nocompatible
+let mapleader=","
+
"Move .swp files to /tmp - SSD will like it!
"set backupdir=/tmp
"set directory=/tmp
@@ -175,6 +177,9 @@ nnoremap <C-j> <C-W>j
nnoremap <C-k> <C-W>k
nnoremap <C-l> <C-W>l
+"reselect just pasted text
+nnoremap <leader>p `[V`]
+
"edit operations
imap <C-F> </><Esc>2F<lywf>f/pF<i
imap <C-D> </><Esc>2F<lywf>f/pF<i<Enter><Enter><Up><Tab>