Reorganize vimrc and remove unused mapping

pull/2/head
Bodaniel Jeanes 2011-12-28 21:00:49 -06:00
parent 5e4eb2967c
commit 9574e62f4f
2 changed files with 5 additions and 16 deletions

View File

@ -121,6 +121,9 @@ syntax on
" For when other people use my setup
nmap \ <Leader>
" OS X clipboard when yanking/pasting
set clipboard=unnamed
" May only work in iTerm2 and may have other bad effects,
" but this shows a block in normal mode, and vertical bar
" in insert mode.

View File

@ -21,17 +21,8 @@ set tags=tmp/tags;/,./tmp/tags;/,tags;/,./tags;/
" ,w - write file
nnoremap <silent> ,w :write<CR>
" ,N - toggle line numbers
function! ToggleLineNumbers()
if &number
set nonumber
elseif &relativenumber
set number
else
set relativenumber
endif
endfunction
nnoremap <silent> ,N :call ToggleLineNumbers()<CR>
set pastetoggle=<Leader>p
map <leader>p :set invpaste paste?<CR>
" Theme development help
nmap <F10> :echo "hi<" . synIDattr(synID(line("."),col("."),1),"name") . '> trans<'
@ -43,12 +34,7 @@ map <Leader>vv :edit $MYVIMRC<CR>
map <Leader>gg :edit $MYGVIMRC<CR>
map <Leader>.. :cd ~/.config<CR>:enew<CR>
set pastetoggle=<Leader>p
map <leader>p :set invpaste paste?<CR>
if filereadable(expand('~/.vimrc.local'))
source ~/.vimrc.local
endif
" OS X clipboard when yanking/pasting
set clipboard=unnamed