60 lines
1.5 KiB
VimL
60 lines
1.5 KiB
VimL
" Use Vim settings, rather then Vi settings (much better!).
|
|
" This must be first, because it changes other options as a side effect.
|
|
set nocompatible
|
|
|
|
"set tabstop=4
|
|
"set shiftwidth=4
|
|
|
|
" allow backspacing over everything in insert mode
|
|
set backspace=indent,eol,start
|
|
|
|
set history=50 " keep 50 lines of command line history
|
|
set ruler " show the cursor position all the time
|
|
set showcmd " display incomplete commands
|
|
"set incsearch " do incremental searching
|
|
|
|
" Don't use Ex mode, use Q for formatting
|
|
"map Q gq
|
|
|
|
" This is an alternative that also works in block mode, but the deleted
|
|
" text is lost and it only works for putting the current register.
|
|
"vnoremap p "_dp
|
|
|
|
" Switch syntax highlighting on, when the terminal has colors
|
|
" Also switch on highlighting the last used search pattern.
|
|
"if &t_Co > 2 || has("gui_running")
|
|
" syntax on
|
|
" set hlsearch
|
|
"endif
|
|
|
|
" Enable file type detection.
|
|
" Use the default filetype settings, so that mail gets 'tw' set to 72,
|
|
" 'cindent' is on in C files, etc.
|
|
" Also load indent files, to automatically do language-dependent indenting.
|
|
filetype plugin on
|
|
filetype indent on
|
|
|
|
set autoindent " always set autoindenting on
|
|
set encoding=utf-8
|
|
set fileencoding=utf-8
|
|
|
|
set showmode
|
|
set backspace=indent,eol,start
|
|
set sm
|
|
syntax on
|
|
set hlsearch
|
|
set nobackup
|
|
set ts=4
|
|
set sw=4
|
|
set tw=0
|
|
set expandtab
|
|
|
|
set cryptmethod=blowfish
|
|
|
|
|
|
au BufRead,BufNewFile *.pde set filetype=arduino
|
|
au BufRead,BufNewFile *.ino set filetype=arduino
|
|
|
|
" pathogen
|
|
execute pathogen#infect()
|