aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--vimrc-full22
1 files changed, 14 insertions, 8 deletions
diff --git a/vimrc-full b/vimrc-full
index 17f6038..dcc5b76 100644
--- a/vimrc-full
+++ b/vimrc-full
@@ -1,5 +1,10 @@
1" vim: noai:ts=2:sw=2:sts=2 iskeyword+=\:,\!,\<,\>,\-,\& 1" vim: noai:ts=2:sw=2:sts=2 iskeyword+=\:,\!,\<,\>,\-,\&
2 2
3" scripts from the default vim installation, which do not get loaded by default, but are useful.
4" if filereadable($VIMRUNTIME.'/macros/editexisting.vim')
5" source $VIMRUNTIME/macros/editexisting.vim
6" endif
7
3"======================================================================================================================= 8"=======================================================================================================================
4" GENERAL: 9" GENERAL:
5"======================================================================================================================= 10"=======================================================================================================================
@@ -7,11 +12,6 @@ set textwidth=120 | " better done with modeline
7set ts=4 sts=4 sw=4 expandtab | " better done with a modeline 12set ts=4 sts=4 sw=4 expandtab | " better done with a modeline
8set redrawtime=1000 | " Timeout in milliseconds for redrawing the display / CTRL+L to retry 13set redrawtime=1000 | " Timeout in milliseconds for redrawing the display / CTRL+L to retry
9 14
10" scripts from the default vim installation, which do not get loaded by default, but are useful.
11if filereadable('macros/editexisting')
12 silent :runtime macros/editexisting.vim
13endif
14
15"======================================================================================================================= 15"=======================================================================================================================
16" SHELL 16" SHELL
17"======================================================================================================================= 17"=======================================================================================================================
@@ -136,8 +136,9 @@ if has("gui_running")
136 136
137 " its possible to define alternative fonts (order matters) 137 " its possible to define alternative fonts (order matters)
138 set guifont= 138 set guifont=
139 set guifont+=Droid\ Sans\ Mono\ for\ Powerline\ 10 139 set guifont+=Source\ Code\ Pro\ Semi-Bold\ 10
140 set guifont+=Source\ Code\ Pro\ for\ Powerline\ SemiBold\ 10 140 set guifont+=Source\ Code\ Pro\ for\ Powerline\ SemiBold\ 10
141 set guifont+=Droid\ Sans\ Mono\ for\ Powerline\ 10
141 set guifont+=Dejavu\ Sans\ Mono\ for\ Powerline\ Semibold 142 set guifont+=Dejavu\ Sans\ Mono\ for\ Powerline\ Semibold
142 set guifont+=Meslo\ LG\ M\ for\ Powerline\ 10 143 set guifont+=Meslo\ LG\ M\ for\ Powerline\ 10
143endif 144endif
@@ -183,7 +184,6 @@ set number | " turn line numbers on/off (performance decrease
183set pumheight=8 | " Determines the maximum number of items to show in the popup menu for 184set pumheight=8 | " Determines the maximum number of items to show in the popup menu for
184set path+=** | " allow recursive searches for files 185set path+=** | " allow recursive searches for files
185set scrolljump=5 | " how many lines get scrolled into view when cursor reaches the screens edge 186set scrolljump=5 | " how many lines get scrolled into view when cursor reaches the screens edge
186set scrolloff=3 | " keeps cursor centered
187set splitbelow | " open new windows below the current one (i find that more intuitive) 187set splitbelow | " open new windows below the current one (i find that more intuitive)
188set shiftround | " indent/unindent snaps to multiple of shiftwidths 188set shiftround | " indent/unindent snaps to multiple of shiftwidths
189set shortmess+=I | " don't give the intro message when starting Vim |:intro|. 189set shortmess+=I | " don't give the intro message when starting Vim |:intro|.
@@ -199,6 +199,7 @@ set virtualedit=all | " virtual edit should be default behaviour, beca
199set writedelay=0 199set writedelay=0
200set wildmenu | " use a menu in the command line 200set wildmenu | " use a menu in the command line
201set wildmode=longest:full | " do not preselect any entry and show all possible 201set wildmode=longest:full | " do not preselect any entry and show all possible
202set sessionoptions-=blank
202 203
203set nocindent smartindent | " use smart indent rather then cindent 204set nocindent smartindent | " use smart indent rather then cindent
204set noshiftround | " indent/unindent sna=ps to multiple of shiftwidths 205set noshiftround | " indent/unindent sna=ps to multiple of shiftwidths
@@ -771,5 +772,10 @@ endif
771" ====================================================================================================================== 772" ======================================================================================================================
772" avoids openin an empty buffer when restoring bufferlist from viminfo... 773" avoids openin an empty buffer when restoring bufferlist from viminfo...
773" if argc() == 0 774" if argc() == 0
774" autocmd VimEnter * nested :silent bun 775" silent autocmd VimEnter * nested :silent bun
775" endif 776" endif
777
778set scrolloff=0 | " keeps cursor centered
779autocmd VimEnter,WinEnter * exec ':set scrolljump='.winheight(0)/2
780
781
..