Created
March 18, 2014 08:46
-
-
Save fiskus/9616065 to your computer and use it in GitHub Desktop.
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
" turn syntax on when possible | |
if has("syntax") | |
syntax on | |
endif | |
" disable use of mouse, this prevent swtiching to visual mode on mouse selection | |
set mouse= | |
" do not show line numbers | |
set nonumber | |
" autoindent whan creating new lines | |
set autoindent | |
" expand Tab with spaces | |
set expandtab | |
" one real Tab pressing is equal to 4 spaces | |
set tabstop=4 | |
" number of spaces used for indentation with '>' and '<' keys | |
set shiftwidth=4 | |
" default encoding | |
set encoding=utf-8 | |
" default encoding for terminal | |
set termencoding=utf-8 | |
" folding based on indentation | |
set foldmethod=indent | |
" fold code on 3+ indents | |
set foldlevelstart=3 | |
" highlight found words | |
set hlsearch | |
" write current file when switching to another | |
set autowriteall | |
" combine shiftwidth and tabstop for indentation | |
set smarttab | |
" show line and column numbers at right bottom corner | |
set ruler | |
" numbers relative to cursor for better lines navigation | |
" set relativenumber | |
" better autocompletion | |
" Complete till longest common string. If this doesn't result in a longer string, use the next part | |
" When more than one match, list all matches | |
set wildmenu | |
set wildmode=longest,list | |
" do not keep backup files with ~ at end | |
set nobackup | |
" maxminum number of opened tabs | |
set tabpagemax=30 | |
set background=dark | |
" Vundle goes here | |
set nocompatible | |
filetype off | |
set rtp+=~/.vim/bundle/vundle/ | |
call vundle#rc() | |
Bundle 'gmarik/vundle' | |
" Zen Coding | |
" shortcuts for HTML and CSS | |
Bundle 'mattn/emmet-vim' | |
" Highlight matched HTML tags | |
Bundle 'gregsexton/MatchTag' | |
" jQuery syntax | |
Bundle 'itspriddle/vim-jquery' | |
Bundle 'vim-scripts/bufexplorer.zip' | |
" Markdown syntax | |
Bundle 'plasticboy/vim-markdown' | |
" Check syntax on file save | |
Bundle 'scrooloose/syntastic' | |
let g:syntastic_mode_map={ 'mode': 'active', | |
\ 'active_filetypes': [], | |
\ 'passive_filetypes': ['html', 'scss', 'css'] } | |
" JST highlight and indent | |
Bundle 'briancollins/vim-jst' | |
" SCSS syntax highlight | |
Bundle 'cakebaker/scss-syntax.vim' | |
" Search for visually selected text | |
Bundle 'BenBergman/vsearch.vim' | |
" Indentation guides | |
" Colorfull indent levels | |
Bundle 'nathanaelkane/vim-indent-guides' | |
" Tomorrow theme by chriskempson | |
" fork https://github.com/chriskempson/tomorrow-theme | |
Bundle '[email protected]:tomorrow.git' | |
" The ultimate statusline utility | |
Bundle 'Lokaltog/vim-powerline' | |
set laststatus=2 | |
" Maximize pane | |
Bundle 'regedarek/ZoomWin' | |
" VimWiki | |
Bundle 'vimwiki/vimwiki' | |
let g:vimwiki_list = [{'path': '~/.vimwiki/'}] | |
" Coffee script syntax | |
Bundle 'kchmck/vim-coffee-script' | |
" Stylus | |
Bundle 'wavded/vim-stylus' | |
" Handlebars | |
Bundle 'mustache/vim-mustache-handlebars' | |
" Jade | |
Bundle 'digitaltoad/vim-jade' | |
" Django templates | |
Bundle 'nekrox/vim-html-templates-syntax' | |
" HARDTIME | |
Bundle 'takac/vim-hardtime' | |
filetype plugin indent on | |
" F5 - show buffers list | |
nmap <F5> <Esc>:BufExplorer<cr> | |
vmap <F5> <esc>:BufExplorer<cr> | |
imap <F5> <esc>:BufExplorer<cr> | |
" Navigate through windows by Ctrl-h/Ctrl-j/Ctrl-k/Ctrl-l | |
map <c-h> <c-w>h | |
map <c-j> <c-w>j | |
map <c-k> <c-w>k | |
map <c-l> <c-w>l | |
" Set colorscheme | |
colorscheme Tomorrow-Night | |
set colorcolumn=80 | |
" map russian symbols to work as latin | |
set langmap=ё`,йq,цw,уe,кr,еt,нy,гu,шi,щo,зp,х[,ъ],фa,ыs,вd,аf,пg,рh,оj,лk,дl,э',яz,чx,сc,мv,иb,тn,ьm,ю.,ЕT,Ё~,ЙQ,ЦW,УE,КR,НY,ГU,ШI,ЩO,ЗP,Х{,Ъ},ФA,ЫS,ВD,АF,ПG,РH,ОJ,ЛK,ДL,Ж:,ЯZ,ЧX,СC,МV,ИB,ТN,ЬM,Б<,Ю> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment