- Spacegray.vim
- ack.vim
- emmet-vim
- nerdtree
- vim-colors-solarized
- vim-powerline
Last active
August 29, 2015 14:23
-
-
Save RinatMullayanov/f25b4087af75693ae09a to your computer and use it in GitHub Desktop.
My vim config
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
# on OS X file must be named .bash_profile | |
# real clear screen, not just add new line http://superuser.com/questions/576410/how-can-i-partially-clear-my-terminal-scrollback | |
alias cls="printf '\e]50;ClearScrollback\a'" |
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
execute pathogen#infect() | |
syntax on | |
filetype plugin indent on | |
" enable show line number | |
set number | |
" Show the line and column number of the cursor position | |
set ruler | |
" default whitespaces | |
set tabstop=2 | |
set shiftwidth=2 | |
set expandtab | |
" searching and highlights | |
set hlsearch | |
set incsearch | |
set ignorecase | |
set smartcase | |
nnoremap <silent> <Space> :nohl<Bar>:echo<CR> | |
" highlight cursor line | |
set cursorline | |
" show(partial) command in status line | |
set showcmd | |
" enable theme | |
" colorscheme spacegray | |
set background=dark | |
colorscheme solarized | |
" =================================================== | |
" Plugins Settings | |
" =================================================== | |
" Emmet config - enable just for html/css | |
let g:user_emmet_install_global = 0 | |
autocmd FileType html,css EmmetInstall | |
imap <expr> <tab> emmet#expandAbbrIntelligent("\<tab>") | |
" recommended settings for vim-powerline | |
set nocompatible " Disable vi-compatibility | |
set laststatus=2 " Always show the statusline | |
set encoding=utf-8 " Necessary to show Unicode glyphs | |
" enable nerdtree on vim starts up | |
autocmd vimenter * NERDTree | |
" =================================================== | |
" Vim Terminal | |
" =================================================== | |
" making cursor a bar in insert mode | |
if exists('$TMUX') | |
let &t_SI = "\<Esc>Ptmux;\<Esc>\<Esc>]50;CursorShape=1\x7\<Esc>\\" | |
let &t_EI = "\<Esc>Ptmux;\<Esc>\<Esc>]50;CursorShape=0\x7\<Esc>\\" | |
else | |
let &t_SI = "\<Esc>]50;CursorShape=1\x7" | |
let &t_EI = "\<Esc>]50;CursorShape=0\x7" | |
endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment