Archive

Posts Tagged ‘editor’

Gvim – Set Window Width and Height

September 10th, 2009 No comments

The width and the height of the gvim window can be changed using set command. Let’s add these commands to the _vimrc file.

  • Click “Edit” -> “Startup Settings“. The _vimrc file will be opened in the gvim window.
  • Add the following commands to the end of the file:

    " Set the width and the height of the gvim window.
    "
    set columns=120
    set lines=60
  • Save the _vimrc file and quit gvim.
  • Restart gvim to see if window width and height have changed.
Categories: Tips and Tricks Tags: , ,

Gvim – Save Settings for Font and Color Scheme

September 9th, 2009 No comments

Gvim is the GUI of the popular text editor vim. You can change the color scheme and the font of the gvim window from “Edit” menu. However, in order for gvim to remember your settings, you have to edit the configuration file _vimrc, which is usually located in the installation directory of vim.

Here are the steps to save settings for the font and the color scheme of the gvim window:

  • Click “Edit” -> “Startup Settings“. The _vimrc file will be opened in the gvim window.
  • Add the following commands to the end of the file:

    " Set the color scheme. Change 'darkblue' to the name of your scheme.
    "
    color darkblue
     
    " Set the font. Change 'Courier_New' to your favorite font.
    "
    set guifont=Courier_New:h10
  • Save the _vimrc file and quit gvim.
  • Restart gvim to check if the settings have been saved.
Categories: Tips and Tricks Tags: , ,