Created
August 30, 2012 12:56
-
-
Save klmr/3527961 to your computer and use it in GitHub Desktop.
.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
" Basic settings {{{ | |
set nocompatible | |
set nobackup | |
set ignorecase | |
set smartcase | |
set incsearch | |
set hlsearch | |
"set guifont=Consolas:h14 | |
" Let's have a bit of fun! | |
set guifont=P22\ Typewriter:h16 | |
set antialias | |
set shiftwidth=4 | |
set tabstop=4 | |
set softtabstop=4 | |
set expandtab | |
set ruler | |
set cursorline | |
set nowrap | |
set go-=T | |
set lines=50 | |
"set columns=120 | |
" For a wide font such as set above, use: | |
set columns=90 | |
set autoindent | |
set smartindent | |
filetype on | |
filetype plugin on | |
filetype indent on | |
set foldmethod=marker | |
set foldcolumn=2 | |
set undofile | |
set undodir=~/.vim/undo | |
" }}} | |
" Color scheme {{{ | |
colorscheme macvim | |
if &background == "dark" | |
highlight normal guibg=black | |
"set transparency=15 | |
endif | |
" }}} | |
" Behaviour {{{ | |
nnoremap <silent> <leader>v V`] | |
vnoremap < <gv | |
vnoremap > >gv | |
vnoremap = =gv | |
" }}} | |
" Spelling {{{ | |
set spell | |
set spelllang=en_gb | |
" }}} | |
" Filetype-specific settings {{{ | |
autocmd FileType html set wrap linebreak | |
autocmd BufNewFile,BufRead *.txt set wrap linebreak | |
autocmd BufRead README* set wrap linebreak | |
autocmd FileType markdown set wrap linebreak | |
autocmd FileType cpp nnoremap <silent> <leader>b :make %:t:r<CR> | |
autocmd FileType cpp nmap <silent> <Leader>ol :FSRight<CR> | |
autocmd FileType cpp inoremap {<CR> {<CR>}<Esc>O | |
let g:tex_flavor = "latex" | |
autocmd FileType tex set wrap linebreak | |
autocmd BufNewFile,BufRead *.md set filetype=markdown | |
autocmd FileType python set omnifunc=pythoncomplete#Complete | |
" }}} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment