Last active
October 21, 2016 14:44
-
-
Save Hecatoncheir/19476dc3a27806dc8a0a to your computer and use it in GitHub Desktop.
My vimrc file
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
call plug#begin('~/.vim/plugged') | |
"--- neocompleter --- | |
"Plug 'Shougo/neocomplcache.vim' | |
"Plug 'Shougo/neocomplete.vim' | |
"Plug 'Shougo/neosnippet.vim' | |
"Plug 'Shougo/neosnippet-snippets' | |
Plug 'Valloric/YouCompleteMe' | |
"--- Snippets --- | |
"Plug 'SirVer/ultisnips' | |
"Plug 'honza/vim-snippets' | |
"--- NerdTree --- | |
Plug 'scrooloose/nerdcommenter' | |
Plug 'scrooloose/nerdtree' | |
Plug 'Xuyuanp/nerdtree-git-plugin' | |
"--- CtrlP --- | |
Plug 'vim-ctrlspace/vim-ctrlspace' | |
Plug 'ctrlpvim/ctrlp.vim' | |
Plug 'majutsushi/tagbar' | |
"Plug 'scrooloose/syntastic' | |
Plug 'arecarn/crunch.vim' | |
"--- Git --- | |
Plug 'tpope/vim-fugitive' | |
Plug 'airblade/vim-gitgutter' | |
"--- Themes --- | |
Plug 'bling/vim-airline' | |
Plug 'vim-airline/vim-airline-themes' | |
Plug 'morhetz/gruvbox' | |
Plug 'ryanoasis/vim-webdevicons' | |
"Dart | |
"Plug 'osyo-manga/neocomplcache-snippets-complete-dart' | |
Plug 'bartlomiejdanek/vim-dart' | |
Plug 'loicfrering/vim-dart' | |
Plug 'dart-lang/dart-vim-plugin' | |
Plug 'miyakogi/vim-dartanalyzer' | |
Plug 'nerdrew/dart-vim-plugin' | |
"-- additionals --- | |
Plug 'Shougo/vimproc.vim' | |
"Plug 'dannyob/quickfixstatus' | |
"Plug 'jceb/vim-hier' | |
"JavaScript | |
"Plug 'jelera/vim-javascript-syntax' | |
"Plug 'othree/javascript-libraries-syntax.vim' | |
"Plug 'pangloss/vim-javascript' | |
Plug 'elzr/vim-json' | |
"Ruby | |
"Plug 'vim-ruby/vim-ruby' | |
"CSS | |
Plug 'skammer/vim-css-color' | |
Plug 'hail2u/vim-css3-syntax' | |
"--- Html --- | |
Plug 'mattn/emmet-vim' | |
"--- Other --- | |
"Plug 'eshion/vim-sftp-sync' | |
Plug 'powerman/vim-plugin-ruscmd' | |
Plug 'severin-lemaignan/vim-minimap' | |
Plug 'jeetsukumaran/vim-markology' | |
Plug 'Valloric/MatchTagAlways' | |
Plug 'rstacruz/sparkup' | |
Plug 'sjl/gundo.vim' | |
Plug 'nathanaelkane/vim-indent-guides' | |
Plug 'chrisbra/vim-diff-enhanced' | |
Plug 'jlfwong/vim-mercenary' | |
Plug 'yegappan/mru' | |
Plug 'othree/html5.vim' | |
Plug 'ervandew/supertab' | |
Plug 'tpope/vim-surround' | |
Plug 'pangloss/vim-javascript' | |
"Plug 'Lokaltog/vim-easymotion' | |
Plug 'vitalk/vim-simple-todo' | |
Plug 'tpope/vim-markdown' | |
Plug 'Raimondi/delimitMate' | |
"Plug 'fatih/vim-go' | |
Plug 'tpope/vim-sensible' | |
Plug '907th/vim-auto-save' | |
Plug 'terryma/vim-multiple-cursors' | |
"Plug 'ierton/xkb-switch' | |
Plug 'myshov/xkbswitch-macosx' | |
Plug 'mhinz/vim-startify' | |
Plug 'ludovicchabant/vim-lawrencium' | |
Plug 'Chiel92/vim-autoformat' | |
Plug 'Yggdroot/indentLine' | |
call plug#end() | |
let g:XkbSwitchEnabled = 1 | |
let g:XkbSwitchIMappings = ['ru'] | |
let g:webdevicons_enable = 1 | |
let g:webdevicons_enable_nerdtree = 1 | |
colorscheme gruvbox | |
filetype plugin on | |
filetype on | |
set encoding=utf8 | |
"set guifont=Droid\ Sans\ Mono\ for\ Powerline\ Plus\ Nerd\ File\ Types | |
set guifont=Hack\16 | |
"Airline | |
let g:airline#extensions#tabline#enabled = 1 | |
if !exists('g:airline_symbols') | |
let g:airline_symbols = {} | |
endif | |
" | |
"--- Airline theme --- | |
let g:airline_left_sep = '»' | |
let g:airline_left_sep = '▷' | |
let g:airline_right_sep = '«' | |
let g:airline_right_sep = '◀' | |
let g:airline_symbols.linenr = '␊' | |
let g:airline_symbols.linenr = '' | |
let g:airline_symbols.linenr = '¶' | |
let g:airline_symbols.branch = '⎇' | |
let g:airline_symbols.paste = 'ρ' | |
let g:airline_symbols.paste = 'Þ' | |
let g:airline_symbols.paste = '∥' | |
let g:airline_symbols.whitespace = 'Ξ' | |
let g:airline_powerline_fonts = 1 | |
"let g:airline_left_sep = '≻' | |
"let g:airline_right_sep = '≺' | |
"let g:airline_theme='tomorrow' | |
let g:airline_theme='base16' | |
"let g:airline_theme='gruvbox' | |
"let g:auto_save = 1 | |
" --- NeoComplete --- | |
"let g:acp_enableAtStartup = 0 | |
"let g:neocomplete#enable_at_startup = 1 | |
"let g:neocomplete#enable_smart_case = 1 | |
"let g:neocomplete#sources#syntax#min_keyword_length = 3 | |
"let g:neocomplete#lock_buffer_name_pattern = '\*ku\*' | |
"let g:neocomplete#sources#dictionary#dictionaries = { | |
"\ 'default' : '', | |
"\ 'vimshell' : $HOME.'/.vimshell_hist', | |
"\ 'scheme' : $HOME.'/.gosh_completions' | |
"\ } | |
"if !exists('g:neocomplete#keyword_patterns') | |
"let g:neocomplete#keyword_patterns = {} | |
"endif | |
"let g:neocomplete#keyword_patterns['default'] = '\h\w*' | |
" make YCM compatible with UltiSnips (using supertab) | |
let g:ycm_key_list_select_completion = ['<C-n>', '<Down>'] | |
let g:ycm_key_list_previous_completion = ['<C-p>', '<Up>'] | |
let g:SuperTabDefaultCompletionType = '<C-n>' | |
" better key bindings for UltiSnipsExpandTrigger | |
let g:UltiSnipsExpandTrigger = "<tab>" | |
let g:UltiSnipsJumpForwardTrigger = "<tab>" | |
let g:UltiSnipsJumpBackwardTrigger = "<s-tab>" | |
let NERDTreeShowHidden=1 | |
set background=dark | |
set spell | |
set linebreak | |
set noswapfile | |
set backspace=indent,eol,start | |
set laststatus=2 | |
set number | |
set incsearch | |
set hlsearch | |
set ignorecase | |
set smartcase | |
set termencoding=utf8 | |
set nocompatible | |
set ruler | |
set showcmd | |
set foldenable | |
set foldlevel=100 | |
set foldmethod=indent | |
set noerrorbells visualbell t_vb= | |
autocmd GUIEnter * set visualbell t_vb= | |
set spell spelllang=ru_yo | |
setlocal spell spelllang=ru_yo | |
syntax enable | |
set t_Co=256 | |
set ch=1 | |
set autoindent | |
set wrap | |
set expandtab | |
set shiftwidth=2 | |
set softtabstop=2 | |
set tabstop=2 | |
set smartindent | |
set showmatch | |
"set lines=40 | |
"set columns=140 | |
set iskeyword=@,48-57,_,192-255 | |
set history=200 | |
set langmap=рh,оj,лk,дl,РH,ОJ,ЛK,ДL | |
set smarttab | |
set title | |
set autoread | |
set breakindent | |
set cursorline | |
if !exists("g:tagbar_type_dart") | |
let g:tagbar_type_javascript = { | |
\ 'ctagstype' : 'JavaScript', | |
\ 'kinds' : [ | |
\ 'o:objects', | |
\ 'f:functions', | |
\ 'a:arrays', | |
\ 's:strings' | |
\ ] | |
\ } | |
let g:tagbar_type_css = { | |
\ 'ctagstype' : 'Css', | |
\ 'kinds' : [ | |
\ 'c:classes', | |
\ 's:selectors', | |
\ 'i:identities' | |
\ ] | |
\ } | |
let g:tagbar_type_scss = { | |
\ 'ctagstype' : 'Scss', | |
\ 'kinds' : [ | |
\ 'c:classes', | |
\ 's:selectors', | |
\ 'i:identities' | |
\ ] | |
\ } | |
endif | |
"---- KeyMap ---- | |
map <C-n> :NERDTreeToggle<CR> | |
"map boc :exe 'silent !open -a /Applications/Google\ Chrome.app %' <CR> | |
map <leader>] :tag /<c-r>=expand('<cword>')<cr><cr> | |
map <leader>} :ptag /<c-r>=expand('<cword>')<cr><cr> | |
map <leader>cp :CtrlPClearCache | |
nmap <leader>ne :NERDTree<cr> | |
autocmd StdinReadPre * let s:std_in=1 | |
autocmd VimEnter * if argc() == 0 && !exists("s:std_in") | NERDTree | endif | |
" Highlight all instances of word under cursor, when idle. | |
" Useful when studying strange source code. | |
" Type z/ to toggle highlighting on/off. | |
nnoremap z/ :if AutoHighlightToggle()<Bar>set hls<Bar>endif<CR> | |
function! AutoHighlightToggle() | |
let @/ = '' | |
if exists('#auto_highlight') | |
au! auto_highlight | |
augroup! auto_highlight | |
setl updatetime=4000 | |
echo 'Highlight current word: off' | |
return 0 | |
else | |
augroup auto_highlight | |
au! | |
au CursorHold * let @/ = '\V\<'.escape(expand('<cword>'), '\').'\>' | |
augroup end | |
setl updatetime=500 | |
"echo 'Highlight current word: ON' | |
return 1 | |
endif | |
endfunction | |
call AutoHighlightToggle() | |
if has('vim_starting') | |
set nocompatible | |
set runtimepath+=~/.vim/bundle/dart-vim-plugin | |
endif | |
filetype plugin indent on | |
"tabs color | |
"hi TabLine guifg=#333 guibg=#222 gui=none ctermfg=254 ctermbg=238 cterm=none | |
"hi TabLineSel guifg=#666 guibg=#222 gui=bold ctermfg=231 ctermbg=235 cterm=bold | |
"hi TabLineFill guifg=#999 guibg=#222 gui=none ctermfg=254 ctermbg=238 cterm=none | |
"markology colors | |
hi default MarkologyHLl cterm=bold ctermfg=LightGrey ctermbg=None | |
hi default MarkologyHLu cterm=bold ctermfg=LightGrey ctermbg=None | |
hi default MarkologyHLo cterm=bold ctermfg=LightGrey ctermbg=None | |
hi default MarkologyHLm cterm=bold ctermfg=LightGrey ctermbg=None | |
hi default MarkologyHLLine cterm=underline gui=undercurl guisp=#007777 | |
"---------------- Autoformat ---------------- | |
au BufWrite * :Autoformat | |
let g:formatdef_tpl = '"tpl --mode=cs --style=ansi -pcHs4"' | |
let g:formatters_cs = ['tpl'] | |
set tags=./tags,tags;$HOME | |
set autochdir | |
"---------------- ctrlSpace ---------------- | |
set nocompatible | |
set hidden | |
let g:CtrlSpaceSearchTiming = 10 | |
nnoremap <silent><C-o> :CtrlSpace O<CR> | |
let g:CtrlSpaceLoadLastWorkspaceOnStart = 1 | |
let g:CtrlSpaceSaveWorkspaceOnSwitch = 1 | |
let g:CtrlSpaceSaveWorkspaceOnExit = 1 | |
if executable("ag") | |
let g:CtrlSpaceGlobCommand = 'ag -l --nocolor -g ""' | |
endif | |
let g:CtrlSpaceIgnoredFiles = '\v(tmp|temp|Godeps|.pub)[\/]' | |
"---------------- Dart ---------------- | |
if !exists("g:tagbar_type_dart") | |
let g:tagbar_type_dart = { | |
\ 'ctagsbin' : 'pub', | |
\ 'ctagsargs' : ['global', 'run', 'dart_ctags:tags', '--skip-sort', '--line-numbers'], | |
\ 'ctagstype' : 'dart', | |
\ 'kinds' : [ | |
\ 'c:classes', | |
\ 'f:function', | |
\ 'M:static method', | |
\ 'm:method', | |
\ 'i:field' | |
\ ] | |
\ } | |
endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment