config/vimrc

66 lines
1.2 KiB
VimL
Raw Normal View History

2016-02-04 03:34:00 +00:00
"set nocompatible
"filetype off
"
"" set the runtime path to include Vundle and initialize
"set rtp+=~/.vim/bundle/Vundle.vim
"call vundle#begin()
"
"" let Vundle manage Vundle, required
"Plugin 'gmarik/Vundle.vim'
"
"" Plugin 'scala.vim'
"" Plugin 'vim-scala'
"Bundle 'derekwyatt/vim-scala'
"" Plugin 'git@github.com:Valloric/YouCompleteMe.git'
"
"call vundle#end()
"
"filetype plugin indent on
2014-09-26 03:17:00 +00:00
filetype plugin indent on
2011-06-14 00:42:53 +00:00
" Tabbing
2016-02-04 03:34:00 +00:00
function! SetupTabbing()
set tabstop=2
set expandtab
set shiftwidth=2
set softtabstop=2
set sw=2
set autoindent
set smartindent
set smarttab
endfunction
command! -bar SetupTabbing call SetupTabbing()
SetupTabbing
2011-06-14 00:42:53 +00:00
" Window settings
set winminwidth=20
set winwidth=100
set winheight=20
2011-06-28 00:00:15 +00:00
" Syntax highlighting
syntax on
" Wrapping settings
2011-06-14 00:42:53 +00:00
set nowrap " nowrap makes the lines not wrap
" set wrap " wrap makes the lines wrap
set linebreak
" keeps lines below the cursor
set scrolloff=2
" makes LaTeX use spell checking, word wrapping
autocmd FileType tex set wrap spell
autocmd FileType make set noexpandtab
2013-05-10 20:51:56 +00:00
autocmd FileType *gitconfig set noexpandtab
2016-02-04 03:34:00 +00:00
autocmd FileType python SetupTabbing
2014-09-26 03:17:00 +00:00
" set term=xterm
let java_allow_cpp_keywords = 1
2013-04-03 03:51:53 +00:00
set ruler
2013-06-06 21:36:06 +00:00
set number
2014-09-26 03:17:00 +00:00
set backspace=indent,eol,start
set hlsearch
2013-04-03 03:51:53 +00:00