More powerful vim

Posted: March 19, 2011 in VIM

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:// ~/.vim
cd ~/.vim

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

Goooooooooooood Luck!

  1. really,really nice to me ! THX

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s