Skip to content

Instantly share code, notes, and snippets.

@hagope
Last active December 8, 2022 18:41
Show Gist options
  • Save hagope/60fa208d50291f328b0200b05ff8010d to your computer and use it in GitHub Desktop.
Save hagope/60fa208d50291f328b0200b05ff8010d to your computer and use it in GitHub Desktop.
set tabstop=4
set softtabstop=4
set shiftwidth=4
set textwidth=79
set expandtab
set autoindent
set number
set fileformat=unix
set list
set listchars=tab:>-
set mouse=
imap jj <Esc>
let g:ctrlp_map = '<c-p>'
let g:ctrlp_cmd = 'CtrlP'
" set clipboard+=unnamedplus
" Remove slower plugins
set runtimepath-=~/.vim_runtime/sources_non_forked/nerdtree
set runtimepath-=~/.vim_runtime/sources_non_forked/ack.vim
set runtimepath-=~/.vim_runtime/sources_non_forked/vim-gitgutter
set runtimepath-=~/.vim_runtime/sources_non_forked/vim-abolish
set runtimepath-=~/.vim_runtime/sources_non_forked/vim-fugitive
set runtimepath-=~/.vim_runtime/sources_non_forked/vim-fugitive/ftdetect
" set runtimepath-=~/.vim_runtime/sources_non_forked/lightline.vim
" set runtimepath-=~/.vim_runtime/sources_non_forked/lightline-ale
" set runtimepath-=~/.vim_runtime/sources_non_forked/tabular
" colorscheme desert
" colorscheme peaksea
"automatically run python file after saving
command Wrp :autocmd BufWritePost *.py :!python %
let g:better_escape_shortcut = 'jj'
let g:better_escape_interval = 200
let g:lightline = {
\ 'component_function': {
\ 'filename': 'LightlineFilename'
\ }
\ }
function! LightlineFilename()
return expand('%')
endfunction
" gh gist edit https://gist.github.com/hagope/60fa208d50291f328b0200b05ff8010d#file-my_configs-vim -f my_configs.vim
#!/bin/bash
echo "Setting up oh-my-tmux"
cd ~
git clone https://github.com/gpakosz/.tmux.git ~/.tmux
ln -s -f .tmux/.tmux.conf
cp .tmux/.tmux.conf.local .
echo "tmux new-session -A -s main" >> ~/.bashrc
#!/bin/bash
echo "Setting up awesome vimrc..."
git clone --depth=1 https://github.com/amix/vimrc.git ~/.vim_runtime
sh ~/.vim_runtime/install_awesome_vimrc.sh
sed -e '/C-f/ s/^"*/"/' -i ~/.vim_runtime/vimrcs/plugins_config.vim
echo "set tabstop=4" >> ~/.vim_runtime/my_configs.vim
echo "set softtabstop=4" >> ~/.vim_runtime/my_configs.vim
echo "set shiftwidth=4" >> ~/.vim_runtime/my_configs.vim
echo "set expandtab" >> ~/.vim_runtime/my_configs.vim
echo "set autoindent" >> ~/.vim_runtime/my_configs.vim
echo "set number" >> ~/.vim_runtime/my_configs.vim
echo "set fileformat=unix" >> ~/.vim_runtime/my_configs.vim
echo "set list" >> ~/.vim_runtime/my_configs.vim
echo "set listchars=tab:>-" >> ~/.vim_runtime/my_configs.vim
#!/bin/bash
cd ~
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
set nocompatible " be iMproved, required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" let Vundle manage Vundle, required
Plugin 'VundleVim/Vundle.vim'
Plugin 'davidhalter/jedi-vim'
autocmd FileType python setlocal completeopt-=preview
call vundle#end() " required
filetype plugin indent on " required
set runtimepath+=~/.vim_runtime
source ~/.vim_runtime/vimrcs/basic.vim
source ~/.vim_runtime/vimrcs/filetypes.vim
source ~/.vim_runtime/vimrcs/plugins_config.vim
source ~/.vim_runtime/vimrcs/extended.vim
try
source ~/.vim_runtime/my_configs.vim
catch
endtry
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment