jarolrod / vim-python-ide
- среда, 22 ноября 2017 г. в 03:15:31
vimrc geared towards python development
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
cd .vim/bundle/YouCompleteMe/
./install.sh --clang-completer --system-libclang
Base16 is used to theme vim, it can also theme your terminal. Follow these steps to install:
git clone https://github.com/chriskempson/base16-shell.git ~/.config/base16-shell
BASE16_SHELL=$HOME/.config/base16-shell/
[ -n "$PS1" ] && [ -s $BASE16_SHELL/profile_helper.sh ] && eval "$($BASE16_SHELL/profile_helper.sh)"
# Base16 Shell
if status --is-interactive
eval sh $HOME/.config/base16-shell/scripts/base16-default-dark.sh
end
if filereadable(expand("~/.vimrc_background"))
let base16colorspace=256
source ~/.vimrc_background
endif
This plugin is used to show file icons in NerdTree and requires additional steps to install:
set encoding=utf8
set guifont=<FONT_NAME> <FONT_SIZE>
let g:airline_powerline_fonts = 1
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
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>
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>