From 23aef56211955ccae4b943709c2af377f29cd790 Mon Sep 17 00:00:00 2001 From: Bruno Miguel Silva Date: Tue, 5 Aug 2014 22:32:23 +0100 Subject: [PATCH] vim conf updated --- .gitmodules | 3 --- vim/vim/bundle/rope-vim | 1 - vim/vimrc | 22 +++++++++++++++++++++- 3 files changed, 21 insertions(+), 5 deletions(-) delete mode 160000 vim/vim/bundle/rope-vim diff --git a/.gitmodules b/.gitmodules index 7b04419..324fcb2 100644 --- a/.gitmodules +++ b/.gitmodules @@ -28,6 +28,3 @@ [submodule "vim/vim/bundle/ctrlp.vim"] path = vim/vim/bundle/ctrlp.vim url = git://github.com/vim-scripts/ctrlp.vim.git -[submodule "vim/vim/bundle/rope-vim"] - path = vim/vim/bundle/rope-vim - url = git://github.com/klen/rope-vim.git diff --git a/vim/vim/bundle/rope-vim b/vim/vim/bundle/rope-vim deleted file mode 160000 index 0fec204..0000000 --- a/vim/vim/bundle/rope-vim +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 0fec20472a913f8b71ed1ebce2abb4126e2d1909 diff --git a/vim/vimrc b/vim/vimrc index e2b961f..a066593 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -2,6 +2,7 @@ set nocompatible call pathogen#infect() call pathogen#runtime_append_all_bundles() +Helptags let mapleader="ยง" @@ -51,7 +52,8 @@ map h map j map k map l -nmap :set invrelativenumber +"nmap :set invrelativenumber +nmap :call SideNumberSwitch() nmap h :nohlsearch nmap b :BufExplorer @@ -129,6 +131,24 @@ vim.command("return 1") EOF endfunction +function! SideNumberSwitch() +python << EOF +import vim +cw = vim.current.window +relative = cw.options['relativenumber'] +number = cw.options['number'] +if relative: + cw.options['relativenumber'] = False + cw.options['number'] = True +elif number: + cw.options['number'] = False +else: + cw.options['relativenumber'] = True + cw.options['number'] = False +vim.command("return 1") +EOF +endfunction + let g:bufExplorerSortBy='fullpath' let g:bufExplorerSplitOutPathName=0 let g:bufExplorerShowRelativePath=1