Skip to content

Instantly share code, notes, and snippets.

@MokkeMeguru
Last active February 17, 2020 04:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MokkeMeguru/992bfb9303c31789eaaa7ae6b451ffae to your computer and use it in GitHub Desktop.
Save MokkeMeguru/992bfb9303c31789eaaa7ae6b451ffae to your computer and use it in GitHub Desktop.
vimrc for python tensorflow
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
@MokkeMeguru
Copy link
Author

You should try
:PluginInstall

@MokkeMeguru
Copy link
Author

Omni completion
=> C-x C-o

@MokkeMeguru
Copy link
Author

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