Coder Social home page Coder Social logo

vim-settings's Introduction

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 7.4 (2013 Aug 10, compiled Apr 13 2015 00:22:48)

MacOS X (unix) version

###Dependences

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

[Maybe I have forgot some other dependences :( ]

###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

Copy the .vim and .vimrc to your home.

cp -r .vim ~
cp .vimrc ~

or use vundle, just need copy .vimrc and:

:PluginInstall

vim-settings's People

Contributors

axiaoxin avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.