.dotfiles/vimrc

65 lines
1.5 KiB
VimL
Raw Normal View History

set nocompatible " be iMproved, required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
2014-06-26 22:15:45 +00:00
runtime! autoload/vundle.vim
if exists("*vundle#begin")
2014-06-26 22:12:28 +00:00
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
2014-06-26 22:12:28 +00:00
" let Vundle manage Vundle, required
Plugin 'gmarik/Vundle.vim'
2014-06-26 22:12:28 +00:00
"Other plugins
Plugin 'tomtom/tlib_vim'
Plugin 'MarcWeber/vim-addon-mw-utils'
Plugin 'garbas/vim-snipmate'
Plugin 'honza/vim-snippets'
Plugin 'alfredodeza/coveragepy.vim'
2014-06-26 22:12:28 +00:00
" All of your Plugins must be added before the following line
call vundle#end() " required
endif
set background=dark
set autoindent
set number
set tabstop=4
set softtabstop=4
set shiftwidth=4
set incsearch
set hlsearch
set expandtab
set foldmethod=indent
set nofoldenable
set foldlevel=99
set autowrite
set cmdheight=2
2014-07-27 16:47:21 +00:00
set scrolloff=7
set wildmode=longest,list,full
set wildmenu
set wildignorecase
2014-04-03 22:35:28 +00:00
set ignorecase
2014-04-03 21:40:54 +00:00
set smartcase
syntax on
filetype plugin indent on
2015-03-05 07:31:29 +00:00
imap jk <Esc>
2015-03-12 11:24:08 +00:00
map <F2> :set nonumber!<CR>
"Change working dir to current dir
:cd %:p:h
"execute Makefile
:map <F9> :! ~/.vim/custom_make.sh<cr>
:imap <F9> <Esc><F9>
"Split view if multiple files are opened
if argc() == 2
silent vertical all
endif
2014-01-24 11:56:52 +00:00
"Map <F8> on python files
au FileType python :map <F10> :Coveragepy show<cr>
au FileType python :imap <F10> <Esc><F10>
2014-02-02 18:14:25 +00:00
"Map <F9> on Latex files
au FileType tex :map <F9> :! pdflatex %:t; rm *.aux; rm *.log<cr>