Created
March 8, 2014 02:56
-
-
Save wizjin/9424618 to your computer and use it in GitHub Desktop.
Vim configure
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""""""""""""""""""""""""""""""""""""""" | |
" Vim configure | |
" | |
" > .vimrc - http://amix.dk/vim/vimrc.html | |
" info -> :) | |
" | |
" > peaksea.vim - http://www.vim.org/scripts/script.php?script_id=760 | |
" info -> peaksea collor scheme | |
" | |
" > Commond-T - http://www.vim.org/scripts/script.php?script_id=3025 | |
" info -> :help Command-T | |
" | |
"""""""""""""""""""""""""""""""""""""""" | |
"""""""""""""""""""""""""""""""""""""""" | |
" General | |
"""""""""""""""""""""""""""""""""""""""" | |
set nocompatible | |
" Sets how many lines of history Vim has to remember | |
set history=500 | |
" Enable filetype plugin | |
filetype plugin on | |
filetype indent on | |
" Set to auto read when a file is changed from the outside | |
set autoread | |
"""""""""""""""""""""""""""""""""""""""" | |
" Vim user interface | |
"""""""""""""""""""""""""""""""""""""""" | |
set ruler " Always show current psoition | |
set cmdheight=2 " The commandbar height | |
set hidden " Change buffer - without saving | |
" Set backspace | |
set backspace=eol,start,indent | |
set whichwrap+=<,>,h,l | |
" Search | |
set ignorecase " Ignore case when searching | |
set smartcase | |
set hlsearch " Highlight search things | |
set incsearch " Make search act like search in modern browsers | |
" Don't redraw while executing macros | |
set nolazyredraw | |
set magic " Set magic on, for regular expressions | |
set showmatch " Show matching bracets when text indicator is over them | |
set mat=2 " How many tenths of second ro blink | |
" No sound on errors | |
set noerrorbells | |
set novisualbell | |
set t_vb= | |
"set timeoutlen=500 | |
"""""""""""""""""""""""""""""""""""""""" | |
" Colors and Fonts | |
"""""""""""""""""""""""""""""""""""""""" | |
syntax enable " Enable syntax hl | |
" Set fonts according to system | |
" windows | |
" set guifont=Bitstream\ Vera\ Sans\ Mono:h10 | |
" linux | |
set guifont=Monospace\ 10 | |
if has("gui_running") | |
set guioptions-=T " No toolbar | |
set guioptions-=L " No left hand scrollbars | |
set guioptions-=r " No right hand scrollbars | |
set guioptions-=m " No menu bar | |
set t_Co=256 | |
set background=dark | |
colorscheme peaksea | |
set nonumber | |
else | |
colorscheme zellner | |
set background=dark | |
set nonumber | |
endif | |
" set encoding=utf8 | |
" try lang en_US catch endtry | |
set fileformats=unix,dos,mac " Default file types | |
"""""""""""""""""""""""""""""""""""""""" | |
" Files, backup and undo | |
"""""""""""""""""""""""""""""""""""""""" | |
" Turn backup off | |
set nobackup | |
set nowritebackup | |
set noswapfile | |
"""""""""""""""""""""""""""""""""""""""" | |
" Text, tab and indent related | |
"""""""""""""""""""""""""""""""""""""""" | |
" set expandtab | |
set shiftwidth=4 | |
set tabstop=4 | |
set smarttab | |
set linebreak | |
set textwidth=500 | |
set autoindent | |
set smartindent | |
set wrap | |
"""""""""""""""""""""""""""""""""""""""" | |
" Tabs | |
"""""""""""""""""""""""""""""""""""""""" | |
set tabpagemax=10 | |
set showtabline=2 | |
map <F9> :tabprevious<cr> | |
map <F10> :tabnext<cr> | |
map ,t :tabnew .<cr> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment