Last active
December 10, 2015 02:58
-
-
Save i11v/4371705 to your computer and use it in GitHub Desktop.
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
" -------------------------- | |
" Basic preferences | |
" -------------------------- | |
" Disable compability with vi | |
set nocompatible | |
" Set backup dirs | |
set dir=~/tmp | |
set bdir=~/.backup | |
" Show cursor position all the time | |
set ruler | |
" Show uncompleted commands on command line | |
set showcmd | |
" Show line numbers | |
set nu | |
" Draw whitespaces | |
set list | |
set listchars=tab:>-,eol:¬,trail:.,extends:> | |
" Indenting | |
"set foldmethod=indent | |
set autoindent | |
set smartindent | |
" Indent by filetype | |
filetype plugin indent on " required! | |
filetype plugin on | |
" Enable Omni completion | |
set ofu=syntaxcomplete#Complete | |
" Incremental find | |
set incsearch | |
" No need to put cursor in the edge of screen to page up anymore | |
set scrolljump=7 | |
" No need to put cursor in the edge of screen to page down anymore | |
set scrolloff=7 | |
" Switch off annoying visual bell | |
set novisualbell | |
set t_vb= | |
" Mouse support | |
set mouse=a | |
set mousemodel=popup | |
" Default encoding | |
set termencoding=utf-8 | |
" Enable syntax highlitghting | |
syntax on | |
" Allow to use backspace instead of 'x' | |
set backspace=indent,eol,start whichwrap+=<,>,[,] | |
" Default tab size | |
"set shiftwidth=4 | |
"set softtabstop=4 | |
set tabstop=4 | |
" Vundle preferences | |
set rtp+=~/.vim/bundle/vundle/ | |
call vundle#rc() | |
" let Vundle manage Vundle | |
" required! | |
Bundle 'gmarik/vundle' | |
" My Bundles here: | |
" | |
" original repos on github | |
Bundle 'scrooloose/nerdtree' | |
Bundle 'scrooloose/nerdcommenter' | |
Bundle 'mattn/zencoding-vim' | |
Bundle 'KohPoll/vim-less' | |
Bundle 'tpope/vim-fugitive' | |
Bundle 'terryma/vim-multiple-cursors' | |
" vim-scripts repos | |
" non github repos | |
" -------------------------- | |
" Colorscheme | |
" -------------------------- | |
colorscheme Monokai | |
highlight LineNr term=bold cterm=NONE ctermfg=DarkGrey ctermbg=NONE gui=NONE guifg=DarkGrey guibg=NONE | |
" -------------------------- | |
" Shortcuts | |
" -------------------------- | |
" Page down by space | |
nmap <Space> <PageDown> | |
" | |
"" Ctrl+f for omni completion | |
imap <C-f> <C-x><C-o> | |
" | |
"" Ctrl+Z | |
imap <C-z> <Esc>ui | |
" | |
"" Dublicate string | |
imap <C-d> <Esc>yypi | |
" | |
"" Delete string | |
nmap <C-y> dd | |
imap <C-y> <Esc>ddi | |
" | |
"" Fast save | |
nmap <F2> :w<CR> | |
imap <F2> <Esc>:w<CR>i | |
"" Fast save and close tab | |
nmap <F10> :q<CR> | |
imap <F10> <Esc>:q<CR> | |
" | |
"" Switch between splits | |
nmap <C-l> <C-w><C-w> | |
nmap <C-h> <C-w><C-h> | |
nmap <C-j> <C-w><C-j> | |
nmap <C-k> <C-w><C-k> | |
" | |
"" Open new tab | |
nmap <C-t> :tabnew<CR> | |
imap <C-t> <Esc>:tabnew<CR>i | |
" | |
"" Switch between tabs | |
nmap <C-]> :tabnext<CR> | |
imap <C-]> <ESC>:tabnext<CR>i |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment