mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-27 11:13:24 +02:00
vim: Update to 7.4.
This commit is contained in:
File diff suppressed because it is too large
Load Diff
1
config/rootfiles/core/fifteen/filelists/vim
Symbolic link
1
config/rootfiles/core/fifteen/filelists/vim
Symbolic link
@@ -0,0 +1 @@
|
||||
../../../common/vim
|
||||
42
config/vim/vimrc
Normal file
42
config/vim/vimrc
Normal file
@@ -0,0 +1,42 @@
|
||||
if v:lang =~ "utf8$" || v:lang =~ "UTF-8$"
|
||||
set fileencodings=ucs-bom,utf-8,latin1
|
||||
endif
|
||||
|
||||
set nocompatible
|
||||
set bs=indent,eol,start " allow backspacing over everything in insert mode
|
||||
set viminfo='20,\"50 " read/write a .viminfo file, don't store more
|
||||
" than 50 lines of registers
|
||||
set history=50 " keep 50 lines of command line history
|
||||
set ruler " show the cursor position all the time
|
||||
|
||||
" Only do this part when compiled with support for autocommands
|
||||
if has("autocmd")
|
||||
augroup ipfire
|
||||
autocmd!
|
||||
|
||||
" In text files, always limit the width of text to 78 characters
|
||||
" autocmd BufRead *.txt set tw=78
|
||||
|
||||
" When editing a file, always jump to the last cursor position
|
||||
autocmd BufReadPost *
|
||||
\ if line("'\"") > 0 && line ("'\"") <= line("$") |
|
||||
\ exe "normal! g'\"" |
|
||||
\ endif
|
||||
|
||||
" don't write swapfile on most commonly used directories for NFS mounts or USB sticks
|
||||
autocmd BufNewFile,BufReadPre /media/*,/mnt/* set directory=~/tmp,/var/tmp,/tmp
|
||||
|
||||
" start with spec file template
|
||||
autocmd BufNewFile *.spec 0r /usr/share/vim/vimfiles/template.spec
|
||||
|
||||
augroup END
|
||||
endif
|
||||
|
||||
syntax on
|
||||
if (&term == "iterm") || (&term == "putty")
|
||||
set background=dark
|
||||
endif
|
||||
|
||||
" Don't wake up system with blinking cursor:
|
||||
" http://www.linuxpowertop.org/known.php
|
||||
let &guicursor = &guicursor . ",a:blinkon0"
|
||||
Reference in New Issue
Block a user