diff options
author | Max Christian Pohle | 2017-08-02 00:18:59 +0200 |
---|---|---|
committer | Max Christian Pohle | 2017-08-02 00:18:59 +0200 |
commit | 71c9159e83d0a721dcc069c89711ad8a48d4ac60 (patch) | |
tree | b9898e6c644991ca4c7df1d59e1a382cccf38357 /vimrc-full | |
parent | d7d4eadb02b1fc43da22c2d0fc129ff4f538ef65 (diff) | |
download | vim-71c9159e83d0a721dcc069c89711ad8a48d4ac60.tar.bz2 vim-71c9159e83d0a721dcc069c89711ad8a48d4ac60.zip |
Minor tweaks, especially for performance
Diffstat (limited to 'vimrc-full')
-rw-r--r-- | vimrc-full | 21 |
1 files changed, 5 insertions, 16 deletions
@@ -1,15 +1,3 @@ | |||
1 | " vim: tabstop=2 softtabstop=2 shiftwidth=2 textwidth=160 iskeyword+=\: | ||
2 | |||
3 | set encoding=utf-8 | " set up vim's cosole encoding (not file encoding, for which there is fileencoding=) | ||
4 | set t_Co=256 | " required on some ssh sessions | ||
5 | " set background=light | " | ||
6 | " set term=xtermc | " may be required on solaris | ||
7 | " set term=xterm-256color | ||
8 | " set termguicolors | ||
9 | |||
10 | "======================================================================================================================= | ||
11 | " MATTER_OF_TASTE: | ||
12 | "======================================================================================================================= | ||
13 | set textwidth=120 | " better done with modeline | 1 | set textwidth=120 | " better done with modeline |
14 | set ts=4 sts=4 sw=4 expandtab | " better done with a modeline | 2 | set ts=4 sts=4 sw=4 expandtab | " better done with a modeline |
15 | 3 | ||
@@ -35,7 +23,6 @@ set linebreak | " wrap long lines at char 'breakat', not inside | |||
35 | set mouse=n | " allow mouse in normal mode only, so one can use the terminals c&p feature in insert mode | 23 | set mouse=n | " allow mouse in normal mode only, so one can use the terminals c&p feature in insert mode |
36 | set mousemodel=popup | " only in gvim: right click opens a popup-menu | 24 | set mousemodel=popup | " only in gvim: right click opens a popup-menu |
37 | set nocursorcolumn | " turn visual cursor column off (improves performance) | 25 | set nocursorcolumn | " turn visual cursor column off (improves performance) |
38 | set nocursorline | " turn visual cursor line off (improves performance) | ||
39 | set nrformats+=alpha | " allows CTRL-A & CTRL-X to increment and decrement letters, not just numbers | 26 | set nrformats+=alpha | " allows CTRL-A & CTRL-X to increment and decrement letters, not just numbers |
40 | set nofoldenable | " disable folding, because we have zi to toggle foldenable :) | 27 | set nofoldenable | " disable folding, because we have zi to toggle foldenable :) |
41 | set exrc | " enable exrc, a specific .exrc per project, which can contain usual .vimrc commands | 28 | set exrc | " enable exrc, a specific .exrc per project, which can contain usual .vimrc commands |
@@ -46,7 +33,7 @@ set foldclose=all | " automatically fold, when the cursor leaves the | |||
46 | set foldopen=block,hor,search | " when do we unfold? | 33 | set foldopen=block,hor,search | " when do we unfold? |
47 | set foldtext=Foldtext() | " | 34 | set foldtext=Foldtext() | " |
48 | set foldnestmax=1 | " top level folding only | 35 | set foldnestmax=1 | " top level folding only |
49 | set relativenumber | " relative line numbers can speed up navigation | 36 | set norelativenumber | " relative line numbers can speed up navigation, but I could not get used to it till now |
50 | set noshowmode | " because we are using some powerline derivat | 37 | set noshowmode | " because we are using some powerline derivat |
51 | set nostartofline | " when scrolling: do not move the cursor to column 1 | 38 | set nostartofline | " when scrolling: do not move the cursor to column 1 |
52 | set notimeout ttimeout | " improves performance but is known to cause problems on slow terminals | 39 | set notimeout ttimeout | " improves performance but is known to cause problems on slow terminals |
@@ -71,6 +58,7 @@ set winminwidth=30 | " (and all other windows, so TODO: watch out) | |||
71 | set tags+=../tags | 58 | set tags+=../tags |
72 | " set textwidth=100 | " line length (80 used to be default, but...) | 59 | " set textwidth=100 | " line length (80 used to be default, but...) |
73 | " set colorcolumn= | " not used, because we have a :match directive for textwidth | 60 | " set colorcolumn= | " not used, because we have a :match directive for textwidth |
61 | set undofile | " preserve undo history when closing and reopening buffers (see :help undo-persistenece) | ||
74 | set updatetime=80 | " updates the screen more often | 62 | set updatetime=80 | " updates the screen more often |
75 | set viminfo+=% | " restore buffer list | 63 | set viminfo+=% | " restore buffer list |
76 | set virtualedit=all | " virtual edit should be default behaviour, because I don't see any reason against | 64 | set virtualedit=all | " virtual edit should be default behaviour, because I don't see any reason against |
@@ -190,7 +178,7 @@ let g:lightline_buffer_active_buffer_right_icon = '' | |||
190 | let g:lightline_buffer_separator_icon = ' ' | 178 | let g:lightline_buffer_separator_icon = ' ' |
191 | 179 | ||
192 | " lightline-buffer function settings | 180 | " lightline-buffer function settings |
193 | let g:lightline_buffer_show_bufnr = 1 | 181 | let g:lightline_buffer_show_bufnr = 0 |
194 | let g:lightline_buffer_rotate = 0 | 182 | let g:lightline_buffer_rotate = 0 |
195 | let g:lightline_buffer_fname_mod = ':t' | 183 | let g:lightline_buffer_fname_mod = ':t' |
196 | let g:lightline_buffer_excludes = ['vimfiler'] | 184 | let g:lightline_buffer_excludes = ['vimfiler'] |
@@ -231,7 +219,7 @@ let g:lightline = { | |||
231 | \ }, | 219 | \ }, |
232 | \ 'tabline': { | 220 | \ 'tabline': { |
233 | \ 'left': [ [ 'bufferinfo' ], [ 'bufferbefore', 'buffercurrent', 'bufferafter' ], ], | 221 | \ 'left': [ [ 'bufferinfo' ], [ 'bufferbefore', 'buffercurrent', 'bufferafter' ], ], |
234 | \ 'right': [ [ 'close' ], [ 'getcwd', 'gitbranch'] ], | 222 | \ 'right': [ [ 'close' ] ], |
235 | \ }, | 223 | \ }, |
236 | \ 'component': { | 224 | \ 'component': { |
237 | \ 'tagbar': '%{tagbar#currenttag("%s", "", "f")}', | 225 | \ 'tagbar': '%{tagbar#currenttag("%s", "", "f")}', |
@@ -528,6 +516,7 @@ if !has('nvim') | " settings which have been removed from neovim | |||
528 | set ttymouse=xterm2 | 516 | set ttymouse=xterm2 |
529 | set ttyscroll=100 | " improves speed for terminal vim, incomp. with nvim | 517 | set ttyscroll=100 | " improves speed for terminal vim, incomp. with nvim |
530 | set ttyfast | " improves speed for terminal vim (incomp. with nvim) | 518 | set ttyfast | " improves speed for terminal vim (incomp. with nvim) |
519 | set nottybuiltin | " use external termcaps | ||
531 | " set termguicolors | " When on, uses highlight-guifg and highlight-guibg attributes in the terminal (=24bit color) incomp. with nvim | 520 | " set termguicolors | " When on, uses highlight-guifg and highlight-guibg attributes in the terminal (=24bit color) incomp. with nvim |
532 | " | 521 | " |
533 | let g:loaded_ruby_provider = 1 " disable ruby support | 522 | let g:loaded_ruby_provider = 1 " disable ruby support |