blob: de1ec5b09e727ce0ece2fc46f0cb1d56101fc9be (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
# configure vim
vimrc=$HOME/.vimrc
vim_conf_sane_defaults(){
cat >>$vimrc<<EOF
set nocompatible
filetype plugin indent on
syntax on
set vb
set foldenable
set foldmethod=syntax
set ignorecase
set incsearch
set showmatch
set matchtime=3
set hlsearch
set backupdir=~/.vim/backup
set directory=~/.vim/backup
inoremap <F1> <ESC>
nnoremap <F1> <ESC>
vnoremap <F1> <ESC>
set wildignore=*.o,*.obj,*.bak,*.exe,*.os
colorscheme darkblue
set background=dark
set number
set mouse=
set shiftwidth=2
set tabstop=2
set et
set sw=2
set smarttab
set autoindent
set backspace=indent,eol,start
set nocp
EOF
}
|