These are some guides for various use.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
670 B

  1. # Python
  2. Python is a common programming language.
  3. In this entry we will focus on making vim support python and use vim as an ide
  4. for it.
  5. ## Autocompletion
  6. ### Coc
  7. To enable autocompletion for [coc](coc.md) you need to install the coc-package
  8. `coc-python`. Do that by adding it to the extension section of your `init.vim`.
  9. ## Formatting
  10. Install `autopep8` to your system.
  11. Then add `autocmd FileType python setlocal formatprg=autopep8\ -` and
  12. `autocmd FileType python noremap <F8> gggqG` to your
  13. `init.vim` to reformat on F8.
  14. ## Line length
  15. To set your python buffers to show column 80 add
  16. `autocmd BufEnter,FileType python set colorcolumn=80` to your `init.vim`.