Monday, 10 June 2013
Vim configuration
I have known vim for a long time. But until recently, I get to know how to use it efficiently. The power of vim originates from its various plugins. Since there is no center repository for these plugins like textmate, some plugins are hard to install; Conflicts also appear now and then.
The first thing to do is to configure the compile parameters. Some options are turned on to support more plugins, e.g., command-T requires ruby is enabled by vim.
./configure --with-features=BIG --enable-pythoninterp --enable-rubyinterp --enable-gui=no --with-x --enable-cscope --prefix=/home/wangwei/software
Once vim is installed. The first plugin to download is pathogen, which helps to manage your plugins. Next, you can configure your .vimrc file for window split, cursor moving, folding, etc. A good example is from nvie. The most frequently plugins I am using are: NERD-Tree, which is a file system explorer; Pyclewn, a plugin for gdb and pdb; vim-flake8, which is a superset of pep8 and pyflake for python syntax and style check. Python syntax folding, a plugin for python code folding based on syntax(the default folding/unfolding toggle is the space key).
Pyclewn puts the standard output into /dev/null by default. To display the standard output, open another terminal, type tty command(let the result by /dev/pts/11), set the tty in vim by : Cinferiortty /dev/pts/11.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment