1 if v:lang =~ "utf8$" || v:lang =~ "UTF-8$"
2 set fileencodings=ucs-bom,utf-8,latin1
6 set bs=indent,eol,start " allow backspacing over everything in insert mode
7 set viminfo='20,\"50 " read/write a .viminfo file, don't store more
8 " than 50 lines of registers
9 set history=50 " keep 50 lines of command line history
10 set ruler " show the cursor position all the time
12 " Only do this part when compiled with support for autocommands
17 " In text files, always limit the width of text to 78 characters
18 " autocmd BufRead *.txt set tw=78
20 " When editing a file, always jump to the last cursor position
22 \ if line("'\"") > 0 && line ("'\"") <= line("$") |
23 \ exe "normal! g'\"" |
26 " don't write swapfile on most commonly used directories for NFS mounts or USB sticks
27 autocmd BufNewFile,BufReadPre /media/*,/mnt/* set directory=~/tmp,/var/tmp,/tmp
29 " start with spec file template
30 autocmd BufNewFile *.spec 0r /usr/share/vim/vimfiles/template.spec
36 if (&term == "iterm") || (&term == "putty")
40 " Don't wake up system with blinking cursor:
41 " http://www.linuxpowertop.org/known.php
42 let &guicursor = &guicursor . ",a:blinkon0"