Last active
April 3, 2017 21:29
-
-
Save sapslaj/b079a2b2c7f5595fd0bc to your computer and use it in GitHub Desktop.
dotfiles
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
| " based on http://github.com/grigio/vim-sublime | |
| " Best view with a 256 color terminal and Powerline fonts | |
| set nocompatible | |
| filetype off | |
| set rtp+=~/.vim/bundle/vundle/ | |
| call vundle#rc() | |
| Bundle 'gmarik/vundle' | |
| Bundle 'tpope/vim-surround' | |
| Bundle 'gcmt/breeze.vim' | |
| Bundle 'kien/ctrlp.vim' | |
| Bundle 'SirVer/ultisnips' | |
| Bundle 'tomtom/tcomment_vim' | |
| Bundle 'bling/vim-airline' | |
| Bundle 'airblade/vim-gitgutter' | |
| Bundle 'mileszs/ack.vim' | |
| Bundle 'vim-ruby/vim-ruby' | |
| Bundle 'vim-scripts/xmledit' | |
| Bundle 'scrooloose/nerdtree' | |
| Bundle 'jistr/vim-nerdtree-tabs' | |
| Bundle 'kchmck/vim-coffee-script' | |
| Bundle 'tpope/vim-unimpaired' | |
| Bundle 'scrooloose/syntastic' | |
| Bundle 'jeetsukumaran/vim-buffergator' | |
| Bundle 'Valloric/YouCompleteMe' | |
| Bundle 'fatih/vim-go' | |
| Bundle 'vim-autoclose' | |
| " Color Themes | |
| Bundle 'flazz/vim-colorschemes' | |
| colorscheme Monokai | |
| """""""" | |
| if has('autocmd') | |
| filetype plugin indent on | |
| endif | |
| if has('syntax') && !exists('g:syntax_on') | |
| syntax enable | |
| endif | |
| " Use :help 'option' to see the documentation for the given option. | |
| set autoindent | |
| set backspace=indent,eol,start | |
| set complete-=i | |
| set showmatch | |
| set showmode | |
| set smarttab | |
| set nrformats-=octal | |
| set shiftround | |
| set ttimeout | |
| set ttimeoutlen=50 | |
| set incsearch | |
| " Use <C-L> to clear the highlighting of :set hlsearch. | |
| if maparg('<C-L>', 'n') ==# '' | |
| nnoremap <silent> <C-L> :nohlsearch<CR><C-L> | |
| endif | |
| set laststatus=2 | |
| set ruler | |
| set showcmd | |
| set wildmenu | |
| set autoread | |
| set encoding=utf-8 | |
| set tabstop=2 shiftwidth=2 expandtab | |
| set listchars=tab:â–’â–‘,trail:â–“ | |
| set list | |
| inoremap <C-U> <C-G>u<C-U> | |
| set number | |
| set hlsearch | |
| set ignorecase | |
| set smartcase | |
| " Don't use Ex mode, use Q for formatting | |
| map Q gq | |
| " In many terminal emulators the mouse works just fine, thus enable it. | |
| if has('mouse') | |
| set mouse=a | |
| endif | |
| " do not history when leavy buffer | |
| set hidden | |
| " FIXME: (broken) ctrl s to save | |
| noremap <C-S> :update<CR> | |
| vnoremap <C-S> <C-C>:update<CR> | |
| inoremap <C-S> <Esc>:update<CR> | |
| set nobackup | |
| set nowritebackup | |
| set noswapfile | |
| set fileformats=unix,dos,mac | |
| " exit insert mode | |
| inoremap <C-c> <Esc> | |
| set completeopt=menuone,longest,preview | |
| " | |
| " Plugins config | |
| " | |
| " CtrlP | |
| set wildignore+=*/.git/*,*/.hg/*,*/.svn/* | |
| " Ultisnip | |
| " NOTE: <f1> otherwise it overrides <tab> forever | |
| let g:UltiSnipsExpandTrigger="<f1>" | |
| let g:UltiSnipsJumpForwardTrigger="<f1>" | |
| let g:UltiSnipsJumpBackwardTrigger="<c-k>" | |
| let g:did_UltiSnips_vim_after = 1 | |
| " vim-airline | |
| let g:airline#extensions#tabline#enabled = 1 | |
| let g:airline_powerline_fonts = 1 | |
| " | |
| " Basic shortcuts definitions | |
| " most in visual mode / selection (v or ⇧ v) | |
| " | |
| " Find | |
| map <C-f> / | |
| " indend / deindent after selecting the text with (⇧ v), (.) to repeat. | |
| vnoremap <Tab> > | |
| vnoremap <S-Tab> < | |
| " comment / decomment & normal comment behavior | |
| vmap <C-m> gc | |
| " Disable tComment to escape some entities | |
| let g:tcomment#replacements_xml={} | |
| " Text wrap simpler, then type the open tag or '," | |
| vmap <C-w> S | |
| " Cut, Paste, Copy | |
| vmap <C-x> d | |
| vmap <C-v> p | |
| vmap <C-c> y | |
| " Undo, Redo (broken) | |
| nnoremap <C-z> :undo<CR> | |
| inoremap <C-z> <Esc>:undo<CR> | |
| nnoremap <C-y> :redo<CR> | |
| inoremap <C-y> <Esc>:redo<CR> | |
| " Tabs | |
| let g:airline_theme='badwolf' | |
| let g:airline#extensions#tabline#enabled = 1 | |
| nnoremap <C-b> :tabprevious<CR> | |
| inoremap <C-b> <Esc>:tabprevious<CR>i | |
| nnoremap <C-n> :tabnext<CR> | |
| inoremap <C-n> <Esc>:tabnext<CR>i | |
| nnoremap <C-t> :tabnew<CR> | |
| inoremap <C-t> <Esc>:tabnew<CR>i | |
| nnoremap <C-w> :tabclose<CR> | |
| inoremap <C-w> <Esc>:tabclose<CR>i | |
| " File browser toggle | |
| map <C-k> :NERDTreeTabsToggle<CR> | |
| " lazy ':' | |
| map \ : | |
| let mapleader = ',' | |
| nnoremap <Leader>p :set paste<CR> | |
| nnoremap <Leader>o :set nopaste<CR> | |
| noremap <Leader>g :GitGutterToggle<CR> | |
| " this machine config | |
| if filereadable(expand("~/.vimrc.local")) | |
| source ~/.vimrc.local | |
| endif | |
| " Nerdtree | |
| autocmd vimenter * NERDTree | |
| autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTreeType") && b:NERDTreeType == "primary") | q | endif | |
| " Syntastic | |
| 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 | |
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
| export ZSH=/home/sapslaj/.oh-my-zsh | |
| ZSH_THEME="gianu" | |
| COMPLETION_WAITING_DOTS="true" | |
| DISABLE_UNTRACKED_FILES_DIRTY="true" | |
| OVERLOAD_ALIASES="true" | |
| plugins=(atom bundler common-aliases docker fedora gem git github pls rails ruby rvm sudo systemd vagrant web-search zsh-syntax-highlighting) | |
| export PATH="/usr/lib64/qt-3.3/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:/home/sapslaj/.local/bin:/home/sapslaj/bin" | |
| source $ZSH/oh-my-zsh.sh | |
| export EDITOR='vim' | |
| export BROWSER='google-chrome' | |
| export VAGRANT_DEFAULT_PROVIDER='virtualbox' | |
| export PATH="$PATH:$HOME/.rvm/bin" # Add RVM to PATH for scripting | |
| export NVM_DIR="/home/sapslaj/.nvm" | |
| [ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm | |
| nvm use stable &> /dev/null # Set nvm to use stable nodejs | |
| eval "$(thefuck --alias)" | |
| alias dirs="dirs -v" | |
| alias cls="clear" | |
| PATH="/usr/local/heroku/bin:$PATH" | |
| source ~/.aws-access-keys |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment