Created
May 14, 2016 16:01
-
-
Save Jubjub/d9e78b8fcd1896a27c7ba9e6b47c5f27 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 the runtime path to include Vundle and initialize | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
Plugin 'gmarik/Vundle.vim' | |
"Plugin 'Valloric/YouCompleteMe' | |
Plugin 'davidhalter/jedi-vim' | |
Plugin 'scrooloose/syntastic' | |
Plugin 'othree/html5.vim' | |
"Plugin 'vim-scripts/vim-auto-save' | |
call vundle#end() | |
" jedi settings | |
let g:jedi#smart_auto_mappings = 0 | |
let g:jedi#completions_command = "<Tab>" | |
" ycm settings | |
let g:ycm_autoclose_preview_window_after_completion = 1 | |
" autosave settings | |
let g:auto_save = 1 | |
let g:auto_save_silent = 1 | |
" syntastic settings | |
"set statusline+=%#warningmsg# | |
"set statusline+=%{SyntasticStatuslineFlag()} | |
"set statusline+=%* | |
let g:syntastic_always_populate_loc_list = 1 | |
let g:syntastic_auto_loc_list = 1 | |
let g:syntastic_check_on_open = 1 | |
let g:syntastic_check_on_wq = 0 | |
let g:syntastic_rst_checker = '' | |
let g:syntastic_loc_list_height = 1 | |
let g:syntastic_python_checkers=['flake8'] | |
let g:syntastic_python_flake8_args='--ignore=E501,E225,E261,E265,E713,E101,E111,E112,E113,E114,E115,E116,E121,E122,E123,E124,E125,E126,E127,E128,E129,E131,E133,E201,E202,E203,E211,E221,E222,E223,E224,E225,E226,E227,E228,E231,E241,E242,E251,E261,E262,E265,E266,E271,E272,E273,E274,E301,E302,E303,E304,E401,E402,E501,E502,E701,E702,E703,E704,E711,E712,E713,E714,E721,E731,E901,E902,W191,W291,W292,W293,W391,W503,W601,W602,W603,W604,F403' | |
let g:syntastic_javascript_checkers=['eslint'] | |
colorscheme desert | |
set expandtab | |
set textwidth=579 | |
set tabstop=8 | |
set softtabstop=4 | |
set shiftwidth=4 | |
set autoindent | |
syntax on | |
filetype plugin indent on | |
filetype plugin on | |
set noswapfile | |
" remove menu bar | |
set guioptions-=m | |
" remove toolbar | |
set guioptions-=T | |
" remove right-hand scroll bar | |
set guioptions-=r | |
" remove left-hand scroll bar | |
set guioptions-=L | |
" remove tabs bar | |
set showtabline=0 | |
set nobackup | |
set nowritebackup | |
set noswapfile | |
set vb t_vb= | |
autocmd BufRead *.bml set textwidth=0 | |
"au Filetype javascript setlocal ts=2 sts=2 sw=2 | |
au Filetype html setlocal ts=2 sts=2 sw=2 | |
au Filetype css setlocal ts=2 sts=2 sw=2 | |
"set foldmethod=indent | |
"set foldnestmax=2 | |
au BufWinLeave * silent! mkview | |
au BufWinEnter * silent! loadview | |
au BufNewFile,BufRead *.rml set filetype=html | |
au BufNewFile,BufRead *.rcss set filetype=css | |
set tags=./tags;/ | |
" save on focus lost | |
:au FocusLost * silent! wa | |
" save on window change | |
:au WinLeave * silent! update | |
" go to normal mode on focus lost | |
" :au Focuslost * stopinsert | |
" disable curly error highlighting for C++11 | |
let c_no_curly_error=1 | |
" hightlight json files as javascript | |
autocmd BufNewFile,BufRead *.json set ft=javascript | |
let mapleader="," | |
" add paste from clipboard command, but only in insert mode | |
imap <C-v> <C-r><C-o>+ | |
"set guifont=gohufont-14 | |
" highlight searches | |
set hlsearch | |
autocmd BufRead,BufNewFile *.html setlocal shiftwidth=2 tabstop=2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment