Extremely easy-to-use Vim configuration and Vim Configuration
Https://github.com/ma6174/vim-deprecatedsimple installation tips:
Open the terminal and execute the following command to automatically install it:
wget -qO- https://raw.github.com/ma6174/vim/master/setup.sh | sh -x
Or manually install: (ubuntu is used as an example)
- Install ctags:
sudo apt-get install ctags
- Install some essential programs:
sudo apt-get install xclip vim-gnome astyle python-setuptools
- Python code formatting tool:
sudo easy_install -ZU autopep8
sudo ln -s /usr/bin/ctags /usr/local/bin/ctags
- Clone the configuration file:
cd ~/ && git clone git://github.com/ma6174/vim.git
mv ~/vim ~/.vim
mv ~/.vim/.vimrc ~/
- Clone bundle program:
git clone https://github.com/gmarik/vundle.git ~/.vim/bundle/vundle
- Open vim and execute the bundle Program
:BundleInstall
- Re-open vim to see the effect
Compile a python Program
- Input
.
Or pressTAB
The key triggers the code complementing function.
:w
After saving the code, the system automatically checks the code errors and specifications.
- Press
F6
You can presspep8
Code Format Optimization
- Press
F5
One-click Code Execution
Multi-Window operations
- Use
: Vs + file name
Vertically split windows
- Use
Ctrl + w
You can quickly switch between windows
Compile a markdown File
- After generation, press
fi
You can use firefox to open the correspondinghtml
File Preview
- Of course, you can also use the omnipotent
F5
Key to one-click conversion and open Preview
- If there is some confusion on the screen during the process of opening, you can press
Ctrl + l
To restore
Quick notes
- Press
\
Automatically comment based on file type
Usage