Post here shortcuts and some commands that can help somebody to program efficiently and quickly.
If you want line number permanently enable while making any c program,then add
:set number in VIMRC file.
- Vim Editor Command to automatically indent the code with proper tab spaces and to increase readability of a program.
- First,press ESC key.Then type :(colon).
- Press Enter .
- then type gg=G.
- THIS WILL AUTO-INDENT YOUR CODE AUTOMATICALLY.
- To set proper tab space and other attributes.
- open vimrc file which is configuration file for vim editor.
- vim /etc/vimrc.
If you want line number permanently enable while making any c program,then add
:set number in VIMRC file.
- Set these options to make c program more readable and indented.
- :set pastetoggle<f5>
- :set tabstop=6
- :set shiftwidth=4
- :set cindent
- TO CHANGE COLORSCHEME OF VIM EDITOR
- Press esc,then enter command :colorscheme
- To view available colorschemes press TAB
- choose your desired colorscheme and press ENTER.
No comments:
Post a Comment