summaryrefslogtreecommitdiffstats
path: root/.vimrc
diff options
context:
space:
mode:
authorGravatar Robin Obůrka <r.oburka@gmail.com> 2014-06-09 16:25:39 +0200
committerGravatar Robin Obůrka <r.oburka@gmail.com> 2014-06-09 16:25:39 +0200
commitb67e0995a5da29497d82ddfc151fd084730fef5e (patch)
tree15ee2dd668cf7f4914f48c9612eacf864d361574 /.vimrc
parentAdd autocommand section. Do spell check in git COMMIT_EDITMSG files. (diff)
downloadvim_sync-b67e0995a5da29497d82ddfc151fd084730fef5e.tar.xz
Add textwidth into COMMIT_MESSAGE buffer
Diffstat (limited to '.vimrc')
-rw-r--r--.vimrc3
1 files changed, 2 insertions, 1 deletions
diff --git a/.vimrc b/.vimrc
index 13c7137..e846a95 100644
--- a/.vimrc
+++ b/.vimrc
@@ -110,7 +110,7 @@ highlight RedundantSpaces ctermbg=red guibg=red
" =======================
" autocommand definitions
" =======================
-au BufRead *COMMIT_EDITMSG set spell spelllang=en
+au BufRead *COMMIT_EDITMSG set spell spelllang=en textwidth=80
" ===========
" key hacking
@@ -177,6 +177,7 @@ nnoremap <C-k> <C-W>k
nnoremap <C-l> <C-W>l
"reselect just pasted text
+"the same thing does gv command in normal mode
nnoremap <leader>p `[V`]
"edit operations