Created
December 7, 2012 20:19
-
-
Save shime/4236197 to your computer and use it in GitHub Desktop.
my vimrc and gvimrc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"" Used for codeschool color theme | |
color codeschool | |
set guioptions-=T " Removes top toolbar | |
set guioptions-=r " Removes right hand scroll bar | |
set go-=L " Removes left hand scroll bar | |
autocmd User Rails let b:surround_{char2nr('-')} = "<% \r %>" " displays <% %> correctly | |
" highlight lines longer than 80 chars | |
highlight OverLength ctermbg=red ctermfg=white guibg=#592929 | |
match OverLength /\%81v.\+/ | |
set list listchars=tab:→\ ,trail:· |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set nocompatible " Choose no compatiblity with legacy vi | |
syntax enable | |
set encoding=utf-8 | |
set showcmd | |
filetype plugin indent on | |
"" Whitespace | |
set nowrap " don't wrap lines | |
set tabstop=2 shiftwidth=2 " a tab is two spaces | |
set expandtab " use spaces, not tabs | |
set backspace=indent,eol,start " backspace through everything in insert mode | |
"" Searching | |
set hlsearch " highlight matches | |
set incsearch " incremental searching | |
set ignorecase " searches are case insesitive... | |
set smartcase " ...unless they contain at least one capital letter | |
let mapleader="," " map leader to , instead of to slash | |
"" exiting with ctrl+q | |
map <C-Q> :qa!<CR> | |
"" saving with ctrl+s | |
map <C-S> :w<CR> | |
" easier navigation between split windows | |
nnoremap <c-j> <c-w>j | |
nnoremap <c-k> <c-w>k | |
set noswapfile " no swap files | |
" super fast Ack | |
map <Leader>a :Ack<CR> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment