vim conf updated

This commit is contained in:
Bruno Miguel Silva
2014-08-05 22:32:23 +01:00
parent 813cbeb31c
commit 23aef56211
3 changed files with 21 additions and 5 deletions
-3
View File
@@ -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
+21 -1
View File
@@ -2,6 +2,7 @@ set nocompatible
call pathogen#infect()
call pathogen#runtime_append_all_bundles()
Helptags
let mapleader="§"
@@ -51,7 +52,8 @@ map <C-h> <C-w>h
map <C-j> <C-w>j
map <C-k> <C-w>k
map <C-l> <C-w>l
nmap <silent> <C-n> :set invrelativenumber<CR>
"nmap <silent> <C-n> :set invrelativenumber<CR>
nmap <silent> <C-n> :call SideNumberSwitch()<CR>
nmap <silent> <Leader>h :nohlsearch<CR>
nmap <silent> <Leader>b :BufExplorer<CR>
@@ -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