Last active
August 29, 2015 13:57
-
-
Save s-y/9511350 to your computer and use it in GitHub Desktop.
My trash from .vimrc
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
"----------- VUNDLE ---------------------" | |
set nocompatible | |
filetype off | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
set keymap=russian-jcukenwin | |
set keymap=ukrainian-jcuken | |
imap <C-k> <Esc>:set keymap=ukrainian-jcuken<CR>a | |
imap <C-r> <Esc>:set keymap=russian-jcuken<CR>a | |
imap <C-e> <C-^> | |
imap <C-g> <Esc>:set keymap=greek_utf-8<CR>a | |
Bundle 'tpope/vim-haml' | |
"Bundle "rainerborene/vim-timetap" | |
Bundle 'wakatime/vim-wakatime' | |
Bundle 'altercation/vim-colors-solarized' | |
Bundle 'quanganhdo/grb256' | |
"imap <C-e> <Esc>:set keymap=english<CR>i | |
" Sessionman | |
" .!cat ~/.vim/skeleton.py | |
"au BufNewFile *.py ggddG | |
set hlsearch | |
set wildmenu | |
set textwidth=100 | |
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
" ruby " | |
"Bundle 'tpope/vim-rails' | |
" | |
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
"Bundle 'bling/vum-bufferline' | |
"Bundle 'vim-startify' | |
"Bundle 'nerdtree-execute' | |
"Bundle 'Floobits/floobits-vim' | |
"Bundle 'xolox/vim-misc' | |
"Bundle 'xolox/vim-session' | |
"Bundle 'd.vi | |
"Bundle "Hackerpilot/DCD", {'rtp': 'editors/vim'} | |
Bundle 'vim-scripts/sessionman.vim' | |
"Bundle 'junegunn/goyo.vim' | |
Bundle 'vim-scripts/nginx.vim' | |
"Bundle 'junegunn/limelight.vim' | |
"Bundle 'amix/vim-zenroom2' | |
"Bundle 'Yggdroot/indentLine' | |
"Bundle 'amiorin/vim-project' | |
"Bundle 'airblade/vim-rooter' | |
"Bundle 'kien/ctrlp.vim' | |
"Bundle 'othree/javascript-libraries-syntax.vim' | |
"Bundle 'teranex/vim-rooter' | |
"Bundle 'matthewsimo/angular-vim-snippets' | |
"Bundle 'bonsaiben/bootstrap-snippets' | |
"Bundle 'gkz/vim-ls' | |
Bundle 'kchmck/vim-coffee-script' | |
Bundle 'gkz/vim-ls' | |
"Bundle 'bling/vim-airline' | |
" | |
Bundle 'kien/ctrlp.vim' | |
Bundle 'scrooloose/syntastic' | |
"Bundle 'jmcantrell/vim-virtualenv' | |
let g:syntastic_enable_signs=1 | |
" sudo pip install pylint pyflakes flake8 isort autopep8 pep8 frosted | |
let g:syntastic_python_checkers = ['python', 'pep8', 'pylint', 'pyflakes', 'flake8', 'frosted', ] | |
let g:syntastic_error_symbol='✗' | |
let g:syntastic_warning_symbol='⚠' | |
"Bundle 'ervandew/supertab' | |
"Bundle 'sjl/gundo.vim' | |
"Bundle 'vim-scripts/Liquid-Carbon' | |
"Bundle 'tpope/vim-surround' | |
Bundle 'gmarik/vundle' | |
"Bundle 'digitaltoad/vim-jade' | |
Bundle 'ehamberg/vim-cute-python' | |
Bundle 'chrisbra/Colorizer' | |
Bundle 'vim-scripts/The-NERD-tree' | |
"Bundle 'Valloric/YouCompleteMe' | |
Bundle 'davidhalter/jedi-vim' | |
Bundle 'lambdalisue/vim-pyenv' | |
Bundle 'zeis/vim-kolor' | |
Bundle 'morhetz/gruvbox' | |
"Bundle 'morhetz/gruvbox' | |
"Bundle 'kchmck/vim-coffee-script' | |
"Bundle 'jmcantrell/vim-virtualenv' | |
Bundle 'plasticboy/vim-markdown' | |
"Bundle 'majutsushi/tagbar' | |
"Bundle 'tpope/vim-fugitive' | |
"Bundle 'tpope/vim-surround' | |
Bundle 'mattn/emmet-vim' | |
"Bundle 'mattn/livestyle-vim' | |
"Bundle 'mileszs/ack.vim' | |
"Bundle 'Shougo/vimproc.vim' | |
" | |
"Bundle 'tpope/vim-surround' | |
Bundle 'majutsushi/tagbar' | |
Bundle 'mitsuhiko/vim-jinja' | |
Bundle 'dbarsam/vim-rainbow-parentheses' | |
Bundle 'Vundle.vim' | |
"Bundle "davidhalter/jedi-vim" | |
"Bundle "MarcWeber/vim-addon-mw-utils" | |
"Bundle "tomtom/tlib_vim" | |
" | |
"Bundle 'honza/vim-snippets' | |
Bundle 'SirVer/ultisnips' | |
Bundle 's-y/vim-snippets' | |
"Bundle 'git://github.com/ervandew/supertab.git' | |
" Trigger configuration. Do not use <tab> if you use https://github.com/Valloric/YouCompleteMe. | |
let g:UltiSnipsExpandTrigger="<tab>" | |
let g:UltiSnipsJumpForwardTrigger="<tab>" | |
let g:UltiSnipsJumpBackwardTrigger="<s-tab>" | |
let g:UltiSnipsSnippetsDir = "~/.vim/bundle/vim-snippets/UltiSnips" | |
"let g:UltiSnipsUsePythonVersion = 2 | |
let g:UltiSnipsEditSplit="vertical" | |
" | |
filetype plugin indent on | |
autocmd FileType css setlocal omnifunc=csscomplete#CompleteCSS | |
au BufNewFile,BufRead *.jade set filetype=jade | |
au BufNewFile,BufRead *.sass set filetype=sass | |
au BufNewFile,BufRead *.dt set filetype=jade | |
au BufNewFile,BufRead *.scss set filetype=scss | |
au BufNewFile,BufRead *.j2 set filetype=jinja | |
au BufNewFile,BufRead *.rs set filetype=rust | |
au FileType css :ColorToggle | |
au FileType scss :ColorToggle | |
au FileType coffee :inoremap \; : \; :inoremap : \; | |
au FileType sass :ColorToggle | |
au FileType python :UltiSnipsAddFiletypes python.djagno | |
au FileType html :UltiSnipsAddFiletypes django | |
au FileType scss :UltiSnipsAddFiletypes css.scss | |
au FileType jade set ts=2 sts=2 sw=2 | |
au FileType coffee set ts=2 sts=2 sw=2 | |
au FileType jinja :UltiSnipsAddFiletypes jinja2 | |
"au BufNewFile *.py r ~/.vim/bundle/vim-snippets/skeleton.py "; ggddG; | |
"au BufNewFile *.py r !cat ~/.vim/bundle/vim-snippets/skeleton.py "; ggddG; | |
autocmd FileType python setlocal ts=4 sts=4 sw=4 | |
"Bundle "kevinw/pyflakes-vim" | |
"Bundle 'eagletmt/ghcmod-vim' | |
" | |
call vundle#end() " required | |
filetype plugin indent on " required | |
inoremap kj <Esc> | |
let python_highlight_all = 1 | |
"nmap <silent> <C-K> :wincmd k<CR> | |
"nmap <silent> <C-J> :wincmd j<CR> | |
"nmap <silent> <C-H> :wincmd h<CR> | |
"nmap <silent> <C-L> :wincmd l<CR> | |
"------------- END VUNDLE --------------- | |
set lines=40 | |
set columns=105 | |
set nu | |
set relativenumber | |
"setlocal omnifunc=necoghc#omnifunc | |
set guioptions=" | |
set ignorecase | |
set ruler | |
set noswapfile | |
set t_Co=256 | |
"colorschem darkblue | |
set autochdir | |
let NERDTreeChDirMode=2 | |
set background=dark | |
"set background=light | |
syntax enable | |
colorscheme kolor | |
set background=dark | |
augroup myvimrc | |
au! | |
au BufWritePost .vimrc,_vimrc,vimrc,.gvimrc,_gvimrc,gvimrc so $MYVIMRC "| if has('gui_running') | so $MYGVIMRC | endif | |
augroup END | |
let g:solarized_termcolors=256 | |
set mouse="" " allow mouse | |
"let g:solarized_termcolors=16 | |
" holy shit! This finally works: | |
set clipboard=unnamed " no more "+y or "+p, just plain simple y and p. | |
set completeopt=menu | |
" set "+yy СЃopy to sysetm bufer | |
set clipboard=unnamedplus | |
set sessionoptions=curdir,buffers,tabpages,folds | |
nmap ; : | |
filetype on | |
filetype plugin on | |
set statusline=%<%f%h%m%r%=\ %{&encoding}\ %P | |
" show \n | |
"set list | |
noremap <Up> <NOP> | |
noremap <Down> <NOP> | |
noremap <Left> <NOP> | |
noremap <Right> <NOP> | |
" indentation and spaces to meet code guidelines | |
set smartindent | |
set hlsearch | |
set expandtab | |
set tabstop=4 | |
set softtabstop=4 | |
set shiftwidth=4 | |
set fencs=utf8,cp1251 | |
set colorcolumn=100 | |
syntax on | |
"set foldmethod=indent | |
set number " show numbers of lines | |
imap yf yield from | |
inoremap ipdb import ipdb; ipdb.set_trace() | |
set laststatus=1 " always display status line | |
set laststatus=2 | |
" Pylint | |
"set makeprg=pylint\ --reports=n\ --output-format=parseable\ %:p | |
"set errorformat=%f:%l:\ %m | |
" Django templates | |
nnoremap _dt :set ft=htmldjango<CR> | |
nnoremap _pd :set ft=python.django<CR> | |
"Pyflakes | |
" :cc | |
" | |
nmap <silent> <F2> :NERDTreeToggle<CR> | |
let g:tagbar_autofocus = 1 | |
nnoremap <F3> :TagbarToggle<CR> | |
let g:tagbar_sort = 0 "tagbar shows tags in order of they created in file | |
let g:tagbar_foldlevel = 0 "close tagbar folds by default | |
" move code | |
vnoremap > >gv | |
vnoremap < <gv | |
let NERDTreeIgnore = ['\.pyc$'] | |
" mkdir -p "$HOME/.vim/sessions" | |
map <F5> :SessionSave <CR>default.ses<CR>" Quick write session with F2 | |
map <F4> :SessionList<CR> " And load session with F3 | |
"map <F10> :!find . -name \"*.py\" -exec isort {} \; autopep8 --in-place -r . ;<CR> " And load session with F3 | |
nnoremap <F8> :CoffeeWatch ; :setl scrollbind <CR> | |
map <M-1> 1gt | |
map <M-2> 2gt | |
map <M-3> 3gt | |
map <M-4> 4gt | |
map <M-5> 5gt | |
map <M-6> 6gt | |
set foldcolumn=1 | |
vmap <C-C> "+yi | |
" copy in visual mode | |
" | |
"imap <C-V> \"+gpi | |
"paste not work. Why ? | |
set imsearch=0 | |
set iminsert=0 | |
let g:jedi#auto_initialization = 1 | |
set termencoding=utf-8 | |
syntax enable | |
set undofile | |
" makedir ~/.undo | |
set undodir=/tmp/vim_undo | |
" | |
filetype on | |
filetype plugin on " enables filetype specific plugins | |
:map <silent><leader>s <ESC>:SessionList<CR> | |
" trash | |
let g:used_javascript_libs = 'jquery,angularjs' | |
let g:airline_left_sep = 'в–¶' | |
let g:airline_right_sep = 'в—Ђ' | |
let g:airline_linecolumn_prefix = 'В¶ ' | |
let g:airline_fugitive_prefix = 'вЋ‡ ' | |
let g:airline_paste_symbol = 'ПЃ' | |
let g:airline_enable_syntastic=0 | |
"let g:ycm_path_to_python_interpreter = system('which python') | |
"let g:ycm_path_to_python_interpreter = "/home/ihor/.pyenv/versions/asyncio-python3/bin/python3" | |
set autoread | |
"inoremap 0 ) | |
"inoremap 9 () | |
"inoremap [ [] | |
"inoremap ) 0 | |
"inoremap ( 9 | |
"syn include @sqls syntax/sql.vim | |
"syn region sqlCustom start=+(\'\'\'+ keepend end=+\'\'\')+ contains=@sqls | |
"syn region sqlCustom start="sqlstart" end="sqlend" contains=@sqls | |
"syntax include @sql syntax/sql.vim | |
"syntax region sqlSnip matchgroup=Snip start="('''" end="''')" contains=@sql | |
"hi link sqlCustom SpecialComment | |
" | |
let g:jedi#force_py_version = 3 | |
let g:pyenv#auto_activate = 0 | |
set backup | |
set backupdir=~/.vim/backup | |
set directory=~/.vim/tmp | |
augroup myvimrc | |
au! | |
au BufWritePost .vimrc,_vimrc,vimrc,.gvimrc,_gvimrc,gvimrc so $MYVIMRC "| if has('gui_running') | so $MYGVIMRC | endif | |
augroup END |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment