Last active
July 14, 2016 00:23
-
-
Save piatra/dbf79997f37a9f25a03a to your computer and use it in GitHub Desktop.
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() | |
let g:pathogen_disabled = [] | |
if has("gui") | |
" You complete me ! <3 | |
let g:ycm_global_ycm_extra_conf = "~/.vim/.ycm_extra_conf.py" | |
nnoremap <leader>g :YcmCompleter GoToDefinitionElseDeclaration<CR> | |
let g:ycm_show_diagnostics_ui=0 | |
" colorscheme | |
colorscheme zenburn | |
colorscheme lucius | |
else | |
call add(g:pathogen_disabled, 'YouCompleteMe') | |
colorscheme default | |
endif | |
let g:ycm_global_ycm_extra_conf = "~/.vim/.ycm_extra_conf.py" | |
python from powerline.vim import setup as powerline_setup | |
python powerline_setup() | |
python del powerline_setup | |
set laststatus=2 | |
syntax on | |
set hls | |
filetype plugin indent on | |
" show line number | |
set nu | |
" spacing | |
set ts=2 | |
set sw=2 | |
" set leader | |
let mapleader = "," | |
" tell it to use an undo file | |
" set a directory to store the undo history | |
set undodir=~/.vim/vimundo/ | |
set undofile | |
set undolevels=1000 | |
set undoreload=1000 | |
" sane search | |
set ignorecase | |
set incsearch | |
"""" Mappings | |
" easy buffer | |
map <Leader>b :EasyBuffer<CR> | |
" nerdtree | |
map <Leader>n :NERDTree<CR> | |
let NERDTreeIgnore = ['\.pyc$'] | |
" only | |
map <Leader>o :only<CR> | |
" show line @ 80 chars | |
highlight OverLength ctermbg=red ctermfg=white guibg=#592929 | |
match OverLength /\%81v.\+/ | |
if exists('+colorcolumn') | |
set colorcolumn=80 | |
else | |
au BufWinEnter * let w:m2=matchadd('ErrorMsg', '\%>80v.\+', -1) | |
endif | |
" jsx syntax | |
let g:jsCommand='node' | |
" fuzzy find | |
let g:ctrlp_working_path_mode = 'a' | |
nmap ,p :CtrlP<CR> | |
set wildignore+=*/tmp/*,*.so,*.swp,*.zip,*.pyc,*/built/* | |
set wildignore+=*/node_modules/* | |
set wildignore+=*/env/* | |
" spacing | |
set tabstop=2 | |
set shiftwidth=2 | |
set expandtab | |
filetype plugin indent on | |
set guifont=Source\ Code\ Pro\ for\ Powerline:h13 | |
"let g:ycm_add_preview_to_completeopt=0 | |
"let g:ycm_confirm_extra_conf=0 | |
set completeopt-=preview | |
filetype plugin on | |
set omnifunc=syntaxcomplete#Complete | |
let g:syntastic_javascript_checkers = ['jsxhint'] | |
let g:syntastic_python_checkers = ['pyflakes'] | |
let s:clang_library_path='/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib' | |
if isdirectory(s:clang_library_path) | |
let g:clang_library_path=s:clang_library_path | |
let g:syntastic_c_include_dirs=['/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include'] | |
endif | |
" Syntastic | |
let g:syntastic_c_checkers=['gcc'] | |
let g:syntastic_always_populate_loc_list = 1 | |
let g:syntastic_check_on_open=1 | |
let g:syntastic_enable_signs=1 | |
let g:syntastic_error_symbol = '✗' | |
let g:syntastic_warning_symbol = '⚠' | |
" ??!?! | |
set backspace=2 | |
" Path | |
let $PATH=$PATH . ':' . expand('/Users/mozilla/Library/Haskell/bin') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
commenter: https://github.com/scrooloose/nerdcommenter
file tree: https://github.com/scrooloose/nerdtree
colorscheme: https://github.com/jnurmine/Zenburn
syntax highlight: https://github.com/scrooloose/syntastic
easy buffer -- switch between opened files: https://github.com/troydm/easybuffer.vim