scrolloff=5
This commit is contained in:
parent
cc31d5f1db
commit
c8cb2ca0b0
1 changed files with 6 additions and 3 deletions
9
.vimrc
9
.vimrc
|
|
@ -28,7 +28,7 @@ endif
|
||||||
set textwidth=120
|
set textwidth=120
|
||||||
set wrap " auto wrap line view, but not text itself
|
set wrap " auto wrap line view, but not text itself
|
||||||
|
|
||||||
filetype indent on " activates indenting for files
|
filetype indent on " activates indenting for files
|
||||||
set autoindent " automatic indentation
|
set autoindent " automatic indentation
|
||||||
set smartindent
|
set smartindent
|
||||||
set softtabstop=4 " width of a tab
|
set softtabstop=4 " width of a tab
|
||||||
|
|
@ -75,6 +75,9 @@ set foldlevelstart=20 " buffer are always loaded with opened folds
|
||||||
set undofile
|
set undofile
|
||||||
set undodir=~/.vim/undodir
|
set undodir=~/.vim/undodir
|
||||||
|
|
||||||
|
" always keep lines around the cursor
|
||||||
|
set scrolloff=5
|
||||||
|
|
||||||
let mapleader = "," " leader key is comma
|
let mapleader = "," " leader key is comma
|
||||||
|
|
||||||
" xx will delete the line without copying it into the default register
|
" xx will delete the line without copying it into the default register
|
||||||
|
|
@ -119,9 +122,9 @@ map <leader>p :CtrlP %%<cr>
|
||||||
" use shift-space as escape
|
" use shift-space as escape
|
||||||
"inoremap <S-Space> <Esc>
|
"inoremap <S-Space> <Esc>
|
||||||
|
|
||||||
set list
|
|
||||||
" print tabs with a special character (add ",eol:·" for end of lines)
|
" print tabs with a special character (add ",eol:·" for end of lines)
|
||||||
set listchars=trail:·,nbsp:·,tab:▸\ ,
|
set listchars=trail:·,nbsp:·,tab:▸\ ,extends:»,precedes:«,
|
||||||
|
set list
|
||||||
|
|
||||||
au VimEnter * echomsg system('/usr/games/fortune vimtweets')
|
au VimEnter * echomsg system('/usr/games/fortune vimtweets')
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue