Skip to content

grcandy/vim-settings

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

102 Commits
 
 
 
 

Repository files navigation

My VIM Settings

This project is extracted from my dot files

This VIM settings is for Python programmers on Mac OSX, may be you will write some html, css, js, Markdown, NodeJS and Clojure. It use Vundle to manage the plugins.

VIM Version

VIM - Vi IMproved 8.1 (2018 May 18, compiled Oct 10 2018 15:24:01)

MacOS X (unix) version

CentOS 7

Dependences

brew install vim git npm ctags
sudo npm -g install instant-markdown-d jshint
sudo pip install isort jedi yapf flake8 virtualenvwrapper autopep8

Plugins

use vundle manage plugins

git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim

Short Keys

  • change buf: ]b [b
  • change tab: ]t [t
  • copy (all/selected) content: Ctrl+c
  • write RO file: w!!
  • line number toggle: <F2>
  • nerdtree toggle: <F3>
  • tagbar toggle: <F4>
  • run python script: <F5>
  • open a new tab: <F6>
  • paste toggle: <F7>
  • PEP8 format by autopep8: <F8>
  • PEP8 format by yapf: <F9>
  • wrap "/' for a word: w"/w'
  • continue indent text to left or right on select/normal mode: > <
  • change window: <C-HJKL>
  • preview to select emoji: :<C-e>
  • find files: <C-p>
  • complete python code: <C-n>
  • format json line: <leader>wj <leader>pj
  • change surround: csXY
  • del surround: dsX
  • comment/uncomment: \cc/\cu
  • table mode: \tm
  • color picker: \cp \cpr \cph \cpra

Features

  • no backup and swap file
  • correct encoding for chinese
  • beautiful statusline and startify
  • auto reload vimrc when it is changed
  • highlight and ignorecase for search text
  • support using mouse
  • auto remove whitespace which at the line tail and blank line at the latest
  • show content in terminal when exit the vim
  • open a file at the latest change position
  • auto check PEP8 format when read or write a python script
  • one key to format python code with PEP8
  • run python script with virtualenv if there is a $VIRTUAL_ENV (open script with virtualenv in terminal)
  • auto open browser to preview when you open a markdown file, auto close the browser when you close the markdown file.
  • auto complete the python code, use Ctrl+n
  • show git diff in vim
  • show indent guides
  • multiple cursors for editing
  • auto complete python sniptes by <tab> or <shift-tab>
  • use tomorrow-night-bright color scheme
  • color preview for .css files
  • auto format markdown tables in table mode
  • emmet for vim, chinese tutorial http://www.zfanw.com/blog/zencoding-vim-tutorial-chinese.html

Screenshots

default open a python file

working


next pics come from the plugin projects

ctrlp find files:

ultisnips (I am not using YouCompleteMe, using jedi-vim)

jedi complete

preview markdown

json line format(I am the author 😳)

emoji

startify

multiple cursors

vim-coloresque

vim-table-mode

Usage

use vundle, just need copy .vimrc to your HOME path and run :PluginInstall in vim.

if added vim-go, must need your vim version > 7.4+, and need run :GoInstallBinaries to install all the vim-go necessary binaries

About

Vimrc for Pythoners (一个适合主要用于编写Python的Vim配置)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Vim Script 100.0%