vim conf updated
This commit is contained in:
@@ -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
|
||||
|
||||
Submodule vim/vim/bundle/rope-vim deleted from 0fec20472a
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user