Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Adds my vim customizations

  • Loading branch information...
commit 5c7f762529485ec205252b243e2c107d39cc9832 1 parent 93eb93f
Andy Lindeman authored

Showing 2 changed files with 78 additions and 0 deletions. Show diff stats Hide diff stats

  1. +71 0 vimrc.after
  2. +7 0 vimrc.before
71 vimrc.after
... ... @@ -0,0 +1,71 @@
  1 +" More sane searching
  2 +nnoremap / /\v
  3 +vnoremap / /\v
  4 +set ignorecase
  5 +set smartcase
  6 +set incsearch
  7 +set showmatch
  8 +set hlsearch
  9 +
  10 +" <leader><space> clears search
  11 +nnoremap <leader><space> :noh<cr>
  12 +
  13 +" <leader><leader> toggles between files
  14 +nnoremap <leader><leader> <c-^>
  15 +
  16 +" <tab> matches bracket pairs
  17 +nnoremap <tab> %
  18 +vnoremap <tab> %
  19 +
  20 +" show colored column at 80
  21 +set colorcolumn=80
  22 +
  23 +" Disable arrow keys
  24 +"nnoremap <up> <nop>
  25 +"nnoremap <down> <nop>
  26 +"nnoremap <left> <nop>
  27 +"nnoremap <right> <nop>
  28 +"inoremap <up> <nop>
  29 +"inoremap <down> <nop>
  30 +"inoremap <left> <nop>
  31 +"inoremap <right> <nop>
  32 +
  33 +" j and k move by screen lines
  34 +nnoremap j gj
  35 +nnoremap k gk
  36 +
  37 +" I never really want to hit F1
  38 +inoremap <F1> <ESC>
  39 +nnoremap <F1> <ESC>
  40 +vnoremap <F1> <ESC>
  41 +
  42 +" shortcut for :Ack
  43 +nnoremap <leader>a :Ack
  44 +
  45 +" <leader>v selects text that was just pasted
  46 +nnoremap <leader>v V`]
  47 +
  48 +" <leader>w opens a vertical split window and switches to it
  49 +nnoremap <leader>w <C-w>v<C-w>l
  50 +
  51 +" moving among splits
  52 +nnoremap <C-h> <C-w>h
  53 +nnoremap <C-j> <C-w>j
  54 +nnoremap <C-k> <C-w>k
  55 +nnoremap <C-l> <C-w>l
  56 +
  57 +" autosave
  58 +au FocusLost * :wa
  59 +
  60 +colorscheme solarized
  61 +set transparency=6
  62 +
  63 +" no menubar
  64 +set guioptions=-m
  65 +
  66 +let os = substitute(system('uname'), "\n", "", "")
  67 +if os == "Linux"
  68 + set guifont=Inconsolata\ 14
  69 +else
  70 + set guifont=Inconsolata:h14
  71 +endif
7 vimrc.before
... ... @@ -0,0 +1,7 @@
  1 +" Thanks http://stevelosh.com/blog/2010/09/coming-home-to-vim/
  2 +
  3 +set ttyfast
  4 +set wildmenu
  5 +
  6 +" Remap leader to comma
  7 +let mapleader = ","

0 comments on commit 5c7f762

Please sign in to comment.
Something went wrong with that request. Please try again.