begin reorganizing
This commit is contained in:
parent
a8b1ea7fde
commit
8ac81c64f5
50
vimrc
50
vimrc
@ -1,33 +1,24 @@
|
|||||||
|
"==============================================================================
|
||||||
|
" General Settings
|
||||||
|
"==============================================================================
|
||||||
set nocompatible
|
set nocompatible
|
||||||
|
syntax enable
|
||||||
if has("autocmd")
|
|
||||||
filetype plugin indent on
|
filetype plugin indent on
|
||||||
|
set backspace=indent,eol,start
|
||||||
" For all text files set 'textwidth' to 78 characters.
|
|
||||||
autocmd FileType text setlocal textwidth=78
|
|
||||||
|
|
||||||
" When editing a file, always jump to the last known cursor position.
|
|
||||||
" Don't do it when the position is invalid or when inside an event handler
|
|
||||||
" (happens when dropping a file on gvim).
|
|
||||||
autocmd BufReadPost *
|
|
||||||
\ if line("'\"") > 0 && line("'\"") <= line("$") |
|
|
||||||
\ exe "normal! g`\"" |
|
|
||||||
\ endif
|
|
||||||
endif " has("autocmd")
|
|
||||||
|
|
||||||
set ruler
|
|
||||||
set expandtab
|
|
||||||
set tabstop=4
|
|
||||||
set shiftwidth=4
|
|
||||||
set softtabstop=4
|
|
||||||
set autoindent
|
set autoindent
|
||||||
set copyindent
|
set copyindent
|
||||||
set cindent
|
set tabstop=4
|
||||||
set backspace=indent,eol,start
|
set shiftwidth=4
|
||||||
set mouse=a
|
set expandtab
|
||||||
syntax on
|
set softtabstop=4
|
||||||
set hlsearch
|
set ruler
|
||||||
set showmatch
|
set showmatch
|
||||||
|
if has("persistent_undo")
|
||||||
|
"set undodir=$VIMHOME/undo
|
||||||
|
"set undofile
|
||||||
|
endif
|
||||||
|
set mouse=a
|
||||||
|
set hlsearch
|
||||||
set incsearch
|
set incsearch
|
||||||
set tags=./tags;/
|
set tags=./tags;/
|
||||||
set grepprg=internal
|
set grepprg=internal
|
||||||
@ -101,4 +92,13 @@ if has("autocmd")
|
|||||||
autocmd FileType xhtml setlocal sw=2 ts=2 sts=2
|
autocmd FileType xhtml setlocal sw=2 ts=2 sts=2
|
||||||
autocmd FileType xml setlocal sw=2 ts=2 sts=2
|
autocmd FileType xml setlocal sw=2 ts=2 sts=2
|
||||||
autocmd FileType yaml setlocal sw=2 ts=2 sts=2
|
autocmd FileType yaml setlocal sw=2 ts=2 sts=2
|
||||||
|
autocmd FileType text setlocal textwidth=78
|
||||||
|
|
||||||
|
" When editing a file, always jump to the last known cursor position.
|
||||||
|
" Don't do it when the position is invalid or when inside an event handler
|
||||||
|
" (happens when dropping a file on gvim).
|
||||||
|
autocmd BufReadPost *
|
||||||
|
\ if line("'\"") > 0 && line("'\"") <= line("$") |
|
||||||
|
\ exe "normal! g`\"" |
|
||||||
|
\ endif
|
||||||
endif " has("autocmd")
|
endif " has("autocmd")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user