Last active
August 16, 2017 08:53
-
-
Save avli/c59fbe30a35774a1e75d 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
set nocompatible | |
filetype off | |
set rtp+=~/.vim/bundle/Vundle.vim | |
" To install Vundle run | |
" git clone https://github.com/gmarik/Vundle.vim.git ~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
Plugin 'gmarik/Vundle.vim' | |
Plugin 'ervandew/supertab' | |
Plugin 'tpope/vim-fugitive' | |
Plugin 'scrooloose/syntastic' | |
Plugin 'scrooloose/nerdtree' | |
Plugin 'scrooloose/nerdcommenter' | |
Plugin 'tpope/vim-surround' | |
Plugin 'Raimondi/delimitMate' | |
Plugin 'majutsushi/tagbar' | |
Plugin 'flazz/vim-colorschemes' | |
Plugin 'Valloric/vim-valloric-colorscheme' | |
Plugin 'jimenezrick/vimerl' | |
Plugin 'elixir-lang/vim-elixir' | |
Plugin 'davidhalter/jedi-vim' | |
Plugin 'hdima/python-syntax' | |
Plugin 'jmcantrell/vim-virtualenv' | |
Plugin 'hynek/vim-python-pep8-indent' | |
Plugin 'guns/vim-clojure-static' | |
Plugin 'tpope/vim-fireplace' | |
Plugin 'avakhov/vim-yaml' | |
Plugin 'LaTeX-Box-Team/LaTeX-Box' | |
Plugin 'moll/vim-node' | |
Plugin 'marijnh/tern_for_vim' | |
Plugin 'digitaltoad/vim-jade' | |
Plugin 'kchmck/vim-coffee-script' | |
Plugin 'mattn/emmet-vim' | |
Plugin 'othree/html5.vim' | |
Bundle 'https://github.com/gorodinskiy/vim-coloresque.git' | |
Plugin 'christoomey/vim-tmux-navigator' | |
Plugin 'vim-scripts/Vim-R-plugin' | |
Plugin 'octol/vim-cpp-enhanced-highlight' | |
Plugin 'rking/ag.vim' | |
call vundle#end() | |
filetype plugin indent on | |
let mapleader = "," | |
let g:mapleader = "," | |
let python_highlight_all = 1 | |
au FileType python setlocal completeopt-=preview | |
let NERDTreeIgnore = ['\.pyc$'] | |
let NERDSpaceDelims = 1 | |
let delimitMate_expand_cr = 1 | |
" Syntastic recommended settings | |
set statusline+=%#warningmsg# | |
set statusline+=%{SyntasticStatuslineFlag()} | |
set statusline+=%* | |
let g:syntastic_check_on_open = 1 | |
let g:syntastic_check_on_wq = 0 | |
let g:syntastic_python_checkers = ["python", "flake8"] | |
let g:syntastic_javascript_checkers = ["jshint"] | |
syntax on | |
set nu | |
set nobackup | |
set nowritebackup | |
set noswapfile | |
set wildmenu | |
" Ignore compiled files | |
set wildignore=*.o,*~,*.pyc | |
if has("win16") || has("win32") | |
set wildignore+=*/.git/*,*/.hg/*,*/.svn/*,*/.DS_Store | |
else | |
set wildignore+=.git\*,.hg\*,.svn\* | |
endif | |
" Don't redraw while executing macros (good performance config) | |
set lazyredraw | |
set scrolloff=1 | |
set ignorecase | |
set visualbell | |
set t_vb= | |
set tabstop=4 | |
set shiftwidth=4 | |
set smarttab | |
set expandtab | |
set backspace=2 | |
set softtabstop=4 | |
set hlsearch | |
set listchars=eol:¬,tab:>-,trail:.,extends:>,precedes:< | |
set whichwrap+=<,>,h,l | |
set keymap=russian-jcukenwin | |
set iminsert=0 | |
set imsearch=0 | |
nnoremap <silent> [b :bprevious<CR> | |
nnoremap <silent> ]b :bnext<CR> | |
nnoremap <silent> [B :bfirst<CR> | |
nnoremap <silent> ]B :blast<CR> | |
set guifont=Menlo:h13 | |
set guioptions-=r | |
set guioptions-=L | |
set guioptions+=T | |
set laststatus=2 | |
" Switch CWD to the directory of the open buffer | |
map <leader>cd :cd %:p:h<cr>:pwd<cr> | |
" Add a bit extra margin to the left | |
set foldcolumn=1 | |
let g:SuperTabDefaultCompletionType = "context" | |
let g:jedi#popup_on_dot = 0 | |
set completeopt+=longest | |
set path+=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/ | |
set spelllang=en_us,ru_ru | |
" Pressing ,ss will toggle and untoggle spell checking | |
map <leader>ss :setlocal spell!<cr> | |
" Shortcuts using <leader> | |
map <leader>sn ]s | |
map <leader>sp [s | |
map <leader>sa zg | |
map <leader>s? z= | |
inoremap <F9> <c-^> | |
cnoremap <F9> <c-^> | |
nnoremap <F9> i<c-^><ESC> | |
" Toggle paste mode on and off | |
map <leader>pp :setlocal paste!<cr> | |
" Toggle list on and off | |
map <leader>ll :setlocal list!<cr> | |
" Toggle line wrap on and off | |
map <leader>ww :setlocal wrap!<cr> | |
set showtabline=1 | |
" set colorcolumn=80 | |
set background=dark | |
" let g:solarized_termtrans=1 | |
colorscheme molokai | |
function InitSpelling() | |
if !exists("b:autocommands_loaded") | |
let b:autocommands_loaded = 1 | |
setlocal spell | |
endif | |
endfunction | |
au FileType text,tex,latex,html,mail :call InitSpelling() | |
" ...but disable spelling for Vim documentation | |
au BufEnter ~/.vim/bundle/* setlocal nospell | |
au BufEnter /usr/local/share/vim/vim74/doc/*.txt setlocal nospell | |
au BufEnter /usr/local/Cellar/macvim/* setlocal nospell | |
au BufWritePre * :%s/\s\+$//e | |
au FileType text let b:loaded_delimitMate = 1 | |
let delimitMate_nesting_quotes = ['"','`'] | |
au FileType python let b:delimitMate_nesting_quotes = ['"'] | |
au Syntax javascript setlocal ts=2 | |
au BufRead,BufNewFile *.jar,*.war,*.ear,*.sar,*.rar set filetype=zip | |
au FileType clojure let b:delimitMate_quotes = "\"" | |
ab teh the | |
set rtp+=/usr/local/opt/fzf | |
map <leader>f :FZF<CR> | |
" set ruler | |
" set statusline=[TYPE=%Y]\ [ENC=%{&fenc}]\ [ASCII=\%03.3b]\ [HEX=\%02.2B]\ [POS=%04l,%04v][%p%%] | |
python from powerline.vim import setup as powerline_setup | |
python powerline_setup() | |
python del powerline_setup |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment