Last active
February 17, 2020 04:29
-
-
Save MokkeMeguru/992bfb9303c31789eaaa7ae6b451ffae to your computer and use it in GitHub Desktop.
vimrc for python tensorflow
This file contains 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
set nocompatible | |
set ignorecase | |
set hlsearch | |
set number | |
set showmatch | |
syntax on | |
set tabstop=4 | |
set statusline=%F | |
set statusline+=%m | |
set statusline+=%r | |
set statusline+=%h | |
set statusline+=%w | |
set statusline+=%= | |
set statusline+=[ENC=%{&fileencoding}] | |
set laststatus=2 | |
filetype off | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
"settings for cherry blossom theme | |
Plugin 'float168/vim-colors-cherryblossom' | |
"settings for vim vundle | |
Plugin 'VundleVim/Vundle.vim' | |
Plugin 'tpope/vim-fugitive' | |
Plugin 'git://git.wincent.com/command-t.git' | |
"settings gor vim plug | |
Plugin 'vim-airline/vim-airline' | |
Plugin 'vim-airline/vim-airline-themes' | |
"settings for python language server | |
Plugin 'prabirshrestha/vim-lsp' | |
Plugin 'prabirshrestha/async.vim' | |
Plugin 'ryanolsonx/vim-lsp-python' | |
Plugin 'prabirshrestha/asyncomplete.vim' | |
Plugin 'davidhalter/jedi-vim' | |
call vundle#end() | |
filetype plugin indent on | |
let g:lsp_log_verbose=1 | |
let g:lsp_log_file=expand('~/.cache/tmp/vim-lsp.log') | |
let g:lsp_log_diagnostics_echo_cursor=1 | |
let g:asyncomplete_auto_popup=1 | |
if executable('pyls') | |
" pip install python-language-server | |
au User lsp_setup call lsp#register_server({ | |
\ 'name': 'pyls', | |
\ 'cmd': {server_info->['pyls']}, | |
\ 'whitelist': ['python'], | |
\ }) | |
endif | |
function! s:on_lsp_buffer_enabled() abort | |
setlocal omnifunc=lsp#complete | |
setlocal signcolumn=yes | |
nmap <buffer> gd <plug>(lsp-definition) | |
nmap <buffer> <f2> <plug>(lsp-rename) | |
endfunction | |
augroup lsp_install | |
au! | |
autocmd User lsp_buffer_enabled call s:on_lsp_buffer_enabled() | |
augroup END | |
set background=dark | |
colorscheme cherryblossom |
Omni completion
=> C-x C-o
To install vundle.vim
mkdir ~/.vim
mkdir ~/.vim/bundle
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You should try
:PluginInstall