A script shell will get a copy of the vimrc up and running on your local machine for testing purposes:
sh -c "$(curl -fsSL https://raw.githubusercontent.com/jarolrod/vim-python-ide/master/setup.sh)"
curl -fsSL https://raw.githubusercontent.com/jarolrod/vim-python-ide/master/setup.sh | sh
- The YouCompleteMe Plugin must be compiled before use:
- Navigate to the YouCompleteMe Folder which is found in:
cd .vim/bundle/YouCompleteMe/
- Next execute the following command:
./install.sh --clang-completer --system-libclang
- Navigate to the YouCompleteMe Folder which is found in:
Base16 is used to theme vim, it can also theme your terminal. Follow these steps to install:
- Installing Base16
git clone https://github.com/chriskempson/base16-shell.git ~/.config/base16-shell
- Add the following to your shell config (Themes terminal + vim):
- Bash + ZSH
BASE16_SHELL=$HOME/.config/base16-shell/ [ -n "$PS1" ] && [ -s $BASE16_SHELL/profile_helper.sh ] && eval "$($BASE16_SHELL/profile_helper.sh)"
- Fish
# Base16 Shell if status --is-interactive eval sh $HOME/.config/base16-shell/scripts/base16-default-dark.sh end
- Bash + ZSH
- Add the following to your vimrc (Only theme vim):
if filereadable(expand("~/.vimrc_background")) let base16colorspace=256 source ~/.vimrc_background endif
- Add the following to your shell config (Themes terminal + vim):
- If you dont want this feature simply remove this plugin from your vimrc and execute :PluginUpdate in vim, for proper removal delete the base16 plugin folder
This plugin is used to show file icons in NerdTree and requires additional steps to install:
- Must install a patched font that contains required glyphs:
- Arch Linux
- Everyone Else
- Set vim encoding to UTF-8
set encoding=utf8
- Set vim font to NerdFont
set guifont=<FONT_NAME> <FONT_SIZE>
- Add glyphs to Airline
let g:airline_powerline_fonts = 1
- If you dont want this feature simply remove this plugin from your vimrc and execute :PluginUpdate in vim, for proper removal delete the devicons plugin folder
- Cherry pick the parts you like from my vimrc and add it to yours
- Python Mode - Python mode
- Add the following to the bottom of your vimrc to prevent errors:
python3 << EOF import vim import git def is_git_repo(): try: _ = git.Repo('.', search_parent_directories=True).git_dir return "1" except: return "0" vim.command("let g:pymode_rope = " + is_git_repo()) EOF
- Add the following to the bottom of your vimrc to prevent errors:
- PEP 8 Indentation - Python Indentation
- Jinja - Syntax and Indentation
- Syntastic - Syntax
- Python Combined - Extra handling
- YouCompleteMe - Code auto-completion
- NerdTree - Project and File navigation
- Tagbar - Class outline
- CtrlSpace - Bookmarks/Workspaces/Fuzzy Search/ File management
- Ack - Search tool
- Airline - Tabline
- Powerline - Used for fonts
- Fixed Task List - Pending tasks
- Conque Term - Console as buffer
- Comfortable Motion - Physics based scrolling
- Bookmarks - Bookmark code
- Indent Guides - Visual repesentation of indents
- Snippets - Snippets
- Snip-Mate - Snippet Manager
- NerdCommenter - Easy code documentation
- Commentary - Comment stuff out
- Utility Functions - Add-on
- Add-on - interpret file by function
-
Sparkup - Condensed HTML parser
-
Riv - Take notes in RST
-
Surround - Add parentheses + etc. in pairs
-
Colorscheme - Change vim colorscheme
-
Rainbow-Parantheses - Rianbow Parentheses
-
Vim-Wiki - Personal Vim wiki
-
Vimagit - Git operations from buffer
-
Base16 - Base16 Themes
-
Dev Icons - File icons in NerdTree
-
TMUXLine - Applies AirlineTheme to Tmux
let g:pymode_run_bind='<F5>'
imap <F5> <Esc>:w<CR>:!clear;python %<CR>
nmap <F9> :bprev<CR>
nmap <F10> :bnext<CR>
nnoremap <F4> :set relativenumber!<CR>
let g:comfortable_motion_scroll_down_key = "j"
let g:comfortable_motion_scroll_up_key = "k"
nnoremap <silent> <C-d> :call comfortable_motion#flick(g:comfortable_motion_imp ulse_multiplier * winheight(0) * 2)<CR>
nnoremap <silent> <C-u> :call comfortable_motion#flick(g:comfortable_motion_imp ulse_multiplier * winheight(0) * -2)<CR>
nnoremap <silent> <C-f> :call comfortable_motion#flick(g:comfortable_motion_imp ulse_multiplier * winheight(0) * 4)<CR>
nnoremap <silent> <C-b> :call comfortable_motion#flick(g:comfortable_motion_imp ulse_multiplier * winheight(0) * -4)<CR>
- NerdTree wil automatically open when vim is launched in terminal without a file
nmap " :NERDTreeToggle<CR>
no <down> <Nop>
no <left> <Nop>
no <right> <Nop>
no <up> <Nop>
ino <down> <Nop>
ino <left> <Nop>
ino <right> <Nop>
ino <up> <Nop>
vno <down> <Nop>
vno <left> <Nop>
vno <right> <Nop>
vno <up> <Nop>