85 lines
1.7 KiB
VimL
85 lines
1.7 KiB
VimL
" 42 cluster defaults
|
||
syntax on
|
||
syntax enable
|
||
set tabstop=4
|
||
|
||
set background=dark
|
||
colorscheme dichromatic
|
||
set shiftwidth=4
|
||
set autoindent
|
||
set smartindent
|
||
set cursorline
|
||
" set cursorcolumn
|
||
set relativenumber
|
||
set laststatus=2
|
||
set showcmd
|
||
|
||
set noswapfile
|
||
set hlsearch
|
||
|
||
set ruler
|
||
|
||
filetype plugin on
|
||
filetype indent on
|
||
|
||
set autoread
|
||
|
||
set so=7
|
||
|
||
" set paste
|
||
|
||
" Ignore case when searching
|
||
set ignorecase
|
||
|
||
" When searching try to be smart about cases
|
||
set smartcase
|
||
|
||
" Highlight search results
|
||
set hlsearch
|
||
|
||
" Makes search act like search in modern browsers
|
||
set incsearch
|
||
|
||
" Don't redraw while executing macros (good performance config)
|
||
set lazyredraw
|
||
|
||
" Show matching brackets when text indicator is over them
|
||
set showmatch
|
||
|
||
" Ignore compiled files
|
||
set wildignore=*.o,*~,*.pyc
|
||
if has("win16") || has("win32")
|
||
set wildignore+=.git\*,.hg\*,.svn\*
|
||
else
|
||
set wildignore+=*/.git/*,*/.hg/*,*/.svn/*,*/.DS_Store
|
||
endif
|
||
|
||
" Put plugins and dictionaries in this dir (also on Windows)
|
||
let vimDir = '$HOME/.vim'
|
||
|
||
if stridx(&runtimepath, expand(vimDir)) == -1
|
||
" vimDir is not on runtimepath, add it
|
||
let &runtimepath.=','.vimDir
|
||
endif
|
||
|
||
" Keep undo history across sessions by storing it in a file
|
||
if has('persistent_undo')
|
||
let myUndoDir = expand(vimDir . '/undodir')
|
||
" Create dirs
|
||
call system('mkdir ' . vimDir)
|
||
call system('mkdir ' . myUndoDir)
|
||
let &undodir = myUndoDir
|
||
set undofile
|
||
endif
|
||
|
||
" Return to last edit position when opening files (You want this!)
|
||
autocmd BufReadPost *
|
||
\ if line("'\"") > 0 && line("'\"") <= line("$") |
|
||
\ exe "normal! g`\"zz" |
|
||
\ endif
|
||
|
||
let @w='gg^/START
|
||
cc/* ////Go*/ ////<C-o>'
|
||
let @q='gg^/\/\/\/\/
|
||
cc#define STARTndd<C-o>'
|
||
|
||
let @c='G:Stdheader
|
||
o
|
||
#define START
|
||
#include <stdio.h>
|
||
|
||
int main(void)
|
||
{
|
||
}O
|
||
return (0);k'
|