changeset 422:6931aab79583

Added relative numbers toggle
author unexist
date Mon, 26 Mar 2012 18:33:17 +0200
parents cb7c2d4171cb
children 18adfb45952e
files .vimrc
diffstat 1 files changed, 16 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/.vimrc	Sat Mar 17 00:19:47 2012 +0100
+++ b/.vimrc	Mon Mar 26 18:33:17 2012 +0200
@@ -83,6 +83,18 @@
 imap <F12> <C-O><F12>
 set pastetoggle=<F12>
 
+" Move split
+nmap <silent> <A-Up> :wincmd k<CR>
+nmap <silent> <A-Down> :wincmd j<CR>
+nmap <silent> <A-Left> :wincmd h<CR>
+nmap <silent> <A-Right> :wincmd l<CR>
+
+nmap <silent> <A-k> :wincmd k<CR>
+nmap <silent> <A-j> :wincmd j<CR>
+nmap <silent> <A-h> :wincmd h<CR>
+nmap <silent> <A-l> :wincmd l<CR>
+
+
 " Brackets
 "inoremap {      {}<Left>
 "inoremap {<CR>  {<CR>}<Tab><Esc>O
@@ -100,3 +112,7 @@
 
 " Match
 match ErrorMsg '\%>80v.\+'
+
+" Line numbering
+:au InsertEnter * :set number
+:au InsertLeave * :set relativenumber