summaryrefslogtreecommitdiffstats
path: root/.vimrc
diff options
context:
space:
mode:
authorJan Pokorný <jpokorny@redhat.com>2013-04-11 16:12:46 +0200
committerJan Pokorný <jpokorny@redhat.com>2013-04-11 16:12:46 +0200
commit23297186eb781079c4bf576e6563b62ec6fd9a16 (patch)
treef3e9aa9f2b05aca4a3e4de46fb6fb8918efdcd62 /.vimrc
parent37075c68be687766c23b0c427c6be80f5981a252 (diff)
downloaddotfiles-23297186eb781079c4bf576e6563b62ec6fd9a16.tar.gz
dotfiles-23297186eb781079c4bf576e6563b62ec6fd9a16.tar.xz
dotfiles-23297186eb781079c4bf576e6563b62ec6fd9a16.zip
vim config: add "start on 1st line of git commit message" tweak
Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
Diffstat (limited to '.vimrc')
-rw-r--r--.vimrc7
1 files changed, 7 insertions, 0 deletions
diff --git a/.vimrc b/.vimrc
index d9b93b1..d268533 100644
--- a/.vimrc
+++ b/.vimrc
@@ -34,3 +34,10 @@ set t_Co=256 " Explicitly tell vim that the terminal supports 256 colors
" tagbar
nmap <F8> :TagbarToggle<CR>
let NERDTreeIgnore = ['\.pyc$', '\.tar\.gz$']
+
+"
+" others
+"
+
+" http://vim.wikia.com/wiki/Always_start_on_first_line_of_git_commit_message
+au FileType gitcommit au! BufEnter COMMIT_EDITMSG call setpos('.', [0, 1, 1, 0])