Vim

From FVue
Jump to: navigation, search

Whishlist

  • Jump to 'parent' brace. E.g. when inside a class method, first jump to method begin, second jump to class begin
  • Insert code-snippets.

Programs to install

Vim: Programs to install

Discoveries

20051118

  • With xml.vim installed, you can press backslash '\', followed by 'x' to format the selection with a next-to-specify start-tag and end-tag.

My .vimrc

    "Enable auto-indenting
set autoindent
     " Allow backspacing over autoindent, end-of-line and insert-start-position
set backspace=indent,eol,start
     " Use spaces instead of tabs
set expandtab
     " Show current match while typing search pattern
set incsearch
     " Use 4 spaces for (auto)indent
set shiftwidth=4
     " Switch on ruler
set ruler
     " Use 4 spaces for a tab
set tabstop=4
     " Set textwidth to 100 when formatting text via 'gq'
set textwidth=100



"=== Syntax ==================================================================


    "  Is Vim compiled with syntax highlighting support and
    "+ does the terminal support at least 3 colors?
if has('syntax') && (&t_Co > 2)
    "  Yes, syntax hightlighting should be effective;
        " Set color scheme
    colorscheme elflord
        " Switch on syntax highlighting
    syntax on
endif

My .gvimrc

set guifont=Bitstream\ Vera\ Sans\ Mono\ 9

Comments

blog comments powered by Disqus