Add file /etc/vim/vimrc.local
This commit is contained in:
parent
a57361bc7c
commit
ab4b6433db
2 changed files with 52 additions and 0 deletions
2
build.sh
2
build.sh
|
@ -255,6 +255,8 @@ vim
|
|||
update-alternatives --set editor /usr/bin/vim.basic
|
||||
EOF
|
||||
|
||||
apply_file 644 '/etc/vim/vimrc.local'
|
||||
|
||||
##
|
||||
# Save fake hardware clock time for more realistic time after startup.
|
||||
#
|
||||
|
|
50
files/etc/vim/vimrc.local
Normal file
50
files/etc/vim/vimrc.local
Normal file
|
@ -0,0 +1,50 @@
|
|||
filetype plugin on
|
||||
filetype indent on
|
||||
|
||||
" Set to auto read when a file is changed from the outside
|
||||
set autoread
|
||||
|
||||
set wildignore+=.git\*,.hg\*,.svn\*
|
||||
|
||||
if has('mouse')
|
||||
set mouse=a
|
||||
endif
|
||||
|
||||
" Ignore case when searching
|
||||
set ignorecase
|
||||
" Makes search act like search in modern browsers
|
||||
set incsearch
|
||||
|
||||
syntax on
|
||||
|
||||
" Set utf8 as standard encoding and en_US as the standard language
|
||||
set encoding=utf8
|
||||
|
||||
" Use Unix as the standard file type
|
||||
set ffs=unix,dos,mac
|
||||
|
||||
" Turn backup off, since most stuff is in SVN, git etc. anyway...
|
||||
set nobackup
|
||||
set nowb
|
||||
set noswapfile
|
||||
|
||||
set number
|
||||
set relativenumber
|
||||
map <C-t> :set relativenumber!<CR>
|
||||
|
||||
set expandtab
|
||||
set tabstop=2
|
||||
set shiftwidth=2
|
||||
|
||||
" Treat long lines as break lines (useful when moving around in them)
|
||||
map j gj
|
||||
map k gk
|
||||
|
||||
" Smart way to move between windows
|
||||
map <C-j> <C-W>j
|
||||
map <C-k> <C-W>k
|
||||
map <C-h> <C-W>h
|
||||
map <C-l> <C-W>l
|
||||
|
||||
" Always show the status line
|
||||
set laststatus=2
|
Reference in a new issue