diff options
author | Max Christian Pohle | 2017-08-28 09:28:37 +0200 |
---|---|---|
committer | Max Christian Pohle | 2017-08-28 09:28:37 +0200 |
commit | 74dd0862cd02abee851328caf74194973ee035af (patch) | |
tree | 81bb26e024b320c21568e9f9162d6abdd4cf689f | |
parent | e2f97bc135be76c2625f48ad97ac6797744bede4 (diff) | |
download | vim-karlmarks-74dd0862cd02abee851328caf74194973ee035af.tar.bz2 vim-karlmarks-74dd0862cd02abee851328caf74194973ee035af.zip |
Fixed scrolling issues and little reordering
-rw-r--r-- | vimrc-full | 22 |
1 files changed, 14 insertions, 8 deletions
@@ -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 | |||
7 | set ts=4 sts=4 sw=4 expandtab | " better done with a modeline | 12 | set ts=4 sts=4 sw=4 expandtab | " better done with a modeline |
8 | set redrawtime=1000 | " Timeout in milliseconds for redrawing the display / CTRL+L to retry | 13 | set 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. | ||
11 | if filereadable('macros/editexisting') | ||
12 | silent :runtime macros/editexisting.vim | ||
13 | endif | ||
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 |
143 | endif | 144 | endif |
@@ -183,7 +184,6 @@ set number | " turn line numbers on/off (performance decrease | |||
183 | set pumheight=8 | " Determines the maximum number of items to show in the popup menu for | 184 | set pumheight=8 | " Determines the maximum number of items to show in the popup menu for |
184 | set path+=** | " allow recursive searches for files | 185 | set path+=** | " allow recursive searches for files |
185 | set scrolljump=5 | " how many lines get scrolled into view when cursor reaches the screens edge | 186 | set scrolljump=5 | " how many lines get scrolled into view when cursor reaches the screens edge |
186 | set scrolloff=3 | " keeps cursor centered | ||
187 | set splitbelow | " open new windows below the current one (i find that more intuitive) | 187 | set splitbelow | " open new windows below the current one (i find that more intuitive) |
188 | set shiftround | " indent/unindent snaps to multiple of shiftwidths | 188 | set shiftround | " indent/unindent snaps to multiple of shiftwidths |
189 | set shortmess+=I | " don't give the intro message when starting Vim |:intro|. | 189 | set 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 | |||
199 | set writedelay=0 | 199 | set writedelay=0 |
200 | set wildmenu | " use a menu in the command line | 200 | set wildmenu | " use a menu in the command line |
201 | set wildmode=longest:full | " do not preselect any entry and show all possible | 201 | set wildmode=longest:full | " do not preselect any entry and show all possible |
202 | set sessionoptions-=blank | ||
202 | 203 | ||
203 | set nocindent smartindent | " use smart indent rather then cindent | 204 | set nocindent smartindent | " use smart indent rather then cindent |
204 | set noshiftround | " indent/unindent sna=ps to multiple of shiftwidths | 205 | set 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 | |||
778 | set scrolloff=0 | " keeps cursor centered | ||
779 | autocmd VimEnter,WinEnter * exec ':set scrolljump='.winheight(0)/2 | ||
780 | |||
781 | |||