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 " For when other people use my setup
nmap \ <Leader> nmap \ <Leader>
" OS X clipboard when yanking/pasting
set clipboard=unnamed
" May only work in iTerm2 and may have other bad effects, " May only work in iTerm2 and may have other bad effects,
" but this shows a block in normal mode, and vertical bar " but this shows a block in normal mode, and vertical bar
" in insert mode. " in insert mode.

View File

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