diff options
author | Max Christian Pohle | 2017-01-19 12:48:21 +0100 |
---|---|---|
committer | Max Christian Pohle | 2017-01-19 12:48:21 +0100 |
commit | 79a13495d51718110f9fc074b55bc4e7e774e7c8 (patch) | |
tree | 0ab5212e8b3ca05f0ff268a7de38c0852f3d6188 /vimrc | |
parent | 1d6da55502f0b12b8712e956b90621aae561d97c (diff) | |
download | vim-79a13495d51718110f9fc074b55bc4e7e774e7c8.tar.bz2 vim-79a13495d51718110f9fc074b55bc4e7e774e7c8.zip |
NeoVim compatibility & CTRL-X/CTRL-A improvements
Diffstat (limited to 'vimrc')
-rw-r--r-- | vimrc | 22 |
1 files changed, 17 insertions, 5 deletions
@@ -65,6 +65,17 @@ let g:airline_theme='base16' | " specifies which colors | |||
65 | 65 | ||
66 | " Additional: ========================================. | 66 | " Additional: ========================================. |
67 | Plug 'sheerun/vim-polyglot' " better syntax highlighting/indentation for multiple languages | 67 | Plug 'sheerun/vim-polyglot' " better syntax highlighting/indentation for multiple languages |
68 | let g:javascript_conceal_function = "ƒ" | ||
69 | let g:javascript_conceal_null = "ø" | ||
70 | let g:javascript_conceal_this = "@" | ||
71 | let g:javascript_conceal_return = "⇚" | ||
72 | let g:javascript_conceal_undefined = "¿" | ||
73 | let g:javascript_conceal_NaN = "ℕ" | ||
74 | let g:javascript_conceal_prototype = "¶" | ||
75 | let g:javascript_conceal_static = "•" | ||
76 | let g:javascript_conceal_super = "Ω" | ||
77 | let g:javascript_conceal_arrow_function = "⇒" | ||
78 | |||
68 | Plug 'majutsushi/tagbar' " superseeds taglist-plus, which isn't maintained any more | 79 | Plug 'majutsushi/tagbar' " superseeds taglist-plus, which isn't maintained any more |
69 | let g:tagbar_autoclose = 1 | 80 | let g:tagbar_autoclose = 1 |
70 | let g:tagbar_autofocus = 1 | 81 | let g:tagbar_autofocus = 1 |
@@ -95,7 +106,7 @@ Plug 'scrooloose/syntastic' | |||
95 | set statusline+=%#warningmsg# | 106 | set statusline+=%#warningmsg# |
96 | set statusline+=%{SyntasticStatuslineFlag()} | 107 | set statusline+=%{SyntasticStatuslineFlag()} |
97 | set statusline+=%* | 108 | set statusline+=%* |
98 | set signcolumn=yes " always show the column | 109 | " set signcolumn=yes " always show the column |
99 | let g:LatexBox_latexmk_preview_continuously = 1 | 110 | let g:LatexBox_latexmk_preview_continuously = 1 |
100 | let g:LatexBox_viewer = "evince" | 111 | let g:LatexBox_viewer = "evince" |
101 | let g:syntastic_always_populate_loc_list = 1 | 112 | let g:syntastic_always_populate_loc_list = 1 |
@@ -184,6 +195,7 @@ set mouse=n | " allow mouse in normal mode only, so one can us | |||
184 | set mousemodel=popup | " only in gvim: right click opens a popup-menu | 195 | set mousemodel=popup | " only in gvim: right click opens a popup-menu |
185 | set nocursorcolumn | " turn visual cursor column off (improves performance) | 196 | set nocursorcolumn | " turn visual cursor column off (improves performance) |
186 | set nocursorline | " turn visual cursor line off (improves performance) | 197 | set nocursorline | " turn visual cursor line off (improves performance) |
198 | set nrformats+=alpha | " allows CTRL-A & CTRL-X to increment and decrement letters, not just numbers | ||
187 | set nofoldenable | " disable code folding. I hate code folding | 199 | set nofoldenable | " disable code folding. I hate code folding |
188 | set relativenumber | " relative line numbers can speed up navigation | 200 | set relativenumber | " relative line numbers can speed up navigation |
189 | set noshowmode | " because we are using some powerline derivat | 201 | set noshowmode | " because we are using some powerline derivat |
@@ -193,20 +205,20 @@ set nowrap | " but do not (by default) wrap long lines around | |||
193 | set number | " turn line numbers on/off (performance decreases when they are shown) | 205 | set number | " turn line numbers on/off (performance decreases when they are shown) |
194 | set pumheight=8 | " Determines the maximum number of items to show in the popup menu for | 206 | set pumheight=8 | " Determines the maximum number of items to show in the popup menu for |
195 | set redrawtime=400 | " The time in milliseconds for redrawing the display. | 207 | set redrawtime=400 | " The time in milliseconds for redrawing the display. |
196 | set restorescreen | " restores the console after exiting vim | 208 | " set restorescreen | " restores the console after exiting vim |
197 | set scrolljump=5 | " how many lines get scrolled into view when cursor reaches the screens edge | 209 | set scrolljump=5 | " how many lines get scrolled into view when cursor reaches the screens edge |
198 | set spell spelllang=en,de | " enable spell checker | 210 | set spell spelllang=en,de | " enable spell checker |
199 | set splitbelow | " open new windows below the current one (i find that more intuitive) | 211 | set splitbelow | " open new windows below the current one (i find that more intuitive) |
200 | " set t_Co=256 | " required on some ssh sessions | 212 | " set t_Co=256 | " required on some ssh sessions |
201 | set textwidth=100 | " line length (80 used to be default, but...) | 213 | " set textwidth=100 | " line length (80 used to be default, but...) |
202 | set thesaurus+=/home/max/.vim/thesaurus/php.txt | 214 | set thesaurus+=/home/max/.vim/thesaurus/php.txt |
203 | set ts=2 sts=2 sw=2 expandtab | " indentation which i like (abbr: tabstop, softtabstop, shiftwidth) | 215 | set ts=2 sts=2 sw=2 expandtab | " indentation which i like (abbr: tabstop, softtabstop, shiftwidth) |
204 | set ttimeoutlen=10 | " set esc key timeout in ms- | 216 | set ttimeoutlen=10 | " set esc key timeout in ms- |
205 | set ttyfast | " improves speed for terminal vim | 217 | set ttyfast | " improves speed for terminal vim |
206 | set updatetime=1000 | " updates the screen more often | 218 | set updatetime=1000 | " updates the screen more often |
207 | set ttyscroll=100 | " improves speed for terminal vim | 219 | " set ttyscroll=100 | " improves speed for terminal vim, incomp. with nvim |
208 | set writedelay=0 | 220 | set writedelay=0 |
209 | " set termguicolors | " When on, uses highlight-guifg and highlight-guibg attributes in the terminal (=24bit color) | 221 | " set termguicolors | " When on, uses highlight-guifg and highlight-guibg attributes in the terminal (=24bit color) incomp. with nvim |
210 | 222 | ||
211 | if has("multi_byte") | 223 | if has("multi_byte") |
212 | scriptencoding utf-8 | " tell vim that we are using utf-8 here | 224 | scriptencoding utf-8 | " tell vim that we are using utf-8 here |