Last active
August 29, 2015 14:06
-
-
Save arthurio/c962ba5dad5b8e5a338d to your computer and use it in GitHub Desktop.
MacVim conf
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
color wombat | |
hi ColorColumn ctermbg=lightgrey guibg=#474747 | |
" Cursor shape | |
hi Cursor guibg=orange guifg=white | |
set autoindent | |
set smartindent | |
set tabstop=4 | |
set shiftwidth=4 | |
" Don't allow vertical scroll | |
set wrap |
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 hlsearch | |
set go-=T | |
set number | |
set visualbell | |
filetype plugin indent on | |
set showcmd | |
syntax on | |
set backup | |
set backupdir=~/.vim/backup | |
set directory=~/.vim/tmp | |
set expandtab | |
set gfn=M+\ 1m\ regular:h16 | |
map <MiddleMouse> <Nop> | |
imap <MiddleMouse> <Nop> | |
highlight ExtraWhitespace ctermbg=red guibg=red | |
au ColorScheme * highlight ExtraWhitespace guibg=red | |
au BufEnter * match ExtraWhitespace /\s\+$/ | |
au InsertEnter * match ExtraWhitespace /\s\+\%#\@<!$/ | |
au InsertLeave * match ExtraWhiteSpace /\s\+$/ | |
nmap <silent> <C-Up> :wincmd k<CR> | |
nmap <silent> <C-Down> :wincmd j<CR> | |
nmap <silent> <C-Left> :wincmd h<CR> | |
nmap <silent> <C-Right> :wincmd l<CR> | |
" Split lines with ctrl+j | |
nnoremap <NL> i<CR><ESC> | |
ab pdb import pdb; pdb.set_trace() | |
set cc=80 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment