diff options
Diffstat (limited to 'vimrc-full')
-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 | |||