Posts Tagged ‘VIM’

More powerful vim

Posted: March 19, 2011 in VIM
Tags:

Try the code below, you’ll get good luck!

for i in ~/.vim ~/.vimrc ~/.gvimrc; do [ -e $i ] && mv $i $i.old; done
git clone git://github.com/hujinpu/janus.git ~/.vim
cd ~/.vim
rake

Wait a moment or drink a cup of coffee 🙂

mvim ~/.vimrc.local

copy and paste:

inoremap <Esc> <nop>
inoremap jj <ESC>

nnoremap <leader><space> :noh<cr>

set statusline=%F%m%r%h%w%=%{fugitive#statusline()} (%{&ff}/%Y) (line %l/%L, col %c)

" Searching
nnoremap / /v
vnoremap / /v

set textwidth=79
set formatoptions=qrn1
set colorcolumn=85

nnoremap <up> <nop>
nnoremap <down> <nop>
nnoremap <left> <nop>
nnoremap <right> <nop>
inoremap <up> <nop>
inoremap <down> <nop>
inoremap <left> <nop>
inoremap <right> <nop>

:Edit ~/.gvimrc.local

copy and paste:

if has("gui_macvim")
  set guifont=Menlo:h18
endif

Goooooooooooood Luck!