Skip to content

alessandrocucci/VimSettings

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

La mia configurazione di VIM

In questo repository ho messo il mio file .vimrc e i plugin che uso. In particolare, sono inclusi i seguenti plugin:

- SimpylFold (code folding)
- Jedi-Vim (auto-completition)
- vim-python-PEP8-indent (indentation)
- Syntastic (syntax highlight)
- Cucci Theme (color theme)
- NerdTree (files tree)
- NerdCommenter (commentare in blocco delle righe)
- ctrlp.vim (handle multiple files)
- vim-fugitive (Git wrapper)
- powerline (enhanced status line)
- vim-signify (vari diffs)
- vim-startify (spash screen - NB. me lo sono personalizzato)
- vim-gitgutter (git diffs)
- tagbar (class tree, necessita di exuberant ctags)

In più, sono state definite queste scorciatoie da tastiera:

  • <space> Folding
  • <F9> Chiudi tutto (folding)
  • <F10> Apri tutto (folding)
  • <C-J> Spostanti nel buffer a destra
  • <C-K> Spostati nel buffer in alto
  • <C-L> Spostati nel buffer in basso
  • <C-H> Spostati nel buffer a sinistra
  • <C-n> Mostra alberatura
  • <F5> Salva ed esegui con Python
  • <F3> Apre un nuovo buffer a destra con split verticale
  • <F8> Mostra alberatura classi

Altre definizioni:

" Python - PEP 8
au BufNewFile,BufRead *.py
\ set tabstop=4 |
\ set softtabstop=4 |
\ set shiftwidth=4 |
\ set textwidth=79 |
\ set expandtab |
\ set autoindent |
\ set fileformat=unix
 
" Full Stack
au BufNewFile,BufRead *.js, *.html, *.css
\ set tabstop=2 |
\ set softtabstop=2 |
\ set shiftwidth=2 |

Installazione

  • Clona questo repo, metti tutto dentro .vim e il file .vimrc in ~/
  • Installa Vundle:
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
  • Installa exuberant ctags, e con pip install: jedi, pyflakes
  • Entra in vim ed esegui :PluginInstall
  • Installa i font per Powerline con:
git clone https://github.com/powerline/fonts.git
cd fonts
./install.sh

ScreenShots

alt tag alt tag

License

MIT

Free Software, Hell Yeah!

About

My Vim Settings for python development

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published