Salvo il mio .vimrc
Salvo il mio .vimrc perche' me lo perdo spesso!
" Attempt to determine the type of a file based on its name and possibly its
" contents. Use this to allow intelligent auto-indenting for each filetype,
" and for plugins that are filetype specific.
filetype indent plugin on
" Enable syntax highlighting
" Better command-line completion
" Show partial commands in the last line of the screen
" Use case insensitive search, except when using capital letters
" Allow backspacing over autoindent, line breaks and start of insert action
" When opening a new line and no filetype-specific indenting is enabled, keep
" the same indent as the line you're currently on. Useful for READMEs, etc.
" Stop certain movements from always going to the first character of a line.
" While this behaviour deviates from that of Vi, it does what most users
" coming from other editors would expect.
" Display the cursor position on the last line of the screen or in the status
" line of a window
" Always display the status line, even if only one window is displayed
" Instead of failing a command because of unsaved changes, instead raise a
" dialogue asking if you wish to save changed files.
" Use visual bell instead of beeping when doing something wrong
" And reset the terminal code for the visual bell. If visualbell is set, and
" this line is also included, vim will neither flash nor beep. If visualbell
" is unset, this does nothing.
" Enable use of the mouse for all modes
" Set the command window height to 2 lines, to avoid many cases of having to
" "press <Enter> to continue"
" Display line numbers on the left
" Quickly time out on keycodes, but never time out on mappings
set notimeout ttimeout ttimeoutlen=200
" Use <F11> to toggle between 'paste' and 'nopaste'
" Do not change 'tabstop' from its default value of 8 with this setup.
" Map Y to act like D and C, i.e. to yank until EOL, rather than act as yy,
" which is the default
map Y y$
" Map <C-L> (redraw screen) to also turn off search highlighting until the
" next search
nnoremap <C-L> :nohl<CR><C-L>