My Vim

Vim, let me count the ways I love thee. If not for ye I would have fell so short in my text editing.

I use pathogen, which makes installing, updating and especially uninstalling\ plugins a breeze. You can even checkout plugins from Git or Mercurial repos real easy and then when you need to update you just use the client to pull down the latest updates. To use it follow the directions on the site, putting the bundle in .vim/autoload.

I also use the pyflakes-vim plugin, which makes keeping python files clean. Unused imports and variables will be highlighted and explanations given, so you don’t end up with a ton of cruft when you refactor. To install it just get the latest zip file and unzip it into .vim/bundle (if you are using pathogen).

Anyways here is my config.

filetype off
call pathogen#helptags()
call pathogen#runtime_append_all_bundles()

filetype plugin indent on

set nocompatible

set modelines=0

syntax on

set tabstop=4
set shiftwidth=4
set softtabstop=4
set expandtab

set encoding=utf-8
set scrolloff=3
set autoindent
set showmode
set showcmd
set hidden
set wildmenu
set wildmode=list:longest
set visualbell
set ttyfast
set ruler
set backspace=indent,eol,start
set laststatus=2
set relativenumber
set undofile

nnoremap / /\v
vnoremap / /\v

set ignorecase
set smartcase
set gdefault
set incsearch
set showmatch
set hlsearch
nnoremap <leader><space> :noh<cr>
nnoremap <tab> %
nnoremap <tab> %

set nowrap

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

nnoremap j gj
nnoremap k gk

nnoremap <leader>b :buffers<cr>

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>