aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Christian Pohle2017-08-02 00:18:59 +0200
committerMax Christian Pohle2017-08-02 00:18:59 +0200
commit71c9159e83d0a721dcc069c89711ad8a48d4ac60 (patch)
treeb9898e6c644991ca4c7df1d59e1a382cccf38357
parentd7d4eadb02b1fc43da22c2d0fc129ff4f538ef65 (diff)
downloadvim-71c9159e83d0a721dcc069c89711ad8a48d4ac60.tar.bz2
vim-71c9159e83d0a721dcc069c89711ad8a48d4ac60.zip
Minor tweaks, especially for performance
-rw-r--r--vimrc-full21
1 files changed, 5 insertions, 16 deletions
diff --git a/vimrc-full b/vimrc-full
index 54504ad..fbe7a9d 100644
--- a/vimrc-full
+++ b/vimrc-full
@@ -1,15 +1,3 @@
1" vim: tabstop=2 softtabstop=2 shiftwidth=2 textwidth=160 iskeyword+=\:
2
3set encoding=utf-8 | " set up vim's cosole encoding (not file encoding, for which there is fileencoding=)
4set 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"=======================================================================================================================
13set textwidth=120 | " better done with modeline 1set textwidth=120 | " better done with modeline
14set ts=4 sts=4 sw=4 expandtab | " better done with a modeline 2set 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
35set mouse=n | " allow mouse in normal mode only, so one can use the terminals c&p feature in insert mode 23set mouse=n | " allow mouse in normal mode only, so one can use the terminals c&p feature in insert mode
36set mousemodel=popup | " only in gvim: right click opens a popup-menu 24set mousemodel=popup | " only in gvim: right click opens a popup-menu
37set nocursorcolumn | " turn visual cursor column off (improves performance) 25set nocursorcolumn | " turn visual cursor column off (improves performance)
38set nocursorline | " turn visual cursor line off (improves performance)
39set nrformats+=alpha | " allows CTRL-A & CTRL-X to increment and decrement letters, not just numbers 26set nrformats+=alpha | " allows CTRL-A & CTRL-X to increment and decrement letters, not just numbers
40set nofoldenable | " disable folding, because we have zi to toggle foldenable :) 27set nofoldenable | " disable folding, because we have zi to toggle foldenable :)
41set exrc | " enable exrc, a specific .exrc per project, which can contain usual .vimrc commands 28set 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
46set foldopen=block,hor,search | " when do we unfold? 33set foldopen=block,hor,search | " when do we unfold?
47set foldtext=Foldtext() | " 34set foldtext=Foldtext() | "
48set foldnestmax=1 | " top level folding only 35set foldnestmax=1 | " top level folding only
49set relativenumber | " relative line numbers can speed up navigation 36set norelativenumber | " relative line numbers can speed up navigation, but I could not get used to it till now
50set noshowmode | " because we are using some powerline derivat 37set noshowmode | " because we are using some powerline derivat
51set nostartofline | " when scrolling: do not move the cursor to column 1 38set nostartofline | " when scrolling: do not move the cursor to column 1
52set notimeout ttimeout | " improves performance but is known to cause problems on slow terminals 39set 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)
71set tags+=../tags 58set 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
61set undofile | " preserve undo history when closing and reopening buffers (see :help undo-persistenece)
74set updatetime=80 | " updates the screen more often 62set updatetime=80 | " updates the screen more often
75set viminfo+=% | " restore buffer list 63set viminfo+=% | " restore buffer list
76set virtualedit=all | " virtual edit should be default behaviour, because I don't see any reason against 64set 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 = ''
190let g:lightline_buffer_separator_icon = ' ' 178let g:lightline_buffer_separator_icon = ' '
191 179
192" lightline-buffer function settings 180" lightline-buffer function settings
193let g:lightline_buffer_show_bufnr = 1 181let g:lightline_buffer_show_bufnr = 0
194let g:lightline_buffer_rotate = 0 182let g:lightline_buffer_rotate = 0
195let g:lightline_buffer_fname_mod = ':t' 183let g:lightline_buffer_fname_mod = ':t'
196let g:lightline_buffer_excludes = ['vimfiler'] 184let 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
..