Created
February 15, 2011 09:19
-
-
Save sourcerebels/827302 to your computer and use it in GitHub Desktop.
Vim > Configuration
This file contains hidden or 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
" Set the font | |
set guifont=Inconsolata\ 12 | |
" My favourite color scheme for the GUI | |
colorscheme koehler | |
" Remove toolbar | |
set guioptions-=T | |
" Remove right scrollbar | |
set guioptions-=r | |
" Remove menu | |
set guioptions-=m | |
" Disable visual bell again when GUI starts | |
au GuiEnter * set t_vb= | |
" Highlight cursor line | |
set cursorline | |
" Change background for line numbers | |
hi LineNr guibg=#101010 guifg=#FFFFFF | |
" Change line number width | |
set numberwidth=8 | |
This file contains hidden or 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
set nocompatible | |
" Display line numbers | |
set number | |
" Allow backspacing over everything in insert mode | |
set backspace=indent,eol,start | |
" Do not keep backup files | |
set nobackup | |
" Keep 1000 lines of command line history | |
set history=1000 | |
" Show the cursor position all the time | |
set ruler | |
" Display incomplete commands | |
set showcmd | |
" Do incremental searching | |
set incsearch | |
" Ignore case on search | |
set ignorecase | |
" Dont ignore case only if there is a capital letter in the search expression | |
set smartcase | |
" Highlight search matches | |
set hlsearch | |
" Tab size | |
set tabstop=4 | |
" Smart tab insertion | |
set smarttab | |
" Syntax Highlighting | |
syntax on | |
" Auto indentation | |
set autoindent | |
" Spaces used for auto-indent | |
set shiftwidth=4 | |
" Indent to nearest tabstop | |
set shiftround | |
" Turn off both beep and visual bell | |
set visualbell t_vb= | |
" Completion behave similarly to a shell | |
set wildmode=list:longest | |
" Type specific configurations | |
filetype on | |
" Hiddes buffers instead closing them | |
set hidden | |
" Remap leader key | |
let mapleader = "," | |
" CTRL-Right arrow: go to next window, CTRL-Left arrow: go to previous window | |
map <leader>n :bnext<CR> | |
map <leader>p :bprevious<CR> | |
" Change terminal title when in text mode | |
set title | |
" Scroll the viewport faster | |
nnoremap <C-e> 3<C-e> | |
nnoremap <C-y> 3<C-y> | |
" Status line | |
set laststatus=2 | |
set statusline=%t "tail of the filename | |
set statusline+=\ [%{strlen(&fenc)?&fenc:'none'}, "file encoding | |
set statusline+=%{&ff}] "file format | |
set statusline+=%h "help file flag | |
set statusline+=%m "modified flag | |
set statusline+=%r "read only flag | |
set statusline+=%y "filetype | |
set statusline+=%= "left/right separator | |
set statusline+=%c, "cursor column | |
set statusline+=%l/%L "cursor line/total lines | |
set statusline+=\ %P "percent through file | |
" Use X Window Clipboard | |
set clipboard=unnamed |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I use this .vimrc configuration files next to this Vim plugins:
http://www.delicious.com/sourcerebels/Vim+Plugin