aboutsummaryrefslogtreecommitdiff
path: root/vimrc-full
diff options
context:
space:
mode:
authorMax Christian Pohle2017-08-28 09:28:37 +0200
committerMax Christian Pohle2017-08-28 09:28:37 +0200
commit74dd0862cd02abee851328caf74194973ee035af (patch)
tree81bb26e024b320c21568e9f9162d6abdd4cf689f /vimrc-full
parente2f97bc135be76c2625f48ad97ac6797744bede4 (diff)
downloadvim-karlmarks-74dd0862cd02abee851328caf74194973ee035af.tar.bz2
vim-karlmarks-74dd0862cd02abee851328caf74194973ee035af.zip
Fixed scrolling issues and little reordering
Diffstat (limited to 'vimrc-full')
-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
..